diff options
author | Soispha <soispha@vhack.eu> | 2023-12-28 19:45:23 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-12-28 19:45:23 +0100 |
commit | a4999178e0b62a393e8e013d903340368b1d23e9 (patch) | |
tree | c3c5a45c28a8c5bad1bd3cf1d6e9420d67b965ea | |
parent | fix(hm/pkgs/src/neorg/fstart): Fix typo in task filter (diff) | |
download | nixos-config-a4999178e0b62a393e8e013d903340368b1d23e9.tar.gz nixos-config-a4999178e0b62a393e8e013d903340368b1d23e9.zip |
fix(hm/pkgs/src/neorg/utils): Correctly convert context to project names
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/neorg/neorg | 4 |
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"; } # }}} |