From a4999178e0b62a393e8e013d903340368b1d23e9 Mon Sep 17 00:00:00 2001 From: Soispha Date: Thu, 28 Dec 2023 19:45:23 +0100 Subject: fix(hm/pkgs/src/neorg/utils): Correctly convert context to project names --- hm/soispha/pkgs/scripts/wrappers/neorg/neorg | 4 ++-- 1 file 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"; } # }}} -- cgit 1.4.1