fsearch icon indicating copy to clipboard operation
fsearch copied to clipboard

Implement undo/redo in the search field

Open JohnFitz opened this issue 2 years ago • 2 comments

The new search syntax is fantastic, I'm a big fan but frequently, after I craft a particularly useful search for the current session, I find myself opening a new window and copying it across to make subtle changes without losing the first search. This happens a lot if I end up using regex.

It'd be great if I could flick back and forth from my previous search terms and current search with Ctrl+Z/Ctrl+Shift+Z to quickly compare the difference.

A history function would be close to offering the same but actually undo/redo is what I'm really after since, occasionally I just mistype and lose the search term.

Thanks for all of your work thus far, it's a really super tool. I can't wait to see what you come up with next!

JohnFitz avatar Oct 16 '22 08:10 JohnFitz

This sounds useful and should be fairly easy to implement once the search history is implemented.

cboxdoerfer avatar Oct 16 '22 16:10 cboxdoerfer

+1 In addition to Ctrl+Z/Ctrl+Shift+Z "Up" and "Down" arrow keys might be a good choice for scrolling back and forward search history (for terminal users).

May be also worth noting that some users that come from voidtool's Everything may be familiar with this feature (if that's relevant in any way).

danielkrajnik avatar Mar 25 '23 14:03 danielkrajnik