From b8ab1f5ff199f62d8844aa23f777e54ef9348c3c Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 18 Oct 2023 16:13:49 +0200 Subject: fix(hm/pkgs/scr/neorg): Correctly cd to the project directory --- hm/soispha/pkgs/scripts/wrappers/neorg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hm/soispha/pkgs') diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index 78f6f64c..2bdb82cf 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -46,7 +46,8 @@ open_current_task_context() { fi # Perform shell expansion of Tilde - nvim +cd "%DEFAULT_NEORG_PROJECT_DIR" "$(sed "s|~|$HOME|" "$(ptmp "%DEFAULT_NEORG_PROJECT_DIR/$context_path")")"; + extended_neorg_project_dir="$(sed "s|~|$HOME|" "$(ptmp "%DEFAULT_NEORG_PROJECT_DIR")")"; + (cd "$extended_neorg_project_dir" && nvim +edit "$extended_neorg_project_dir/$context_path";) else dbg "No context active"; open_neorg_workspace_prompt; -- cgit 1.4.1