mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 07:15:37 +00:00
journal vim headers
This commit is contained in:
parent
beeebb178e
commit
59c65bfa53
@ -1,4 +1,4 @@
|
|||||||
function note-header
|
function note-header
|
||||||
set -g CURRENT_WEATHER (curl -s "https://wttr.in/?format=1")
|
set -g CURRENT_WEATHER (curl -s "https://wttr.in/?format=1")
|
||||||
set -g JOURNAL_HEADER "[Yesterday]($YESTERDAY_NOTE.md) | [Home](home.md) | [Tomorrow]($TOMORROW_NOTE.md)\n\n$LONG_DATE\n$CURRENT_WEATHER\n#journal\n\n---\n\n"
|
set -g JOURNAL_HEADER "[Yesterday]($YESTERDAY_NOTE.md) | [Home](../home.md) | [Today](obsidian://advanced-uri?daily=true) | [Tomorrow]($TOMORROW_NOTE.md)\n\n$LONG_DATE\n$CURRENT_WEATHER\n#journal\n\n---\n\n"
|
||||||
end
|
end
|
||||||
|
@ -551,6 +551,7 @@ key("n", "<Leader>gr", ":!gh repo view -w<CR><CR>", {silent=true})
|
|||||||
key("n", "<Leader>tt",
|
key("n", "<Leader>tt",
|
||||||
[[<Cmd>exe 'edit $NOTES_PATH/journal/'.strftime("%Y-%m-%d_%a").'.md'<CR>]]
|
[[<Cmd>exe 'edit $NOTES_PATH/journal/'.strftime("%Y-%m-%d_%a").'.md'<CR>]]
|
||||||
)
|
)
|
||||||
|
key("n", "<Leader>jj", ":!journal<CR>:e<CR>")
|
||||||
|
|
||||||
-- Window commands
|
-- Window commands
|
||||||
key("n", "<Leader>wv", ":vsplit<CR>")
|
key("n", "<Leader>wv", ":vsplit<CR>")
|
||||||
@ -567,7 +568,7 @@ key("", "<Leader>tL", ":Tabularize /---<CR>")
|
|||||||
-- Vimrc editing
|
-- Vimrc editing
|
||||||
key("n", "<Leader>fv", ":edit $MYVIMRC<CR>")
|
key("n", "<Leader>fv", ":edit $MYVIMRC<CR>")
|
||||||
key("n", "<Leader>rr", ":luafile $MYVIMRC<CR>")
|
key("n", "<Leader>rr", ":luafile $MYVIMRC<CR>")
|
||||||
key("n", "<Leader>rp", ":luafile $MYVIMRC<CR>:PackerInstall<CR>:PackerCompile<CR>")
|
key("n", "<Leader>rp", ":luafile $MYVIMRC<CR>:PackerInstall<CR>:")
|
||||||
key("n", "<Leader>rc", ":luafile $MYVIMRC<CR>:PackerCompile<CR>")
|
key("n", "<Leader>rc", ":luafile $MYVIMRC<CR>:PackerCompile<CR>")
|
||||||
|
|
||||||
-- Keep cursor in place
|
-- Keep cursor in place
|
||||||
@ -586,3 +587,4 @@ key("t", "<A-CR>", "<C-\\><C-n>") --- Exit terminal mo
|
|||||||
key("n", "<A-CR>", ":noh<CR>", {silent=true}) --- Clear search in VimWiki
|
key("n", "<A-CR>", ":noh<CR>", {silent=true}) --- Clear search in VimWiki
|
||||||
key("n", "Y", "y$") --- Copy to end of line
|
key("n", "Y", "y$") --- Copy to end of line
|
||||||
key("v", "<C-r>", "y<Esc>:%s/<C-r>+//gc<left><left><left>") --- Substitute selected
|
key("v", "<C-r>", "y<Esc>:%s/<C-r>+//gc<left><left><left>") --- Substitute selected
|
||||||
|
key("v", "D", "y'>p") --- Duplicate selected
|
||||||
|
Loading…
Reference in New Issue
Block a user