From e58763a168eeaaa1b1f0277bda8753205a1116b8 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 14 Nov 2021 20:31:31 -0500 Subject: [PATCH] icloud notes directory --- nvim.configlink/init.lua | 2 +- scripts/setup_fish | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/nvim.configlink/init.lua b/nvim.configlink/init.lua index d84a554..874340f 100644 --- a/nvim.configlink/init.lua +++ b/nvim.configlink/init.lua @@ -521,7 +521,7 @@ key("n", "fu", ":lcd ..", {silent=true}) key("n", "", ":b#", {silent=true}) key("n", "gr", ":!gh repo view -w", {silent=true}) key("n", "tt", - [[exe 'edit ~/notes/journal/'.strftime("%Y-%m-%d_%a").'.md']] + [[exe 'edit $NOTES_PATH/journal/'.strftime("%Y-%m-%d_%a").'.md']] ) -- Window commands diff --git a/scripts/setup_fish b/scripts/setup_fish index 35b1035..0074ed3 100755 --- a/scripts/setup_fish +++ b/scripts/setup_fish @@ -1,13 +1,13 @@ #!/usr/bin/env fish -set -U FISH_DIR (readlink ~/.config/fish) # Used for getting to this repo -set -Ux DOTS (dirname $FISH_DIR) # Directory of this config repo -set -U CDPATH . $HOME # Directories available for immediate cd -set -Ux EDITOR nvim # Preferred text editor -set -U PROJ $HOME/dev/work # Projects directory -set -Ux NOTES_PATH $HOME/notes # Notes directory -set -Ux MANPAGER "nvim +Man!" # Used for reading man pages -set -Ux DIRENV_LOG_FORMAT "" # Disable direnv output +set -U FISH_DIR (readlink ~/.config/fish) # Used for getting to this repo +set -Ux DOTS (dirname $FISH_DIR) # Directory of this config repo +set -U CDPATH . $HOME # Directories available for immediate cd +set -Ux EDITOR nvim # Preferred text editor +set -U PROJ $HOME/dev/work # Projects directory +set -Ux NOTES_PATH "$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/notes" # Notes directory +set -Ux MANPAGER "nvim +Man!" # Used for reading man pages +set -Ux DIRENV_LOG_FORMAT "" # Disable direnv output # Load abbreviations abbrs