1
0
Fork 0

update doc

This commit is contained in:
Andrey Orst 2019-03-28 08:38:38 +03:00
parent 9b07bddfdc
commit 7fee8cf5a8
5 changed files with 15 additions and 15 deletions

View file

@ -69,21 +69,21 @@ Best used with mapping like:
" \
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 %{
tmux-terminal-vertical kak -c %val{session} -e "%arg{@}"
} catch %{
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 %{
tmux-terminal-horizontal kak -c %val{session} -e "%arg{@}"
} catch %{
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{
if [ -n "$kak_client_env_TMUX" ]; then
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.
Switches:
-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.
-fzf-impl <implementation>: Owerride fzf implementation variable.
-fzf-args <args>: Additional flags for fzf program.
-preview-cmd: A preview command.
-preview: Should fzf window include preview.
-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." \
-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
-fzf-impl <implementation>: Owerride fzf implementation variable
-fzf-args <args>: Additional flags for fzf program
-preview-cmd: A preview command
-preview: Should fzf window include preview
-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" \
-shell-script-completion %{
printf "%s\n" "-kak-cmd
-items-cmd

View file

@ -814,7 +814,7 @@ define-command -hidden fzf-tag -params ..2 %{ evaluate-commands %sh{
message="Jump to a symbol''s definition
<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="
<c-s>: open tag in horizontal split

View file

@ -51,7 +51,7 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{
message="Open single or multiple files.
<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="
<c-s>: open file in horizontal split
<c-v>: open file in vertical split"

View file

@ -46,7 +46,7 @@ bzr status"
<c-v>: open file in vertical split"
message="Open single or multiple files from git tree.
<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" "fzf-$vcs"
exit

View file

@ -31,7 +31,7 @@ define-command -hidden fzf-sk-grep %{ evaluate-commands %sh{
title="skim interactive grep"
message="Interactively grep pattern from current directory
<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="
<c-s>: open search result in horizontal split
<c-v>: open search result in vertical split"