codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: (new) replace functionality has no keyboard shortcuts

Open UffeJakobsen opened this issue 3 years ago • 2 comments

What happened?

The new search and replace functionality has no keyboard shortcuts

It is not (anymore) possible to perform search and replace using the keyboard (without using the mouse)

The buttons "Find", "Find Prev", "Find Next", "Replace" and "Replace All" does not have any keyboard shortcuts.

Previously a search and replace operation could be carried our from the keyboard without using the mouse

seen with CL-16.4.0 (Linux)

Version

Other

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response

UffeJakobsen avatar Oct 12 '22 12:10 UffeJakobsen

I would have notice this as I am using this all the time...

  • Hitting ENTER performs the default Find (while the focus is on the search text field)
  • Hitting Shift+ENTER performs backward search

To perform replace with the keyboards:

  • I make sure that the focus is on the Replace / Replace all buttons - and they using the ENTER key

EDIT: The above works on Windows / macOS / Ubuntu 20.04 (my main platforms these days)

eranif avatar Oct 13 '22 05:10 eranif

IMHO this is a step back for keyboard navigation in CodeLite.

As there are no global hotkeys for "replace" and "replace all" You'll have to navigate around using tab in order to hit the right "replace" button - that kind of takes the focus away from the real task that you are working at (that is (was) replacing things in your source code)

Your description (as I understand and have tested) imply that focus needs to be at the search/replace bar - and not at the editor window.

Previously you could perform search/replace - while the cursor focus was at the editor window. Luckily this is still possible for "Find" - but "Find" had a similar issue about a year ago (#2806) - solved by (#2825) Only this is worse as there are no global hotkeys for the "Replace" actions

UffeJakobsen avatar Oct 13 '22 09:10 UffeJakobsen

I will compare the behavior with my other favorite editor (sublime)

eranif avatar Oct 25 '22 05:10 eranif