Manual output on enter, no linebreak. #3514
-
Hello. So .. I added smth like this. export FZF_CTRL_T_OPTS="
-d!
--with-nth 2
--bind \"enter:execute(for e in {+1}; do echo \$e; done)+abort\"
" But problem is, that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you press the ⌃ Control + T hotkey, the Lines 63 to 68 in 952b6af Lines 42 to 56 in 952b6af The local item
eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --scheme=path --bind=ctrl-z:ignore ${FZF_DEFAULT_OPTS-} ${FZF_CTRL_T_OPTS-}" $(__fzfcmd) -m "$@" | while read item; do
- echo -n "${(q)item} "
+ echo "${(q)item} "
done
local ret=$?
Consider using the additional
print -C3 {A..I}
# A D G
# B E H
# C F I
print -C3 {A..I} | fzf --sync --bind 'start:select-all+become:echo {+2}'
# D E F
print -C3 {A..I} | fzf --sync --bind 'start:select-all+become:cat {+f2}'
# D
# E
# F Alternatively, you can define a custom widget and assign it to a hotkey to avoid modifying the # zshrc
test_widget() {
print -C3 {A..I} | fzf --sync --bind 'start:select-all+become:cat {+f2}'
}
zle -N test_widget
bindkey "^X" test_widget |
Beta Was this translation helpful? Give feedback.
When you press the ⌃ Control + T hotkey, the
fzf-file-widget
widget is executed, which uses the__fsel
function.fzf/shell/key-bindings.zsh
Lines 63 to 68 in 952b6af
fzf/shell/key-bindings.zsh
Lines 42 to 56 in 952b6af