doc: fix small errors (closes #273)

This commit is contained in:
Thomas Lambert
2023-07-25 11:27:10 +02:00
parent cd6e2af227
commit 70a01f8d80
2 changed files with 20 additions and 17 deletions

View File

@@ -52,7 +52,6 @@ also just insert a link to the note or yank a link instead of opening the note.
![](img/tags-linkcounts.png) ![](img/tags-linkcounts.png)
## Contents ## Contents
<!-- FIXME --> <!-- FIXME -->
@@ -76,6 +75,7 @@ also just insert a link to the note or yank a link instead of opening the note.
- [Hard-coded stuff](#hard-coded-stuff) - [Hard-coded stuff](#hard-coded-stuff)
## Requirements ## Requirements
Telekasten requires Neovim v0.6.0 or higher. Besides that, its only mandatory Telekasten requires Neovim v0.6.0 or higher. Besides that, its only mandatory
dependency of is dependency of is
[telescope.nvim](https://github.com/nvim-telescope/telescope.nvim), which acts [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim), which acts
@@ -115,7 +115,6 @@ telekasten.requirements`).
</details> </details>
<details> <details>
<summary>Vim-plug</summary> <summary>Vim-plug</summary>
@@ -136,8 +135,8 @@ telekasten.requirements`).
</details> </details>
### Base setup ### Base setup
In order to use Telekasten, you need to first require its setup function In order to use Telekasten, you need to first require its setup function
somewhere in your `init.lua`. Take this opportunity to indicate the path for somewhere in your `init.lua`. Take this opportunity to indicate the path for
your notes directory. If you do not specify anything, the plugin will ask you to your notes directory. If you do not specify anything, the plugin will ask you to
@@ -148,6 +147,7 @@ require('telekasten').setup({
home = vim.fn.expand("~/zettelkasten"), -- Put the name of your notes directory here home = vim.fn.expand("~/zettelkasten"), -- Put the name of your notes directory here
}) })
``` ```
**NOTE:** For Windows users, please indicate the path as **NOTE:** For Windows users, please indicate the path as
`C:/Users/username/zettelkasten/`. See `:h telekasten.windows` for more details `C:/Users/username/zettelkasten/`. See `:h telekasten.windows` for more details
about the specificities for Windows. about the specificities for Windows.
@@ -155,26 +155,29 @@ about the specificities for Windows.
### Suggested dependencies ### Suggested dependencies
#### Calendar #### Calendar
Telekasten interacts very nicely with Telekasten interacts very nicely with
[calendar-vim](https://github.com/renerocksai/calendar-vim). Installing this [calendar-vim](https://github.com/renerocksai/calendar-vim). Installing this
plugin will allow you to create journal entries for the selected dates and plugin will allow you to create journal entries for the selected dates and
highlight dates with attached entries. highlight dates with attached entries.
#### Image preview #### Image preview
Various plugins or external tools can be used as image previewers to help you Various plugins or external tools can be used as image previewers to help you
pick the correct illustrations for your note. pick the correct illustrations for your note.
- [telescope-media-files.nvim](https://github.com/nvim-telescope/telescope-media-files.nvim) - [telescope-media-files.nvim](https://github.com/nvim-telescope/telescope-media-files.nvim)
- [catimg](https://github.com/posva/catimg) - [catimg](https://github.com/posva/catimg)
- [viu](https://github.com/atanunq/viu) - [viu](https://github.com/atanunq/viu)
#### Image pasting #### Image pasting
- [xclip](https://github.com/astrand/xclip) - [xclip](https://github.com/astrand/xclip)
- [wl-clipboard](https://github.com/bugaevc/wl-clipboard) - [wl-clipboard](https://github.com/bugaevc/wl-clipboard)
_Image pasting is supported by default on MacOS, it is not necessary to install _Image pasting is supported by default on MacOS, it is not necessary to install
any other tool._ any other tool._
#### Other useful resources/plugins #### Other useful resources/plugins
While they do not interact directly with Telekasten, the following plugins While they do not interact directly with Telekasten, the following plugins
@@ -194,14 +197,15 @@ greatly improve the note-taking experience.
- [telescope-all-recent](https://github.com/prochri/telescope-all-recent.nvim): - [telescope-all-recent](https://github.com/prochri/telescope-all-recent.nvim):
shows files you have recently opened. shows files you have recently opened.
## Usage ## Usage
The simplest way to use the plugin is to call directly the related Telekasten The simplest way to use the plugin is to call directly the related Telekasten
command: command:
```vim ```vim
:Telekasten <sub-command> :Telekasten <sub-command>
``` ```
<details> <details>
<summary>Advanced use</summary> <summary>Advanced use</summary>
Each sub-command is implemented by a specific lua function. While high-level Each sub-command is implemented by a specific lua function. While high-level
@@ -220,7 +224,7 @@ See the [wiki](https://github.com/renerocksai/telekasten.nvim/wiki/Mappings#adva
The following sub-commands are defined: The following sub-commands are defined:
- `panel` : brings up the [command palette](command-palette) - `panel` : brings up the [command palette](#command-palette)
- `find_notes` : Find notes by title (filename) - `find_notes` : Find notes by title (filename)
- `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 - `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
- `find_daily_notes` : Find daily notes by title (date) - `find_daily_notes` : Find daily notes by title (date)
@@ -245,8 +249,7 @@ The following sub-commands are defined:
- `switch_vault` : switch the vault. Brings up a picker. See the `vaults` config - `switch_vault` : switch the vault. Brings up a picker. See the `vaults` config
option for more. option for more.
### Command palette
### Command palette
Telekasten comes with a small helper command palette that let the user browse Telekasten comes with a small helper command palette that let the user browse
the different commands available. This feature is quite similar to the excellent the different commands available. This feature is quite similar to the excellent
@@ -254,14 +257,15 @@ the different commands available. This feature is quite similar to the excellent
limited to Telekasten. limited to Telekasten.
You can call this panel using You can call this panel using
```vim ```vim
:Telekasten panel :Telekasten panel
``` ```
This can be especially useful if all your Telekasten mappings start with the This can be especially useful if all your Telekasten mappings start with the
same prefix. In that case, bind the command panel to the prefix only and it will same prefix. In that case, bind the command panel to the prefix only and it will
pop-up when you hesitate to complete the mapping. pop-up when you hesitate to complete the mapping.
## Customization ## Customization
### Highlights ### Highlights
@@ -277,7 +281,6 @@ the following syntax groups:
An additional `CalNavi` group is defined to tweak the appearance of the calendar An additional `CalNavi` group is defined to tweak the appearance of the calendar
navigation button. navigation button.
```vim ```vim
" Example " Example
hi tkLink ctermfg=Blue cterm=bold,underline guifg=blue gui=bold,underline hi tkLink ctermfg=Blue cterm=bold,underline guifg=blue gui=bold,underline
@@ -291,7 +294,6 @@ workflow even smoother. A good idea is to take advantage of the [command
palette][#command-palette] and start all your mappings with the same prefix palette][#command-palette] and start all your mappings with the same prefix
(`<leader>z`, for `Z`ettelkasten for instance). (`<leader>z`, for `Z`ettelkasten for instance).
```lua ```lua
-- Launch panel if nothing is typed after <leader>z -- Launch panel if nothing is typed after <leader>z
vim.keymap.set("n", "<leader>z", "<cmd>Telekasten panel<CR>") vim.keymap.set("n", "<leader>z", "<cmd>Telekasten panel<CR>")
@@ -311,18 +313,18 @@ vim.keymap.set("i", "[[", "<cmd>Telekasten insert_link<CR>")
``` ```
#### Advanced mappings #### Advanced mappings
Each Telekasten command is bound to a specific lua function. As lua functions Each Telekasten command is bound to a specific lua function. As lua functions
can accept arguments, it is possible to craft special mappings to tailor the can accept arguments, it is possible to craft special mappings to tailor the
execution of a function to your specific need. execution of a function to your specific need.
See the [wiki](https://github.com/renerocksai/telekasten.nvim/wiki/Mappings#advanced-key-mappings) for more details regarding advanced key mappings. See the [wiki](https://github.com/renerocksai/telekasten.nvim/wiki/Mappings#advanced-key-mappings) for more details regarding advanced key mappings.
## Features ## Features
### Vaults ### Vaults
Telekasten allows the user to have completely separated note collections and Telekasten allows the user to have completely separated note collections and
switch between them easily. Simply add data to the `vaults` table in the switch between them easily. Simply add data to the `vaults` table in the
configuration and configure each vault as you wish. configuration and configure each vault as you wish.
@@ -358,7 +360,6 @@ these can be previewed.
See the documentation for more details regarding the different types of links See the documentation for more details regarding the different types of links
(`:h telekasten.link_notation`). (`:h telekasten.link_notation`).
### Tag notation ### Tag notation
Telekasten supports the following tag notations: Telekasten supports the following tag notations:
@@ -368,7 +369,6 @@ Telekasten supports the following tag notations:
3. `:tag:` 3. `:tag:`
4. `yaml-bare`: bare tags in a tag collection in the yaml metadata: 4. `yaml-bare`: bare tags in a tag collection in the yaml metadata:
See the documentation for more details regarding the tag syntax (`:h See the documentation for more details regarding the tag syntax (`:h
telekasten.tag_notation`). telekasten.tag_notation`).

View File

@@ -125,7 +125,9 @@ telekasten.setup({opts})
command_palette_theme = "ivy", command_palette_theme = "ivy",
-- Tag list theme: -- Tag list theme:
-- get_cursor: small tag list at cursor; ivy and dropdown like above -- get_cursor (small tag list at cursor)
-- dropdown (window)
-- ivy (bottom panel)
show_tags_theme = "ivy", show_tags_theme = "ivy",
-- Previewer for media files (images mostly) -- Previewer for media files (images mostly)
@@ -369,6 +371,7 @@ telekasten.setup({opts})
Valid options are: Valid options are:
- `'#tag'` - `'#tag'`
- `'@tag'`
- `':tag:'` - `':tag:'`
- `'yaml-bare'` - `'yaml-bare'`
@@ -428,7 +431,7 @@ telekasten.setup({opts})
*telekasten.settings.media_previewer* *telekasten.settings.media_previewer*
media_previewer:~ media_previewer:~
Previewer used for viewing media / image files. There are two Previewer used for viewing media / image files. There are three
options: options:
- `'telescope-media-files'` : use the telescope-media-files.nvim - `'telescope-media-files'` : use the telescope-media-files.nvim
plugin plugin