diff options
Diffstat (limited to 'doc/muwiki.txt')
| -rw-r--r-- | doc/muwiki.txt | 21 |
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, }) < |
