mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Merge branch 'renerocksai:main' into windows_file_path_clean
This commit is contained in:
11
README.md
11
README.md
@@ -227,12 +227,13 @@ require('telekasten').setup({
|
||||
-- and thus the telekasten syntax will not be loaded either
|
||||
auto_set_filetype = true,
|
||||
|
||||
-- dir names for special notes (absolute path or subdir name)
|
||||
dailies = home .. '/' .. 'daily',
|
||||
weeklies = home .. '/' .. 'weekly',
|
||||
templates = home .. '/' .. 'templates',
|
||||
|
||||
-- image subdir for pasting
|
||||
-- subdir name
|
||||
-- image (sub)dir for pasting
|
||||
-- dir name (absolute path or subdir name)
|
||||
-- or nil if pasted images shouldn't go into a special subdir
|
||||
image_subdir = "img",
|
||||
|
||||
@@ -321,6 +322,8 @@ require('telekasten').setup({
|
||||
-- except for notes/with/subdirs/in/title.
|
||||
new_note_location = "smart",
|
||||
|
||||
-- should all links be updated when a file is renamed
|
||||
rename_update_links = true,
|
||||
})
|
||||
END
|
||||
```
|
||||
@@ -361,6 +364,7 @@ END
|
||||
| | - `#tag` (default) | |
|
||||
| | - `:tag:` | |
|
||||
| | - `yaml-bare` | |
|
||||
| `rename_update_links` | update links when a file is renamed | true |
|
||||
| | see [2.1 Tag notation](#24-tag-notation)| |
|
||||
| `command_palette_theme` | theme (layout) of the command palette| ivy |
|
||||
| | - `ivy` (default): bottom panel overlay | |
|
||||
@@ -486,6 +490,7 @@ the list for a more detailed description:
|
||||
- `insert_img_link` : Browse images / media files and insert a link to the selected one
|
||||
- `preview_img` : preview image under the cursor
|
||||
- `browse_media` : Browse images / media files
|
||||
- `rename_note` : Rename current note and update the links pointing to it
|
||||
|
||||
The Telekasten command supports sub-command completion, in my case by pressing <kbd>TAB</kbd>.
|
||||
|
||||
@@ -581,6 +586,7 @@ The plugin defines the following functions:
|
||||
- `setup(opts)`: used for configuring paths, file extension, etc.
|
||||
- `panel()` : brings up the command palette
|
||||
- `show_tags()` : brings up the tag list. From there you can select a tag to search for tagged notes - or yank or insert the tag
|
||||
- `rename_note()` : rename the current note and update the links pointing to it
|
||||
|
||||
To use one of the functions above, just run them with the `:lua ...` command.
|
||||
|
||||
@@ -832,6 +838,7 @@ nnoremap <leader>zp :lua require('telekasten').preview_img()<CR>
|
||||
nnoremap <leader>zm :lua require('telekasten').browse_media()<CR>
|
||||
nnoremap <leader>za :lua require('telekasten').show_tags()<CR>
|
||||
nnoremap <leader># :lua require('telekasten').show_tags()<CR>
|
||||
nnoremap <leader>zr :lua require('telekasten').rename_note()<CR>
|
||||
|
||||
" on hesitation, bring up the panel
|
||||
nnoremap <leader>z :lua require('telekasten').panel()<CR>
|
||||
|
||||
Reference in New Issue
Block a user