diff --git a/src/rc/global.kak b/src/rc/global.kak new file mode 100644 index 00000000..8e03cdb8 --- /dev/null +++ b/src/rc/global.kak @@ -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`