[completion] Use --wrap option in process completion

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.
This commit is contained in:
Junegunn Choi 2024-07-06 10:20:00 +09:00
parent 8f4c23f1c4
commit b44ab9e33c
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 3 additions and 2 deletions

View File

@ -167,6 +167,7 @@ _fzf_opts_completion() {
--version
--with-nth
--with-shell
--wrap
--zsh
-0 --exit-0
-1 --select-1
@ -407,7 +408,7 @@ _fzf_complete_kill() {
}
_fzf_proc_completion() {
_fzf_complete -m --header-lines=1 --preview 'echo {}' --preview-window down:3:wrap --min-height 15 -- "$@" < <(
_fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(
command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||
command ps -eo user,pid,ppid,time,args # For BusyBox
)

View File

@ -298,7 +298,7 @@ _fzf_complete_unalias() {
}
_fzf_complete_kill() {
_fzf_complete -m --header-lines=1 --preview 'echo {}' --preview-window down:3:wrap --min-height 15 -- "$@" < <(
_fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(
command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||
command ps -eo user,pid,ppid,time,args # For BusyBox
)