From 9a10d79ae8f38e908fcdc3baf58ea8d97b45556d Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 15 Jun 2017 15:40:15 +0300 Subject: [PATCH] rc ctags: Make commands follow the naming convention --- rc/base/ctags.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/base/ctags.kak b/rc/base/ctags.kak index 101782f6..8c5fdb61 100644 --- a/rc/base/ctags.kak +++ b/rc/base/ctags.kak @@ -19,9 +19,9 @@ def -params ..1 \ fi cat "$namecache" done' \ - -docstring %{tag []: jump to a symbol's definition + -docstring %{ctags-search []: jump to a symbol's definition If no symbol is passed then the current selection is used as symbol name} \ - tag \ + ctags-search \ %{ %sh{ export tagname=${1:-${kak_selection}} printf %s\\n "$kak_opt_ctagsfiles" | tr ':' '\n' | @@ -43,7 +43,7 @@ If no symbol is passed then the current selection is used as symbol name} \ END { print ( length(out) == 0 ? "echo -color Error no such tag " ENVIRON["tagname"] : "menu -markup -auto-single " out ) }' }} -def tag-complete -docstring "Insert completion candidates for the current selection into the buffer's local variables" %{ eval -draft %{ +def ctags-complete -docstring "Insert completion candidates for the current selection into the buffer's local variables" %{ eval -draft %{ exec hb^\w+$ %sh{ { compl=$(readtags -p "$kak_selection" | cut -f 1 | sort | uniq | sed -e 's/:/\\:/g' | sed -e 's/\n/:/g' ) @@ -94,7 +94,7 @@ def ctags-generate -docstring 'Generate tag file asynchronously' %{ } > /dev/null 2>&1 < /dev/null & } } -def update-tags -docstring 'Update tags for the given file' %{ +def ctags-update-tags -docstring 'Update tags for the given file' %{ %sh{ { while ! mkdir .tags.kaklock 2>/dev/null; do sleep 1; done trap 'rmdir .tags.kaklock' EXIT