mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 01:23:43 -05:00
Add Alt-i binding to paste item from locate / output (zsh only)
17
Examples.md
17
Examples.md
@@ -246,3 +246,20 @@ alias jj=zz
|
|||||||
# https://github.com/D630/fzf-fs
|
# https://github.com/D630/fzf-fs
|
||||||
% . fsfzf.sh <ARG>
|
% . fsfzf.sh <ARG>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Locate
|
||||||
|
|
||||||
|
`Alt-i` to paste item from `locate /` output (zsh only):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# ALT-I - Paste the selected entry from locate output into the command line
|
||||||
|
fzf-locate-widget() {
|
||||||
|
local selected
|
||||||
|
if selected=$(locate / | fzf +s -q "$LBUFFER"); then
|
||||||
|
LBUFFER=$selected
|
||||||
|
fi
|
||||||
|
zle redisplay
|
||||||
|
}
|
||||||
|
zle -N fzf-locate-widget
|
||||||
|
bindkey '\ei' fzf-locate-widget
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user