Skip to content

Commit

Permalink
zk: add mappings for (b)acklinks and (l)inks
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 95f545f commit fbbe4f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ end

local function zettelkasten()
keymaps.register({ "n" }, {
["<leader>zb"] = "<cmd>ZkBacklinks<CR>",
["<leader>zl"] = "<cmd>ZkLinks<CR>",
["<leader>zn"] = "<cmd>ZkNew { title = vim.fn.input('Title: '), dir = 'zettel' }<CR>",
["<leader>zd"] = "<cmd>ZkNew { dir = 'journal' }<CR>",
})
Expand Down

0 comments on commit fbbe4f2

Please sign in to comment.