fix: ^F escape
This commit is contained in:
@@ -81,7 +81,7 @@ _dots_load_keybindings() {
|
|||||||
selection="$(rg --color=always --line-number --no-heading --hidden --glob '!.git' '' 2>/dev/null \
|
selection="$(rg --color=always --line-number --no-heading --hidden --glob '!.git' '' 2>/dev/null \
|
||||||
| fzf --ansi --delimiter=: \
|
| fzf --ansi --delimiter=: \
|
||||||
--preview 'head -n $((({2}+30))) {1} | tail -n 60' \
|
--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 file="${selection%%:*}"
|
||||||
local line="${${selection#*:}%%:*}"
|
local line="${${selection#*:}%%:*}"
|
||||||
BUFFER="${EDITOR:-vim} +${line} ${(q)file}"
|
BUFFER="${EDITOR:-vim} +${line} ${(q)file}"
|
||||||
|
|||||||
Reference in New Issue
Block a user