Skip to content
Myr

[completion] Use --wrap option in process completion

Before adoption: this commit came in with the history the project adopted, so no landing records it.

And remove the short preview window for showing the whole command. Because it is important to be able to see the whole command before deciding to kill it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8f4c23f · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:shell/completion.bash+2 added-1 removed
165 unmodified lines
166 --track167 --version168 --with-nth169 --with-shell170 --wrap171 --zsh172 -0 --exit-0173 -1 --select-1174 -d --delimiter
232 unmodified lines
407 _fzf_proc_completion "$@"408}409410_fzf_proc_completion() {410 _fzf_complete -m --header-lines=1 --preview 'echo {}' --preview-window down:3:wrap --min-height 15 -- "$@" < <(411 _fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(412 command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||413 command ps -eo user,pid,ppid,time,args # For BusyBox414 )415}
156 unmodified lines
modified:shell/completion.zsh+1 added-1 removed
296 unmodified lines
297 )298}299300_fzf_complete_kill() {301 _fzf_complete -m --header-lines=1 --preview 'echo {}' --preview-window down:3:wrap --min-height 15 -- "$@" < <(301 _fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(302 command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||303 command ps -eo user,pid,ppid,time,args # For BusyBox304 )305}
71 unmodified lines