zoxide+fzf: shorcut to search zoxide entries and paste result into terminal #1007
Answered
by
lmBored
SamuelBorn
asked this question in
Q&A
-
fzf has the builtin feature of which opens fzf, searches current subdirectories and files and afterwards pastes the result into terminal. I want a similar keymap, say which searched for zoxide entries. Can someone point me into the right direction? function zoxide_fzf() {
echo $(zoxide query --list | fzf)
}
zle -N zoxide_fzf
bindkey '^o' zoxide_fzf |
Beta Was this translation helpful? Give feedback.
Answered by
lmBored
Mar 6, 2025
Replies: 1 comment 1 reply
-
The following solves it. But I m still not sure if its the de facto way to do it. function zoxide_fzf() {
LBUFFER+=$(zoxide query --list | fzf)
}
zle -N zoxide_fzf
bindkey '^o' zoxide_fzf |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is indeed right way to do it, I also have something similar but with a bit of UI tweaks: