mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-30 23:37:17 +03:00
ctags.kak: avoid brackets in search pattern
This commit is contained in:
parent
1c94064713
commit
31d2cfa9a1
@ -13,8 +13,8 @@ def -shell-params \
|
|||||||
echo "echo tag not found ${tagname}"
|
echo "echo tag not found ${tagname}"
|
||||||
else
|
else
|
||||||
menuparam=$(readtags ${tagname} | perl -i -ne '
|
menuparam=$(readtags ${tagname} | perl -i -ne '
|
||||||
/([^\t]+)\t([^\t]+)\t\/\^(.*)\$\// and print "%{$2 [$3]} %{try %{ edit %{$2}; exec %{/\\Q$3<ret><a-c>} } catch %{ echo %{unable to find tag} } } ";
|
/([^\t]+)\t([^\t]+)\t\/\^([^{}]*).*\$\// and print "%{$2 [$3]} %{try %{ edit %{$2}; exec %{/\\Q$3<ret><a-c>} } catch %{ echo %{unable to find tag} } } ";
|
||||||
/([^\t]+)\t([^\t]+)\t(\d+)/ and print "%{$2:$3} %{edit %{$2} %{$3}}";
|
/([^\t]+)\t([^\t]+)\t(\d+)/ and print "%{$2:$3} %{edit %{$2} %{$3}}";
|
||||||
')
|
')
|
||||||
|
|
||||||
if [[ -z "${menuparam}" ]]; then
|
if [[ -z "${menuparam}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user