summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-10-05 13:51:42 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-10-05 13:51:42 +0100
commit39a859d85da8d228c3ebcc1b8bc02b8805083577 (patch)
tree1d18e848ac15a3fc8fefdc7a42f601a2691b3f98
parentdb2fa6f5cbe170f8f8889724d97c502fe10a3cad (diff)
Use markup in :tag menu to show search pattern
-rw-r--r--rc/ctags.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/ctags.kak b/rc/ctags.kak
index 043f13ec..06b56119 100644
--- a/rc/ctags.kak
+++ b/rc/ctags.kak
@@ -19,10 +19,10 @@ def -shell-params \
/[^\t]+\t[^\t]+\t\/\^.*\$\// {
re=$0; sub(".*\t/\\^", "", re); sub("\\$/.*", "", re); gsub("(\\{|\\}).*$", "", re);
keys=re; gsub(/</, "<lt>", keys);
- out = out " %{" $2 " [" re "]} %{try %{ edit %{" $2 "}; exec %{/\\Q" keys "<ret>vc} } catch %{ echo %{unable to find tag} } }"
+ out = out " %{" $2 " {MenuInfo}" re "} %{try %{ edit %{" $2 "}; exec %{/\\Q" keys "<ret>vc} } catch %{ echo %{unable to find tag} } }"
}
/[^\t]+\t[^\t]+\t([0-9]+)/ { out = out " %{" $2 ":" $3 "} %{edit %{" $2 "} %{" $3 "}}" }
- END { print length(out) == 0 ? "echo -color Error no such tag " ENVIRON["tagname"] : "menu -auto-single " out }'
+ 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 %{