Skip to content

PR: Add actions and shortcuts for code folding (Editor)#25868

Open
jsbautista wants to merge 11 commits intospyder-ide:masterfrom
jsbautista:Issue6810
Open

PR: Add actions and shortcuts for code folding (Editor)#25868
jsbautista wants to merge 11 commits intospyder-ide:masterfrom
jsbautista:Issue6810

Conversation

@jsbautista
Copy link
Copy Markdown
Collaborator

@jsbautista jsbautista commented Mar 24, 2026

Description of Changes

Fix code un/folding with a keyboard shortcut

Issue(s) Resolved

Fixes #6810

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:
@jsbautista

Copy link
Copy Markdown
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This turned out simpler than I thought, thanks @jsbautista!

Comment thread spyder/config/main.py Outdated
Comment thread spyder/plugins/editor/widgets/codeeditor/codeeditor.py Outdated
@ccordoba12 ccordoba12 changed the title PR: Fix code un/folding with a keyboard shortcut PR: Add shortcuts for code folding (Editor) Mar 24, 2026
@ccordoba12 ccordoba12 added this to the v6.2.0a1 milestone Mar 24, 2026
jsbautista and others added 2 commits March 24, 2026 15:13
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
@ccordoba12
Copy link
Copy Markdown
Member

@jsbautista, please fix the merge conflicts and add a new section to the Source menu called Folding with actions corresponding to the three new shortcuts you added. That way it'll be easier for users to learn about them.

Once that's done, I'll give you a hand to fix our tests (I think I know why they're failing).

@ccordoba12 ccordoba12 changed the title PR: Add shortcuts for code folding (Editor) PR: Add actions and shortcuts for code folding (Editor) Apr 14, 2026
Copy link
Copy Markdown
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsbautista, new review for the latest changes you did.

Comment thread spyder/plugins/editor/widgets/codeeditor/lsp_mixin.py Outdated
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Comment thread spyder/plugins/editor/widgets/editorstack/editorstack.py Outdated
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Comment thread spyder/plugins/editor/plugin.py
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Comment thread spyder/plugins/editor/widgets/main_widget.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code un/folding with a keyboard shortcut

2 participants