Notepad3 beta build 3.18.202.867.
I've noticed that with the addition of several functions and the movement of a few menu items, that the keyboard shortcuts used to navigate each menu system have a few conflicts.
Note that I am talking solely about the keyboard shortcuts to navigate the menus, not the keyboard shortcuts ("accelerator keys") for the functions themselves.
Windows handles these conflicts reasonably gracefully, but nevertheless I think that, where possible, we should minimise the conflicts.
I'll start with the View menu, as that is where I first noticed the conflicts.
View:
(That o key is really overloaded!)
Suggestions:
| Menu Entry: | Current Key: | Suggested Key:|
| ----- | ----- | ----- |
| Syntax Scheme... | s | x [changed] |
| 2nd Default Scheme | 2 | 2 |
| Customize Schemes... | c | c |
| Global Default Font... | g | d [changed] |
| Current Scheme's Default Font... | d | h [changed] |
| Word Wrap | r | r |
| Long Line Marker | l | l |
| Indentation Guides | g | a [changed] |
| Show Whitespace | w | w |
| Show Line Endings | e | e |
| Show Wrap Symbols | y | p [changed] |
| Hyperlink Hotspots | (none) | y [changed] |
| Visual Brace Matching | b | v [changed] |
| Highlight Current Line | u | g [changed] |
| Mark Occurrences | o | k [changed] |
| Line Numbers | n | n |
| Selection Margin | m | m |
| Code Folding | f | f |
| Toggle All Folds | t | t |
| Show Toolbar | o | b [changed] |
| Customize Toolbar... | u | u |
| Show Statusbar | o | s [changed] |
| Zoom In | i | i |
| Zoom Out | o | o |
| Reset Zoom | z | z |
As I have the time, I'll examine the other menus and provide further suggestions. (It's a fairly time-consuming task!)
Settings:
Suggestions:
| Menu Entry: | Current Key: | Suggested Key: |
| ----- | ----- | ----- |
| Insert Tabs as Spaces | s | s |
| Tab Settings... | t | t |
| Word Wrap Settings... | w | w |
| Long Line Settings... | l | l |
| Auto Indent Text | d | d |
| Auto Close HTML/XML | h | h |
| Auto Complete Words | r | u [changed] |
| Accelerated Word Navigation | a | g [changed] |
| Reuse Window | r | r |
| Sticky Window Position | p | p |
| Always On Top | a | a |
| Minimize To Tray | z | z |
| Transparent Mode | m | m |
| Single File Instance | f | f |
| File Change Notification... | c | c |
| Window Title Display | y | y |
| Esc Key Function | k | k |
| Save Before Running Tools | v | b [changed] |
| Remember Recent Files | i | i |
| Preserve Caret Position | p | v [changed] |
| Remember Search Strings | e | e |
| Save Settings On Exit | x | x |
| Save Settings Now | n | n |
| Open Settings File | o | o |
Edit:
Suggestions (work in progress):
| Menu Entry: | Current Key: | Suggested Key: |
| ----- | ----- | ----- |
| Undo | u | u |
| Redo | r | r |
| Cut | t | t |
| Copy | c | c |
| Copy All | l | o [changed] |
| Copy Add | a | y [changed] |
| Paste | p | p |
| Swap | w | s [changed] |
| Delete | (none) | d [changed] |
| Clear Clipboard | d | e [changed] |
| Select All | s | a [changed] |
| Words | w | w |
| Lines | i | l [changed] |
| Block | b | b |
| Convert | o | v [changed] |
| Insert | n | i [changed] |
| Special Miscellaneous | i | m [changed] |
| Bookmarks | (none) | k [changed] |
| Find... | f | f |
| Save Find Text | v | t [changed] |
| Find Next | x | n [changed] |
| Find Previous | v | (none) [changed] |
| Replace... | e | (none) [changed] |
| Replace Next | x | x |
| Goto... | g | g |
File:There are no conflicts here, just two entries that currently do not have keyboard shortcuts.
Suggestions:
| Menu Entry: | Current Key: | Suggested Key: |
| ----- | ----- | ----- |
| Set Encryption Passphrase | (none) | y [changed] |
| Browse | (none) | b [changed] |
? (Help)There are no conflicts here, just one entry that currently does not have a keyboard shortcut.
Suggestions:
| Menu Entry: | Current Key: | Suggested Key: |
| ----- | ----- | ----- |
| Check for Updates | (none) | u [changed] |
@craigo-:
It's a fairly time-consuming task!
But it's also very welcome! I've stumbled upon these conflicts as well several times in the past, so a big thanks to you :clap: for taking on this tedious task and coming up with both a systematic analysis as well as suggestions for improvements!
@craigo- : @engelhro is absolutely right about the very welcome effort you invested here 馃
@craigo- : Please try beta build 3.18.205.868++. I tried to change menu "Edit" (work in progress) as well.
Hopefully changed all collisions, but didn't find a solution for "Find Previous" ... :thinking:
Thanks, @RaiKoHoff. You've done well with that tricksy Edit menu. I'll have another try, and see if I can do any better. (Probably not!)
Have updated the table above for the Edit menu with your alterations. I didn't catch that you had renamed one of the entries until I did so!
I did note that there is now a new conflict for the d key (Delete, Clear Clipboard). I'll definitely prioritise having another look at this.
Upps, not seen this one. And the o (Copy All, Convert) 馃
Ok, beta build 3.18.208.878 is out.
Still open: "Find Previous" and "Replace..." (unfortunately, the dot(.) can not be used!)
The Edit menu:
Without drastic changes, we're not going to assign unique letters to all entries... There are 25 entries, and together they use a total of 22 out of the 26 available letters. None of these function names include the letters H, J, Q or Z. (it's the same when using either Special or Miscellaneous)...
Here are some options:
I've had a final crack at it, using the first two above options. Pr茅cis:
Save Find Text (I consider this of lower priority)v: Convert & Find Previousx: Find Next & Replace NextThe full table:
| Menu Entry: | Current Key: | Suggested Key: |
| ----- | ----- | ----- |
| Undo | u | u |
| Redo | r | r |
| Cut | t | t |
| Copy | c | c |
| Copy All | l | y [changed] |
| Copy Add | a | a |
| Paste | p | p |
| Swap | w | w |
| Delete | (none) | d [changed] |
| Clear Clipboard | d | l [changed] |
| Select All | s | s |
| Words | w | o [changed] |
| Lines | i | i |
| Block | b | b |
| Convert | o | v [changed] |
| Insert | n | n |
| Special Miscellaneous | i | m [changed] |
| Bookmarks | (none) | k [changed] |
| Find... | f | f |
| Save Find Text | v | (none) [changed] |
| Find Next | x | x |
| Find Previous | v | v |
| Replace... | e | e |
| Replace Next | x | x |
| Goto... | g | g |
Thank you for the work.
I suggest some slight changes:
| Menu Entry: | Current Key: | Suggested Key: |
| ----- | ----- | ----- |
| Undo | u | u |
| Redo | r | r |
| Cut | t | t |
| Copy | c | c |
| Copy All | l | a [changed] |
| Copy Add | a | y [changed] |
| Paste | p | p |
| Swap | w | w |
| Delete | (none) | d [changed] |
| Clear Clipboard | d | e [changed] |
| Select All | s | s |
| Words | w | o [changed] |
| Lines | i | l [changed] |
| Block | b | b |
| Convert | o | n [changed] |
| Insert | n | i [changed] |
| Special Miscellaneous | i | m [changed] |
| Bookmarks | (none) | k [changed] |
| Find... | f | f |
| Save Find Text | v | (none) [changed] |
| Find Next | x | x |
| Find Previous | v | v |
| Replace... | e | r [changed] |
| Replace Next | x | x |
| Goto... | g | g |
It's not easy, is it? 馃槪 I imagine Flo sweated over this, too. He ended up not even assigning a key to the Clear entry!
The gnarly one in that list is the troublesome Replace entry. I think it's too important to miss out on a menu key assignment.
I largely agree with your rules, although I would prioritise them like this:
Windows fairly gracefully handles the duplication/overloading scenario (I've tested Windows 7 and 10). For example, Notepad3 beta build 882 overloads the t key for Cut and Save Find Text. Pressing Alt+E to open the Edit menu, then pressing t toggles between these options. It's not ideal, but it does work. And I think I'd rather have this than having a fairly important entry unassigned, e.g. Replace.
OK, I changed my table above:
Duplicating the "R" key for Redo and Replace... - Find... and Replace... and Undo/Redo are mainly called via Accelerator-Keys (Ctrl+F, Ctrl+H - Ctrl+Z, Ctrl+Y)).
Duplicating "X", as it has been before.
Assigning "V" for Find Previous (as before) - needs to change Convert to "N".
Maybe there are a lot of other possibilities and a higher amount of opinions, what maybe better.
If there is not a strong argument against this suggestion, I send a PR with these changes.
I'm happy with that, @RaiKoHoff.
Issue resolved, ready to close.
Most helpful comment
I'm happy with that, @RaiKoHoff.
Issue resolved, ready to close.