diff --git a/rc/modules/fzf-yank-ring.kak b/rc/modules/fzf-yank-ring.kak index 72045dc..834cd1a 100644 --- a/rc/modules/fzf-yank-ring.kak +++ b/rc/modules/fzf-yank-ring.kak @@ -13,12 +13,10 @@ try %{ declare-user-mode fzf } # this will fail if yank-ring.kak isn't installed -hook global -once WinCreate .* %{ - try %{ - set-option -add global yank_ring_history - map global fzf -docstring "open yank-ring" 'y' ': fzf-yank-ring' - } -} +hook global -once WinCreate .* %{ try %{ + set-option -add global yank_ring_history + map global fzf -docstring "open yank-ring" 'y' ': fzf-yank-ring' +}} define-command -hidden fzf-yank-ring %{ evaluate-commands %sh{ yanks=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-yanks.XXXXXX)