-
What system are you running Yazi on?Linux X11 What terminal are you running Yazi in?st - Simple Terminal from Suckless
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Add to keymaps.toml |
Beta Was this translation helpful? Give feedback.
-
|
Without any special configuration, just type |
Beta Was this translation helpful? Give feedback.
-
|
Hi, @573
[mgr]
keymap = [
{ on = "s", run = "search --via=fd --args='--base-directory $HOME'", desc = "Search files by name via fd" },
]
[mgr]
keymap = [
{ on = "s", run = "search --via=fd --args='--base-directory /home/my_username'", desc = "Search files by name via fd" },
]In both cases, even the description is not reflected when I press @bulletmark Tnx for the suggestion, but when I am using yazi I usually don't want to leave $CWD, just want to find something and take a glance. I know there is multiple ways to achieve this, but it would be nice if I can make this work.. Please help and explain as to why the above is not working... Edit |
Beta Was this translation helpful? Give feedback.
-
|
There is no way to search for files outside of the current directory, because the search feature is designed to only search within the current directory and its descendants. If you don't want to leave your CWD, one way to do the search is in a new tab: { on = "s", run = [ "tab_create ~", "search" ], desc = "Search in $HOME" },After you have done all of your work, press Note that, you should use |
Beta Was this translation helpful? Give feedback.
-
This is now supported in #3696 🎉 |
Beta Was this translation helpful? Give feedback.
There is no way to search for files outside of the current directory, because the search feature is designed to only search within the current directory and its descendants.
If you don't want to leave your CWD, one way to do the search is in a new tab:
{ on = "s", run = [ "tab_create ~", "search" ], desc = "Search in $HOME" },After you have done all of your work, press
Ctrl-cto close the temporary tab, and you will return to your previous CWD - this should be similar to what you expect, except it's usingCtrl-cto return to your CWD rather thanEsc.Note that, you should use
prepend_keymapinstead ofkeymapunless you want to override all default keybindings, I'd recommend reading our k…