-
Notifications
You must be signed in to change notification settings - Fork 721
Fuzzy finder
Bruno Heridet edited this page Dec 14, 2016
·
27 revisions
def git-edit -params 1 -shell-candidates %{ git ls-files } %{ edit %arg{1} }
def -docstring 'invoke fzf to open a file' \
fzf-file %{ %sh{
if [ -z "$TMUX" ]; then
echo echo only works inside tmux
else
FILE=`fzf-tmux -d 15`
if [ -n "$FILE" ]; then
echo "eval -client '$kak_client' 'edit ${FILE}'" | kak -p ${kak_session}
fi
fi
}}
def -docstring 'invoke fzf to select a buffer' \
fzf-buffer %{ %sh{
if [ -z "$TMUX" ]; then
echo echo only works inside tmux
else
BUFFER=`echo ${kak_buflist} | tr : '\n' | fzf-tmux -d 15`
if [ -n "$BUFFER" ]; then
echo "eval -client '$kak_client' 'buffer ${BUFFER}'" | kak -p ${kak_session}
fi
fi
}}
- Normal mode commands
- Avoid the escape key
- Implementing user mode (Leader key)
- Kakoune explain
- Kakoune TV