1
0
Fork 0

use new quoted syntax

This commit is contained in:
Andrey Orst 2019-06-28 15:27:50 +03:00
parent 2d2d4b47ad
commit 4243c4b9e9
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ map global fzf -docstring "open buffer" 'b' '<esc>: fzf-buffer<ret>'
define-command -hidden fzf-buffer %{ evaluate-commands %sh{
buffers=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-buffers.XXXXXX)
eval "set -- $kak_buflist"
eval "set -- $kak_quoted_quoted_buflist"
while [ $# -gt 0 ]; do
printf "%s\n" "$1" >> $buffers
shift

View file

@ -20,7 +20,7 @@ hook global -once WinCreate .* %{ try %{
define-command -hidden fzf-yank-ring %{ evaluate-commands %sh{
yanks=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-yanks.XXXXXX)
eval "set -- $kak_opt_yank_ring_history"
eval "set -- $kak_quoted_opt_yank_ring_history"
while [ $# -gt 0 ]; do
item=$(printf "%s" "$1" | sed "s/^'//;s/'$//" | awk 1 ORS='␤')
printf "%s\n" "$item" >> $yanks