svn commit: r452845 - in head/textproc/fzf: . files
Jimmy Olgeni
olgeni at FreeBSD.org
Wed Oct 25 13:19:31 UTC 2017
Author: olgeni
Date: Wed Oct 25 13:19:29 2017
New Revision: 452845
URL: https://svnweb.freebsd.org/changeset/ports/452845
Log:
textproc/fzf: quick compatibility fix for kill command autocompletion.
Added:
head/textproc/fzf/files/patch-shell_completion.bash (contents, props changed)
head/textproc/fzf/files/patch-shell_completion.zsh (contents, props changed)
Modified:
head/textproc/fzf/Makefile
Modified: head/textproc/fzf/Makefile
==============================================================================
--- head/textproc/fzf/Makefile Wed Oct 25 12:43:31 2017 (r452844)
+++ head/textproc/fzf/Makefile Wed Oct 25 13:19:29 2017 (r452845)
@@ -3,7 +3,7 @@
PORTNAME= fzf
PORTVERSION= 0.16.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MAINTAINER= sascha at root-login.org
Added: head/textproc/fzf/files/patch-shell_completion.bash
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/fzf/files/patch-shell_completion.bash Wed Oct 25 13:19:29 2017 (r452845)
@@ -0,0 +1,11 @@
+--- shell/completion.bash.orig 2017-10-25 13:15:42 UTC
++++ shell/completion.bash
+@@ -215,7 +215,7 @@ _fzf_complete_kill() {
+
+ local selected fzf
+ fzf="$(__fzfcmd_complete)"
+- 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' ' ')
++ selected=$(ps -uef | 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
Added: head/textproc/fzf/files/patch-shell_completion.zsh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/fzf/files/patch-shell_completion.zsh Wed Oct 25 13:19:29 2017 (r452845)
@@ -0,0 +1,11 @@
+--- shell/completion.zsh.orig 2017-10-25 13:15:38 UTC
++++ shell/completion.zsh
+@@ -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="--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' ' ')
++ matches=$(ps -uef | 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
More information about the svn-ports-head
mailing list