mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 08:51:46 +03:00
Remove debug commands from rc files
This commit is contained in:
parent
c458e5f129
commit
030b248a30
@ -99,7 +99,6 @@ def alt -docstring "Jump to the alternate file (header/implementation)" %{ %sh{
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo debug ${altname}
|
|
||||||
if [ -f ${altname} ]; then
|
if [ -f ${altname} ]; then
|
||||||
echo edit "'${altname}'"
|
echo edit "'${altname}'"
|
||||||
else
|
else
|
||||||
|
@ -12,7 +12,7 @@ def -shell-params \
|
|||||||
readtags ${tagname} | awk -F '\t|\n' -e '
|
readtags ${tagname} | awk -F '\t|\n' -e '
|
||||||
/[^\t]+\t[^\t]+\t\/\^.*\$\// {
|
/[^\t]+\t[^\t]+\t\/\^.*\$\// {
|
||||||
gsub("^/\\^", "", $3); gsub("\\$/$", "", $3); gsub("(\\{|\\}).*$", "", $3);
|
gsub("^/\\^", "", $3); gsub("\\$/$", "", $3); gsub("(\\{|\\}).*$", "", $3);
|
||||||
out = out " %{" $2 " [" $3 "]} %{try %{ edit %{" $2 "}; exec %{/\\Q" $3 "<ret>vc} } catch %{ debug %{" $3 "}; echo %{unable to find tag} } }"
|
out = out " %{" $2 " [" $3 "]} %{try %{ edit %{" $2 "}; exec %{/\\Q" $3 "<ret>vc} } catch %{ echo %{unable to find tag} } }"
|
||||||
}
|
}
|
||||||
/[^\t]+\t[^\t]+\t([0-9]+)/ { out = out " %{" $2 ":" $3 "} %{edit %{" $2 "} %{" $3 "}}" }
|
/[^\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 -auto-single " out }'
|
||||||
|
Loading…
Reference in New Issue
Block a user