Add script and alacritty keybinding for z with fzf
This commit is contained in:
parent
98d9b71d50
commit
acbead5efb
@ -737,7 +737,8 @@ theme: vscode.dark
|
||||
#
|
||||
# If the same trigger is assigned to multiple actions, all of them are executed
|
||||
# in the order they were defined in.
|
||||
#key_bindings:
|
||||
key_bindings:
|
||||
- { key: Z, mods: Control, chars: "fzf-z \x0D" }
|
||||
#- { key: Paste, action: Paste }
|
||||
#- { key: Copy, action: Copy }
|
||||
#- { key: L, mods: Control, action: ClearLogNotice }
|
||||
|
6
zsh/custom-plugins/fzf-z.zsh
Normal file
6
zsh/custom-plugins/fzf-z.zsh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/zsh
|
||||
|
||||
fzf-z() {
|
||||
dir=$(z | fzf --tiebreak=index --tac | sed -E 's/^[0-9]+[[:space:]]+//')
|
||||
cd $dir
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user