diff options
Diffstat (limited to 'hm/soispha/pkgs/scripts/wrappers')
-rw-r--r-- | hm/soispha/pkgs/scripts/wrappers/neorg_id_completion_function | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg_id_completion_function b/hm/soispha/pkgs/scripts/wrappers/neorg_id_completion_function new file mode 100644 index 00000000..e9163d2e --- /dev/null +++ b/hm/soispha/pkgs/scripts/wrappers/neorg_id_completion_function @@ -0,0 +1 @@ +(wc="$(task "$(con="$(task _get rc.context)"; if [ "$con" ]; then echo "project:$con"; else echo "0-10000"; fi)" _ids)"; if [ "$wc" ]; then echo "$wc"; else echo "0"; fi ) | xargs task _zshids | awk -F: -v q="'" '{gsub(/'\''/, q "\" q q ); print $1 ":" q $2 q}' |