aboutsummaryrefslogtreecommitdiff
path: root/doc/muwiki.txt
diff options
context:
space:
mode:
authormoxie <moxie@3kgcat.fi>2026-03-17 09:03:45 +0200
committermoxie <moxie@3kgcat.fi>2026-03-17 09:44:53 +0200
commitbffcccb893de306fbab01082888356a30d9ea69e (patch)
treecf6acf6ddced2777417dfbb57f4603d73ec69d80 /doc/muwiki.txt
parent040459a2f8c9c963e23c4f8cc863a1ac3e38c862 (diff)
chore: update readme/docs
Diffstat (limited to 'doc/muwiki.txt')
-rw-r--r--doc/muwiki.txt21
1 files changed, 14 insertions, 7 deletions
diff --git a/doc/muwiki.txt b/doc/muwiki.txt
index 054f421..428e6b9 100644
--- a/doc/muwiki.txt
+++ b/doc/muwiki.txt
@@ -25,6 +25,7 @@ It provides:
- Standard markdown links `[text](url)`
- Multiple wiki directories
- Link navigation and xdg-open for web/file links
+- Hierarchical checkbox toggling for TODO list
- Extensible via autocmds (mkdir, templates, custom handlers)
==============================================================================
@@ -39,8 +40,8 @@ It provides:
Using vim.pack (Neovim 0.12+)~
>
vim.pack.add({
- { src = "https://git.3kgcat.fi/muwiki.nvim", name = "muwiki" }
- { src = "https://github.com/nvim-treesitter/nvim-treesitter", name = "treesitter" }
+ { src = "https://git.3kgcat.fi/muwiki.nvim", name = "muwiki" },
+ { src = "https://github.com/nvim-treesitter/nvim-treesitter" },
})
<
@@ -116,11 +117,17 @@ Keymaps should be configured by the user. Here are recommended keymaps:
callback = function(args)
if not muwiki.wiki_root(args.buf) then return end
- local opts = { buffer = args.buf, silent = true }
- vim.keymap.set('n', '<CR>', muwiki.open_link, opts)
- vim.keymap.set('n', '<Tab>', muwiki.next_link, opts)
- vim.keymap.set('n', '<S-Tab>', muwiki.prev_link, opts)
- vim.keymap.set('v', '<CR>', muwiki.create_link, opts)
+ local keymap_opts = { buffer = args.buf, silent = true }
+ keymap_opts.desc = "Open link"
+ vim.keymap.set('n', '<CR>', muwiki.open_link, keymap_opts)
+ keymap_opts.desc = "Next link"
+ vim.keymap.set('n', '<Tab>', muwiki.next_link, keymap_opts)
+ keymap_opts.desc = "Previous link"
+ vim.keymap.set('n', '<S-Tab>', muwiki.prev_link, keymap_opts)
+ keymap_opts.desc = "Create link"
+ vim.keymap.set('v', '<CR>', muwiki.create_link, keymap_opts)
+ keymap_opts.desc = "Toggle checkbox"
+ vim.keymap.set('n', '<S-t>', muwiki.toggle_checkbox, keymap_opts)
end,
})
<