-
Notifications
You must be signed in to change notification settings - Fork 10
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
<ctrl>+; -- toggle highlighting of quotes and brackets #931
Comments
I think this may be a misunderstanding of what the option does - it is for checking matching quotes/brackets.
So, if you click inside a quoted section, it will highlight the quotes at the beginning and end. It only ever highlights pairs, so if you click and the quotes you expected don't highlight, it's probably because there is no matching quote or it's of the wrong type. I hope that explains the way is changes "in a random fashion by left-clicking". A version of the feature has been there for "a long time" - I improved and extended it in #789, so that it highlights things when you click inside the matching pair, when previously you had to edit the text there to make it highlight, and it also covers more things, like curly quotes. I think the manual entry is fairly clear, but perhaps the menu button text is unclear and should say "Highlight Matching Quotes and Brackets"? |
I'm working through the hotkeys.txt list and simply took at face value the brief description for each keyboard shortcut. And yes, I have misunderstood its purpose from that brief description but agree that the manual page describes it clearly. Note A rewording of the text in the hotkeys.txt file and in the menu button text would be helpful. It may be too long to say "Highlight Matching Quotes and Brackets Around Cursor Position" but the position of the cursor is key to its function/behaviour and should be mentioned in any descriptive text? In the Help Menu section of the manual Charlie has helpfully included the entries from the hotkey.txt file. Although it would require effort to maintain, if the manual also has a fuller description of a shortcut in another section, then the entry in the Help Menu should link to it? Charlie will have a view on this. |
What about "Highlight Surrounding Quotes and Brackets"? |
Both your suggestions above would be improvements, particularly the second one. |
Describe the bug
ctrl+; works only intermittently and then only incompletely. When it does appear to do something it highlights only some quotes (single and double) and only some brackets but more often none at all.
When it has highlighted some characters, that display can be changed in a random fashion by left-clicking in different parts og the GG window.
To Reproduce
Steps to reproduce the behavior:
shortcuts.txt
Expected behavior
That ALL quotes, single and double, and all 'brackets' in the file are highlighted. It is expected that each type of character is highlighted in a different colour.
Environment
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: