Skip to content

Commit

Permalink
zk: change dailies to journal
Browse files Browse the repository at this point in the history
Signed-off-by: aserowy <serowy@hotmail.com>
  • Loading branch information
aserowy committed Nov 18, 2024
1 parent 0aed90c commit 95f545f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,13 @@ end
local function zettelkasten()
keymaps.register({ "n" }, {
["<leader>zn"] = "<cmd>ZkNew { title = vim.fn.input('Title: '), dir = 'zettel' }<CR>",
["<leader>zd"] = "<cmd>ZkNew { dir = 'dailies' }<CR>",
["<leader>zo"] = "<cmd>ZkNotes { sort = { 'modified' } }<CR>",
["<leader>zt"] = "<cmd>ZkTags<CR>",
["<leader>zf"] = "<cmd>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }<CR>",
["<leader>zd"] = "<cmd>ZkNew { dir = 'journal' }<CR>",
})

keymaps.register({ "v" }, {
["<leader>zn"] = ":'<,'>ZkNewFromTitleSelection { dir = 'zettel' }<CR>",
["<leader>zc"] = ":'<,'>ZkNewFromContentSelection { dir = 'zettel', title = vim.fn.input('Title: ') }<CR>",
["<leader>zf"] = ":'<,'>ZkMatch<CR>",
["<leader>zd"] = ":'<,'>ZkNewFromContentSelection { dir = 'journal' }<CR>",
})
end

Expand Down

0 comments on commit 95f545f

Please sign in to comment.