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 shortcut key to Expand/Collapse Branches #86

Closed
phossler opened this issue Jan 31, 2020 · 4 comments
Closed

Add shortcut key to Expand/Collapse Branches #86

phossler opened this issue Jan 31, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@phossler
Copy link

phossler commented Jan 31, 2020

Notepad++ has the ability to Expand and Collapse branch using shortcut keys and the [View] menu, including 'All', 'Current', or to a level

Editor has similar capability, but requires clicking the teeny, tiny [+] or [-] box to the left of the line

Adding a [View] menu with similar Notepad++ shortcut key feature would be handy

Capture

@phossler phossler added the enhancement New feature or request label Jan 31, 2020
fernandreu added a commit that referenced this issue Feb 2, 2020
@fernandreu
Copy link
Owner

Hi phossler,

I added a View menu in the latest build to show these options. I am having issues assigning the Unfold Current Level action to Ctrl+Alt+Shift+F, so I assigned it to Ctrl+Alt+G instead.

I will leave this issue open for a bit in case I do some tweaks.

Regards,
Fernando

@phossler
Copy link
Author

phossler commented Feb 3, 2020

I believe that the other 'Unfold' or 'Uncollapse' options include using the Shift key.

So 'Unfold Current Level' might be Ctrl+Alt+Shift+g. Is that what you meant by Ctrl+Alt+G?

@fernandreu
Copy link
Owner

No, Ctrl+Alt+Shift+[Key] combinations do not seem to be triggered for some reason (haven't investigated yet either). Hence, rather than Ctrl+Alt+F / Ctrl+Alt+Shift+F for folding / unfolding respectively, I have mapped the unfold one to Ctrl+Alt+G. This is just because it is a similar shortcut to the folding one and the G is next to the F, no other strong motivation really.

image

This might just be temporary if I can figure out why the originally intended key combination doesn't work.

@fernandreu
Copy link
Owner

I just had a look at the issue with the Ctrl+Alt+Shift+F shortcut, and it seems it is because Windows reserved this particular key combination after an update; see this. Other Ctrl+Alt+Shift+[Key] combinations are fine.

Notepad++ actually has the exact same problem, so they should probably change this shortcut too. I will create an issue in their project.

Based on that, I think I will leave the shortcut as it is (i.e. Ctrl+Alt+G). If Notepad++ does indeed change the shortcut for this, I will make sure this tool uses the same one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants