Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cupric
Fzf
Commits
44d3faa0
Unverified
Commit
44d3faa0
authored
8 years ago
by
Junegunn Choi
Browse files
Options
Download
Email Patches
Plain Diff
[completion] Restore --height option for kill completion
parent
e0036b5a
master
dependabot/github_actions/actions/checkout-4
dependabot/go_modules/github.com/gdamore/tcell/v2-2.7.0
dependabot/go_modules/github.com/mattn/go-isatty-0.0.20
dependabot/go_modules/github.com/mattn/go-runewidth-0.0.15
0.44.1
0.44.0
0.43.0
0.42.0
0.41.1
0.41.0
0.40.0
0.39.0
0.38.0
0.37.0
0.36.0
0.35.1
0.35.0
0.34.0
0.33.0
0.32.1
0.32.0
0.31.0
0.30.0
0.29.0
0.28.0
0.27.3
0.27.2
0.27.1
0.27.0
0.26.0
0.25.1
0.25.0
0.24.4
0.24.3
0.24.2
0.24.1
0.24.0
0.24.0-rc1
0.24.0-1
0.23.1
0.23.0
0.22.0
0.21.1
0.21.0
0.21.0-1
0.20.0
0.19.0
0.18.0
0.17.5
0.17.4
0.17.3
0.17.1
0.17.0
0.17.0-2
0.16.11
0.16.10
0.16.9
0.16.8
0.16.7
0.16.6
0.16.5
0.16.4
0.16.3
0.16.2
0.16.1
0.16.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
shell/completion.bash
+1
-1
shell/completion.bash
shell/completion.zsh
+1
-1
shell/completion.zsh
with
2 additions
and
2 deletions
+2
-2
shell/completion.bash
+
1
-
1
View file @
44d3faa0
...
...
@@ -215,7 +215,7 @@ _fzf_complete_kill() {
local
selected fzf
fzf
=
"
$(
__fzfcmd_complete
)
"
selected
=
$(
ps
-ef
|
sed
1d |
FZF_DEFAULT_OPTS
=
"
$FZF_DEFAULT_OPTS
--preview 'echo {}' --preview-window down:3:wrap
--min-height 15
$FZF_COMPLETION_OPTS
"
$fzf
-m
|
awk
'{print $2}'
|
tr
'\n'
' '
)
selected
=
$(
ps
-ef
|
sed
1d |
FZF_DEFAULT_OPTS
=
"
--height
${
FZF_TMUX_HEIGHT
:-
50
%
}
--min-height 15 --reverse
$FZF_DEFAULT_OPTS
--preview 'echo {}' --preview-window down:3:wrap
$FZF_COMPLETION_OPTS
"
$fzf
-m
|
awk
'{print $2}'
|
tr
'\n'
' '
)
printf
'\e[5n'
if
[
-n
"
$selected
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
shell/completion.zsh
+
1
-
1
View file @
44d3faa0
...
...
@@ -163,7 +163,7 @@ fzf-completion() {
# Kill completion (do not require trigger sequence)
if
[
$cmd
=
kill
-a
${
LBUFFER
[-1]
}
=
' '
]
;
then
fzf
=
"
$(
__fzfcmd_complete
)
"
matches
=
$(
ps
-ef
|
sed
1d |
FZF_DEFAULT_OPTS
=
"
$FZF_DEFAULT_OPTS
--preview 'echo {}' --preview-window down:3:wrap
--min-height 15
$FZF_COMPLETION_OPTS
"
${
=fzf
}
-m
|
awk
'{print $2}'
|
tr
'\n'
' '
)
matches
=
$(
ps
-ef
|
sed
1d |
FZF_DEFAULT_OPTS
=
"
--height
${
FZF_TMUX_HEIGHT
:-
50
%
}
--min-height 15 --reverse
$FZF_DEFAULT_OPTS
--preview 'echo {}' --preview-window down:3:wrap
$FZF_COMPLETION_OPTS
"
${
=fzf
}
-m
|
awk
'{print $2}'
|
tr
'\n'
' '
)
if
[
-n
"
$matches
"
]
;
then
LBUFFER
=
"
$LBUFFER$matches
"
fi
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets