migrate to dotter
This commit is contained in:
parent
c5618f2f2c
commit
23b6c0a596
265 changed files with 62 additions and 3125 deletions
13
configs/fzf/widgets/locate_widget.zsh
Normal file
13
configs/fzf/widgets/locate_widget.zsh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
fzf-locate-widget() {
|
||||
local selected
|
||||
if selected=$(locate / | fzf --prompt " Locate > " -q "$LBUFFER" \
|
||||
--bind 'alt-u:execute(sudo updatedb)' --header 'M-u: UpdateDB' \
|
||||
--color=fg:bold:blue --preview-window '<50(down,75%,border-top)'
|
||||
); then
|
||||
LBUFFER=$selected
|
||||
fi
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N fzf-locate-widget
|
||||
bindkey '^[i' fzf-locate-widget #<Alt-I>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue