summaryrefslogtreecommitdiff
path: root/shell/completion.bash
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-07-06 10:20:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-07-06 10:20:58 +0900
commitb44ab9e33c236787bcd00b655cae4a8ef8497059 (patch)
treed770547315ba20afc468c1c7e91b1a5523f271f4 /shell/completion.bash
parent8f4c23f1c454a1f5f3e3ca1479227ee5186f8212 (diff)
downloadfzf-b44ab9e33c236787bcd00b655cae4a8ef8497059.tar.gz
[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.
Diffstat (limited to 'shell/completion.bash')
-rw-r--r--shell/completion.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/completion.bash b/shell/completion.bash
index c63ef33b..8ad7b3a1 100644
--- a/shell/completion.bash
+++ b/shell/completion.bash
@@ -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
)