diff options
author | Matthew Lemon <y@yulqen.org> | 2023-03-18 20:47:44 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-03-18 20:47:44 +0000 |
commit | b7fce3ca16442b606f76883618794a1f66d07312 (patch) | |
tree | e1b822ce07ee952b01945ed418ab8d16396356dd | |
parent | e4f795714e0299d673f9b0db2dc2269b7cce89c1 (diff) |
added environment variable for notes directory
Diffstat (limited to '')
-rw-r--r-- | fish/config.fish | 2 | ||||
-rw-r--r-- | vim/vimrc | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fish/config.fish b/fish/config.fish index fa7d439..214982f 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -21,6 +21,8 @@ set -gx LESS '-iMRS -x2' set -gx PATH ~/.local/bin $PATH set -gx PATH ~/bin $PATH +set -gx NOTES_DIR ~/Documents/Notes + set -gx BOOKMARK_PY_SMTP_HOST smtp.fastmail.com set -gx BOOKMARK_PY_FROM mrlemon@mailforce.net set -gx BOOKMARK_PY_EMAIL bookmark@matthewlemon.com @@ -213,7 +213,7 @@ let test#go#runner = 'gotest' autocmd FileType python let b:dispatch = 'mypy --ignore-missing-imports' " notational-fzf-vim -let g:nv_search_paths = ['~/Notes', '~/Notes/Archive'] +let g:nv_search_paths = [$NOTES_DIR, '$NOTES_DIR/Archive'] " jedo-vim let g:jedi#goto_command = "<leader>d" @@ -428,9 +428,9 @@ let g:fzf_colors = " ghetto note system " Go to index of notes -nnoremap <leader>ni :e ~/Documents/Notes/index.md<CR>:cd ~/Documents/Notes<CR> +nnoremap <leader>ni :e $NOTES_DIR/index.md<CR>:cd $NOTES_DIR<CR> " Depends on grepprg being set to rg -command! -nargs=1 Ngrep grep "<args>" -g "*.md" ~/Documents/Notes +command! -nargs=1 Ngrep grep "<args>" -g "*.md" $NOTES_DIR nnoremap <leader>nn :Ngrep " open quicklist vertical |