blob: e59d84e9e4c208ea679c4ca550f6a9f435c95c70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# simple-denote.nvim
This is a fork of [HumanEntity's denote.nvim](https://github.com/HumanEntity/denote.nvim), modified to suit my personal preferences and be more accurate to the original emacs `denote` filename format.
The plugin just provides a command `:Denote note` that creates a new note with a `denote` style filename. For example: `20240601T174946--how-to-tie-a-tie__lifeskills_clothes.md`
There is no support for frontmatter, signatures, or any other denote features because I don't use them. I just like the file-naming scheme.
You can read more about the denote file-naming scheme here:
https://protesilaos.com/emacs/denote#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d
# Installation / Config
Example config via [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
"DefaultGen/simple-denote.nvim",
opts = {
ext = "md", -- Note file extension
dir = "~/notes", -- Notes directory (should already exist)
add_heading = true, -- Add a md/org heading to new notes
retitle_heading = true, -- Replace the first line with a new heading when retitling
},
},
```
The heading options automatically support Markdown (#) and Org/Norg (*) headings.
# `Denote` Command
```vim
" Creates a new note in the `dir` directory with `ext` extension
" Tags are space delimited. The title or tags can be blank.
:Denote note
```
```vim
" Renames the current note with the new title
" If `new_heading_on_retitle` is true, overwrites the first line heading as well
:Denote retitle
```
```vim
" Renames the current note with the new list of tags (space delimited)
:Denote retag
```
# License
MIT
|