ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
20.29k stars 518 forks source link

Easier flow for bumping path to be top result for query #849

Open leumasme opened 2 weeks ago

leumasme commented 2 weeks ago

The situation:

z temp is returning /path/template-project. It is desired that it instead returns /path/temporary

The current solution from what I found:

Enter the zoxide edit UI and manually increase the rank of /path/temporary until it is above /path/template-project This is a bit clunky because it requires

A more desirable flow for this situation:

Some way to specify the query and the path that is desired to be the topmost. Zoxide would then automatically

If feasible with the TUI library, a nice way of accomplishing this would be to have a specific hotkey (e.g. shift-enter) in the interactive query zi to bump the selected entry to the top of the current query. This solution is desirable because


Please let me know if I have missed something and there is already an easier way than the current solution as I wrote it.