diff --git a/i3swallow.plugin.zsh b/i3swallow.plugin.zsh index d297e5d..acab03b 100644 --- a/i3swallow.plugin.zsh +++ b/i3swallow.plugin.zsh @@ -1,4 +1,4 @@ -_i3swallow() { +i3swallow-command-line() { [[ -z $BUFFER ]] && zle up-history if [[ $BUFFER == i3-swallow\ * ]]; then LBUFFER="${LBUFFER#i3-swallow }" @@ -6,7 +6,7 @@ _i3swallow() { LBUFFER="i3-swallow $LBUFFER" fi } -zle -N _i3swallow +zle -N i3swallow-command-line # Defined shortcut keys: [Pos1][Pos1] -bindkey "OHOH" _i3swallow +bindkey "OHOH" i3swallow-command-line