Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add shortcuts to fold blocks #2597

Closed
wants to merge 7 commits into from
Closed

Conversation

daiyam
Copy link
Contributor

@daiyam daiyam commented Nov 10, 2018

Description

This change adds the following shortcuts to fold depending on the desired level:

Shortcuts on Window/Linux:

  • foldAll: Control + O
  • unfoldAll: Control + Shift + O
  • foldLevel1: Alt + 1
  • foldLevel2: Alt + 2
  • foldLevel3: Alt + 3
  • foldLevel4: Alt + 4
  • foldLevel5: Alt + 5
  • unfoldLevel1: Alt + Shift + 1
  • unfoldLevel2: Alt + Shift + 2
  • unfoldLevel3: Alt + Shift + 3
  • unfoldLevel4: Alt + Shift + 4
  • unfoldLevel5: Alt + Shift + 5

Shortcuts on macOS:

  • foldAll: Command + O
  • unfoldAll: Command + Shift + O
  • foldLevel1: Control + 1
  • foldLevel2: Control + 2
  • foldLevel3: Control + 3
  • foldLevel4: Control + 4
  • foldLevel5: Control + 5
  • unfoldLevel1: Control + Alt + 1
  • unfoldLevel2: Control + Alt + 2
  • unfoldLevel3: Control + Alt + 3
  • unfoldLevel4: Control + Alt + 4
  • unfoldLevel5: Control + Alt + 5

Shortcuts screen:
screenshot

Issue fixed

Type of changes

  • ⚪ Bug fix (Change that fixed an issue)
  • ⚪ Breaking change (Change that can cause existing functionality to change)
  • ⚪ Improvement (Change that improves the code. Maybe performance or development improvement)
  • 🔘 Feature (Change that adds new functionality)
  • ⚪ Documentation change (Change that modifies documentation. Maybe typo fixes)

Checklist:

  • 🔘 My code follows the project code style
  • ⚪ I have written test for my code and it has been tested
  • 🔘 All existing tests have been passed
  • 🔘 I have attached a screenshot/video to visualize my change if possible

@ZeroX-DG ZeroX-DG added the awaiting review ❇️ Pull request is awaiting a review. label Nov 11, 2018
@daiyam daiyam changed the title add shortcuts to fold blocks [WIP] add shortcuts to fold blocks Nov 12, 2018
@daiyam daiyam changed the title [WIP] add shortcuts to fold blocks add shortcuts to fold blocks Nov 13, 2018
@daiyam daiyam mentioned this pull request Dec 19, 2018
@pihentagy
Copy link

I would prefer other shortcuts, like Ctrl + Shift + + for expand all.
Also, I wouldn't reserve commands to fold till level x, rather have a "fold more" and "fold less" shortcuts a la vim.

@pihentagy
Copy link

@daiyam
Copy link
Contributor Author

daiyam commented Dec 20, 2018

@pihentagy You will be able to change them. Even those aren't the ones I'm using...

@paxcodes
Copy link

What's stopping this from being merged?

@daiyam daiyam closed this Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review ❇️ Pull request is awaiting a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants