update doc
This commit is contained in:
parent
9b07bddfdc
commit
7fee8cf5a8
5 changed files with 15 additions and 15 deletions
22
rc/fzf.kak
22
rc/fzf.kak
|
@ -69,21 +69,21 @@ Best used with mapping like:
|
||||||
" \
|
" \
|
||||||
fzf-mode %{ try %{ evaluate-commands 'enter-user-mode fzf' } }
|
fzf-mode %{ try %{ evaluate-commands 'enter-user-mode fzf' } }
|
||||||
|
|
||||||
define-command -hidden -docstring "wrapper command to create new vertical split. Should work in both new and old Kakoune" \
|
define-command -hidden -docstring "wrapper command to create new vertical split" \
|
||||||
fzf-vertical -params .. %{ try %{
|
fzf-vertical -params .. %{ try %{
|
||||||
tmux-terminal-vertical kak -c %val{session} -e "%arg{@}"
|
tmux-terminal-vertical kak -c %val{session} -e "%arg{@}"
|
||||||
} catch %{
|
} catch %{
|
||||||
tmux-new-vertical "%arg{@}"
|
tmux-new-vertical "%arg{@}"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
define-command -hidden -docstring "wrapper command to create new horizontal split. Should work in both new and old Kakoune" \
|
define-command -hidden -docstring "wrapper command to create new horizontal split" \
|
||||||
fzf-horizontal -params .. %{ try %{
|
fzf-horizontal -params .. %{ try %{
|
||||||
tmux-terminal-horizontal kak -c %val{session} -e "%arg{@}"
|
tmux-terminal-horizontal kak -c %val{session} -e "%arg{@}"
|
||||||
} catch %{
|
} catch %{
|
||||||
tmux-new-horizontal "%arg{@}"
|
tmux-new-horizontal "%arg{@}"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
define-command -hidden -docstring "wrapper command to create new window. Should work in both new and old Kakoune" \
|
define-command -hidden -docstring "wrapper command to create new terminal" \
|
||||||
fzf-window -params .. %{ try %sh{
|
fzf-window -params .. %{ try %sh{
|
||||||
if [ -n "$kak_client_env_TMUX" ]; then
|
if [ -n "$kak_client_env_TMUX" ]; then
|
||||||
printf "%s\n" 'tmux-terminal-window kak -c %val{session} -e "%arg{@}"'
|
printf "%s\n" 'tmux-terminal-window kak -c %val{session} -e "%arg{@}"'
|
||||||
|
@ -102,14 +102,14 @@ define-command -docstring \
|
||||||
"fzf <switches>: generic fzf command. This command can be used to create new fzf wrappers for various Kakoune or external features.
|
"fzf <switches>: generic fzf command. This command can be used to create new fzf wrappers for various Kakoune or external features.
|
||||||
|
|
||||||
Switches:
|
Switches:
|
||||||
-kak-cmd <command>: A Kakoune cmd that is applied to fzf resulting value.
|
-kak-cmd <command>: A Kakoune cmd that is applied to fzf resulting value
|
||||||
-items-cmd <items command>: A command that is used as a pipe to provide list of values to fzf.
|
-items-cmd <items command>: A command that is used as a pipe to provide list of values to fzf
|
||||||
-fzf-impl <implementation>: Owerride fzf implementation variable.
|
-fzf-impl <implementation>: Owerride fzf implementation variable
|
||||||
-fzf-args <args>: Additional flags for fzf program.
|
-fzf-args <args>: Additional flags for fzf program
|
||||||
-preview-cmd: A preview command.
|
-preview-cmd: A preview command
|
||||||
-preview: Should fzf window include preview.
|
-preview: Should fzf window include preview
|
||||||
-filter <commands>: A pipe which will be applied to result provided by fzf.
|
-filter <commands>: A pipe which will be applied to result provided by fzf
|
||||||
-post-action <commands>: Extra commands that are preformed after `-kak-cmd' command." \
|
-post-action <commands>: Extra commands that are preformed after `-kak-cmd' command" \
|
||||||
-shell-script-completion %{
|
-shell-script-completion %{
|
||||||
printf "%s\n" "-kak-cmd
|
printf "%s\n" "-kak-cmd
|
||||||
-items-cmd
|
-items-cmd
|
||||||
|
|
|
@ -814,7 +814,7 @@ define-command -hidden fzf-tag -params ..2 %{ evaluate-commands %sh{
|
||||||
|
|
||||||
message="Jump to a symbol''s definition
|
message="Jump to a symbol''s definition
|
||||||
<ret>: open tag in new buffer
|
<ret>: open tag in new buffer
|
||||||
<c-w>: open tag in new window"
|
<c-w>: open tag in new terminal"
|
||||||
|
|
||||||
[ -n "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
[ -n "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
||||||
<c-s>: open tag in horizontal split
|
<c-s>: open tag in horizontal split
|
||||||
|
|
|
@ -51,7 +51,7 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{
|
||||||
|
|
||||||
message="Open single or multiple files.
|
message="Open single or multiple files.
|
||||||
<ret>: open file in new buffer.
|
<ret>: open file in new buffer.
|
||||||
<c-w>: open file in new window"
|
<c-w>: open file in new terminal"
|
||||||
[ ! -z "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
[ ! -z "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
||||||
<c-s>: open file in horizontal split
|
<c-s>: open file in horizontal split
|
||||||
<c-v>: open file in vertical split"
|
<c-v>: open file in vertical split"
|
||||||
|
|
|
@ -46,7 +46,7 @@ bzr status"
|
||||||
<c-v>: open file in vertical split"
|
<c-v>: open file in vertical split"
|
||||||
message="Open single or multiple files from git tree.
|
message="Open single or multiple files from git tree.
|
||||||
<ret>: open file in new buffer.
|
<ret>: open file in new buffer.
|
||||||
<c-w>: open file in new window $additional_keybindings"
|
<c-w>: open file in new terminal $additional_keybindings"
|
||||||
printf "%s\n" "info -title %{$title} %{$message}"
|
printf "%s\n" "info -title %{$title} %{$message}"
|
||||||
printf "%s\n" "fzf-$vcs"
|
printf "%s\n" "fzf-$vcs"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -31,7 +31,7 @@ define-command -hidden fzf-sk-grep %{ evaluate-commands %sh{
|
||||||
title="skim interactive grep"
|
title="skim interactive grep"
|
||||||
message="Interactively grep pattern from current directory
|
message="Interactively grep pattern from current directory
|
||||||
<ret>: open search result in new buffer.
|
<ret>: open search result in new buffer.
|
||||||
<c-w>: open search result in new window"
|
<c-w>: open search result in new terminal"
|
||||||
[ ! -z "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
[ ! -z "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
||||||
<c-s>: open search result in horizontal split
|
<c-s>: open search result in horizontal split
|
||||||
<c-v>: open search result in vertical split"
|
<c-v>: open search result in vertical split"
|
||||||
|
|
Loading…
Reference in a new issue