Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.52k stars 230 forks source link

search_again internal #909

Closed Canop closed 1 month ago

Canop commented 1 month ago

This brings the search_again internal, which tries to fix a frequent annoyance, which is the loss of the search pattern when navigating, something I hadn't found good ergonomics for before.

:search_again is mapped by default to ctrl-s.

Main use case: you search, have a lot of matches, focus a folder to look inside, then you can bring back the search pattern with ctrl-s.

I'd be very interested in tester feedback on this.

FrancescElies commented 1 month ago

Shortly tried on a mac, it felt good to be able to bring back the previous search with ctrl-s.

https://github.com/user-attachments/assets/bbd51754-5472-4ccd-b413-3fad80186161

Not sure if it's a better binding, but did you consider ctrl-r as a default? This would remind me of the reverse search in the shell. On the other hand I find the double behaviour of ctrl-s for full search and bring back last search pretty good too and makes me happy the way it is.