use new quoted syntax
This commit is contained in:
parent
2d2d4b47ad
commit
4243c4b9e9
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ map global fzf -docstring "open buffer" 'b' '<esc>: fzf-buffer<ret>'
|
||||||
|
|
||||||
define-command -hidden fzf-buffer %{ evaluate-commands %sh{
|
define-command -hidden fzf-buffer %{ evaluate-commands %sh{
|
||||||
buffers=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-buffers.XXXXXX)
|
buffers=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-buffers.XXXXXX)
|
||||||
eval "set -- $kak_buflist"
|
eval "set -- $kak_quoted_quoted_buflist"
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
printf "%s\n" "$1" >> $buffers
|
printf "%s\n" "$1" >> $buffers
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -20,7 +20,7 @@ hook global -once WinCreate .* %{ try %{
|
||||||
|
|
||||||
define-command -hidden fzf-yank-ring %{ evaluate-commands %sh{
|
define-command -hidden fzf-yank-ring %{ evaluate-commands %sh{
|
||||||
yanks=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-yanks.XXXXXX)
|
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
|
while [ $# -gt 0 ]; do
|
||||||
item=$(printf "%s" "$1" | sed "s/^'//;s/'$//" | awk 1 ORS='')
|
item=$(printf "%s" "$1" | sed "s/^'//;s/'$//" | awk 1 ORS='')
|
||||||
printf "%s\n" "$item" >> $yanks
|
printf "%s\n" "$item" >> $yanks
|
||||||
|
|
Loading…
Reference in a new issue