Feature: Add action to find matching bracket - #1680
Conversation
# Conflicts: # src/MainWindow.vala # src/Widgets/SourceView.vala
zeebok
left a comment
There was a problem hiding this comment.
Just one optional comment but looks good to me! Excited to make use of this feature!
|
I'd like to add extra functionality to find where the error occured if possible but that will have to wait for another PR. I'd also like to expose the shortcut somehow but the document context menu does not currently show accels. Again, another PR. |
I wonder if adding a Cheat Sheet option in the gear menu that gives a bunch of helpful shortcuts and features is a decent enough way to expose it? |
Yeah, this idea has been raised for a number of apps and always been put off in the hope a global system might avoid reinventing this wheel for each app. I think the approved way at the moment is to show shortcuts in tooltips and menus so I'll have to see whether this can be achieved here. But I will leave that to a follow up PR as it covers a number of actions. |
Builtin highlight matching brackets only works over a limited number of characters. This works over whole document, scrolls to match and checks whether indent is the same.
This action (but not accelerator) is now exposed in the document context menu