add rc/global.kak file which provides the tag command using GNU GLOBAL
This commit is contained in:
parent
5f2471c147
commit
05442857e6
12
src/rc/global.kak
Normal file
12
src/rc/global.kak
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
def -env-params tag eval \
|
||||||
|
`if [[ ${kak_param0} != "" ]]; then
|
||||||
|
tagname=${kak_param0}
|
||||||
|
else
|
||||||
|
tagname=${kak_selection}
|
||||||
|
fi
|
||||||
|
params=$(global --result grep ${tagname} | sed 's/\([^:]*\):\([0-9]*\):\(.*\)/"\1:\2 \3" "edit \1 \2"/')
|
||||||
|
if [[ ${params} != "" ]]; then
|
||||||
|
echo "menu $params"
|
||||||
|
else
|
||||||
|
echo echo tag ${tagname} not found
|
||||||
|
fi`
|
Loading…
Reference in New Issue
Block a user