diff options
author | Soispha <soispha@vhack.eu> | 2023-12-28 15:31:01 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-12-28 16:00:33 +0100 |
commit | 77c3715ac03cb614b781011c50cd1fb109e88ccf (patch) | |
tree | 6423a2906b18d678f62cf2a0c3379955bbd58f28 /hm/soispha/pkgs/scripts/wrappers | |
parent | build(treewide): Update shell library (diff) | |
download | nixos-config-77c3715ac03cb614b781011c50cd1fb109e88ccf.zip |
fix(hm/pkgs/scr/neorg): Escape single quotes in completion function
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}' |