diff options
| author | moxie <moxie@3kgcat.fi> | 2026-03-14 04:28:05 +0200 |
|---|---|---|
| committer | moxie <moxie@3kgcat.fi> | 2026-03-14 04:28:05 +0200 |
| commit | 3461be4d2d880293c92bc7b4119ba53289ef03cc (patch) | |
| tree | 8f642fbf468779dfce16b6339d6d86acc8b8f6f5 /doc | |
| parent | d4e100dd5f84d77b3dd16af2d7f2590a8b2bd030 (diff) | |
refactor: simplify wiki discovery functions
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/muwiki.txt | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/doc/muwiki.txt b/doc/muwiki.txt index 4344a1e..562ff5c 100644 --- a/doc/muwiki.txt +++ b/doc/muwiki.txt @@ -196,9 +196,6 @@ Configure keymaps in the `keys` table: > ft = 'markdown', desc = 'Open link menu to choose external handler' }, }, } -<The `ft = 'markdown'` condition ensures keymaps are only active in markdown -files. Actions automatically check if the buffer is within a configured wiki -directory and do nothing if not. Manual setup:~ For other plugin managers, set up your own autocmds: > @@ -214,7 +211,7 @@ For other plugin managers, set up your own autocmds: > end, }) < -Note: Actions automatically check if the buffer is a wiki buffer. +Note: Actions check if the buffer is within a configured wiki directory and do nothing if not. *muwiki* Actions:~ @@ -328,7 +325,6 @@ Example: Open PNG files in Neovim (as text/hex) instead of external viewer:~ >lua text_extensions = { 'md', 'txt', 'png' } < - ============================================================================== 8. TEMPLATES *muwiki-templates* @@ -354,20 +350,6 @@ date: ${date} --- ]] < -Custom Template Example:~ ->lua - require("muwiki").setup({ - template = [[ ---- -title: ${title} -date: ${date} ---- - -# ${title} - -]], - }) -< ============================================================================== HEALTH CHECKING *muwiki-health* |
