non important commit

This commit is contained in:
maxstrb 2025-11-22 12:03:33 +01:00
parent 2dc2799d2b
commit 7658f1a4a1
2 changed files with 23 additions and 2 deletions

View file

@ -77,6 +77,13 @@
}
}
def --env fzf-nvim [] {
let file = (fd -t f -L . | fzf --reverse --height 40% --border rounded --preview=("bat -p -P {}") --preview-window=border-left)
if $file != null and $file != "" {
nvim $file
}
}
$env.config.keybindings = ($env.config.keybindings | append {
name: "fzf-cd"
modifier: "control"
@ -89,6 +96,19 @@
}
]
})
$env.config.keybindings = ($env.config.keybindings | append {
name: "fzf-nvim"
modifier: "control"
keycode: "char_e"
mode: "emacs"
event: [
{
send: "executehostcommand"
cmd: 'fzf-nvim'
}
]
})
'';
settings = {