GCodeProjects / GCodeWorkShop

GCodeWorkShop is text editor for CNC programmers.
GNU Lesser General Public License v3.0
20 stars 7 forks source link

Feature request: 'Find next' on pressing enter #36

Open zmaile opened 1 month ago

zmaile commented 1 month ago

As per title; It would be handy to find the next instance of the search string upon pressing enter when the 'find' field is focused.

u-235 commented 1 month ago

Hi. I'm not sure that this behavior is the right thing to do. To move between matches there are F3 and Shift+F3 hotkeys and when you press Enter it is more logical to pass the focus back to the edited file. This will allow you to edit matches using the keyboard only, without distracting the mouse.

zmaile commented 1 month ago

Pressing 'enter' to search the next term is consistent with most other applications (libreoffice writer, firefox, & gnome-text-editor are examples I've just now tested).

You do raise a good point, about avoiding the mouse where possible. Are the F3 and Ctrl+F3 shortcuts implemented? On my install (version 2024-09, linux), they do nothing. I was also unable to find any tooltips or menus that reference these shortcuts.

u-235 commented 1 month ago

I made a mistake, not Ctrl+F3, but Shift+F3. And it worked always, I didn't change anything in this place, but there may be differences depending on OS.

Making a list of hotkeys is a good idea, I'll have to look into that. As well as adding a mention of hotkeys in tooltips.

u-235 commented 1 month ago

In the experimental branch, I modified the tooltips to include a hotkey reminder. shortcut