ctags.kak: tweak auto info

This commit is contained in:
Maxime Coste 2013-01-30 19:05:52 +01:00
parent c9b113fd5f
commit 45367bf447

View File

@ -30,7 +30,7 @@ def funcinfo %{
exec [(<space>B;
%sh{
if [[ "$kak_selection" =~ [a-zA-Z_]+\( ]]; then
sigs=$(readtags -e ${kak_selection%(} | grep kind:function | sed -e s/^.*signature://)
sigs=$(readtags -e ${kak_selection%(} | grep kind:f | sed -re 's/^(\S+).*(class|struct|namespace):(\S+).*signature:(.*)$/\4 [\3::\1]/')
if [[ -n "$sigs" ]]; then
echo "info -anchor right '$sigs'"
exit
@ -43,5 +43,6 @@ def funcinfo %{
hook global WinSetOption filetype=cpp %{
hook window NormalIdle .* funcinfo
hook window NormalEnd .* info
hook window InsertIdle .* funcinfo
}