fix: ^F escape

This commit is contained in:
2026-02-12 23:00:45 +00:00
parent 6b47b82651
commit 61bf7b366b

View File

@@ -81,7 +81,7 @@ _dots_load_keybindings() {
selection="$(rg --color=always --line-number --no-heading --hidden --glob '!.git' '' 2>/dev/null \
| fzf --ansi --delimiter=: \
--preview 'head -n $((({2}+30))) {1} | tail -n 60' \
--preview-window='right:60%')" || { zle reset-prompt; return; }
--preview-window='right:60%')" || { zle -I; zle reset-prompt; return; }
local file="${selection%%:*}"
local line="${${selection#*:}%%:*}"
BUFFER="${EDITOR:-vim} +${line} ${(q)file}"