cboxdoerfer / fsearch

A fast file search utility for Unix-like systems based on GTK3
GNU General Public License v2.0
3.33k stars 209 forks source link

Implement undo/redo in the search field #426

Open JohnFitz opened 2 years ago

JohnFitz commented 2 years ago

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!

cboxdoerfer commented 2 years ago

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

danielkrajnik commented 1 year ago

+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).