about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-28 19:45:23 +0100
committerSoispha <soispha@vhack.eu>2023-12-28 19:45:23 +0100
commita4999178e0b62a393e8e013d903340368b1d23e9 (patch)
treec3c5a45c28a8c5bad1bd3cf1d6e9420d67b965ea /hm
parentfix(hm/pkgs/src/neorg/fstart): Fix typo in task filter (diff)
downloadnixos-config-a4999178e0b62a393e8e013d903340368b1d23e9.tar.gz
nixos-config-a4999178e0b62a393e8e013d903340368b1d23e9.zip
fix(hm/pkgs/src/neorg/utils): Correctly convert context to project names
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/pkgs/scripts/wrappers/neorg/neorg4
1 files changed, 2 insertions, 2 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg/neorg
index 3fdef9a1..a4326610 100755
--- a/hm/soispha/pkgs/scripts/wrappers/neorg/neorg
+++ b/hm/soispha/pkgs/scripts/wrappers/neorg/neorg
@@ -83,12 +83,12 @@ UTILS_get_neorg_project_dir() {
 }
 UTILS_project_to_context_name() {
     project="$1";
-    context="$(sed 's|.|_|' "$(ptmp "$project")")";
+    context="$(sed 's|\.|_|g' "$(ptmp "$project")")";
     printf "%s\n" "$context";
 }
 UTILS_context_to_project_name() {
     context="$1";
-    project="$(sed 's|_|.|' "$(ptmp "$context")")";
+    project="$(sed 's|_|\.|g' "$(ptmp "$context")")";
     printf "%s\n" "$project";
 }
 # }}}