[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 committed 2024-07-06 10:20:58 +09:00
1 parent 8f4c23f1c4
commit b44ab9e33c
2 files changed
+3 -2

No files matched your search

+2 -1
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
)
+1 -1
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
)