Skip to content

Manual output on enter, no linebreak. #3514

Answered by LangLangBart
Shuraken007 asked this question in Q&A
Discussion options

You must be logged in to vote

When you press the ⌃ Control + T hotkey, the fzf-file-widget widget is executed, which uses the __fsel function.

fzf-file-widget() {
LBUFFER="${LBUFFER}$(__fsel)"
local ret=$?
zle reset-prompt
return $ret
}

# CTRL-T - Paste the selected file path(s) into the command line
__fsel() {
local cmd="${FZF_CTRL_T_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
-o -type f -print \
-o -type d -print \
-o -type l -p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Shuraken007
Comment options

Answer selected by Shuraken007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants