diff options
| author | workhorse <gravel.justness270@slmail.me> | 2024-06-03 14:01:37 -0400 |
|---|---|---|
| committer | workhorse <gravel.justness270@slmail.me> | 2024-06-03 14:01:37 -0400 |
| commit | 6fe1f8d638bc3bfa52ff6433735f95a7eacbcba8 (patch) | |
| tree | afc9a04bb0817d7db37252ef66d4b719188d1498 /README.md | |
| parent | 6b127f3dd3c1437ab1919a8a34cad7ff3abd93e3 (diff) | |
| download | simple-denote.nvim-6fe1f8d638bc3bfa52ff6433735f95a7eacbcba8.tar.gz | |
Minor changes
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 61 |
1 files changed, 18 insertions, 43 deletions
@@ -1,4 +1,4 @@ -# `denote.nvim` +# `simple-denote.nvim` This is a fork of HumanEntity's `denote.nvim`, modified to suit my personal preferences and be more accurate to the original emacs `denote` filename format. @@ -17,58 +17,33 @@ Example config via [lazy.nvim](https://github.com/folke/lazy.nvim) { "DefaultGen/denote.nvim", opts = { - ext = "md", - dir = "~/notes/", - new_heading_on_retitle = true, + ext = "md", -- Note file extension + dir = "~/notes/", -- Directory where notes are created + new_heading_on_retitle = true, -- Determines whether to replace the first + -- line with a new heading upon retitling }, } ``` -`ext` is the file extension for your notes (e.g. md, org, norg) +`new_heading_on_retitle` supports Markdown (#) and Org/Norg (*) headings. -`dir` is your notes directory. Make sure you create it beforehand. +# `Denote` Command -`new_heading_on_retitle` determines whether `denote.nvim` will replace the first line with a new heading when you retitle a note. It will only do this if the first line is a heading to begin with. - - -# Usage - -## `Denote` command - -### Creating notes - -To create use `:Denote note` command. It will will prompt for note name and tags. Tags are space separated. - -### Change note title - -To change the title, use the `:Denote retitle` command. It will prompt you for a new title, then update both the filename and first line (if configured). - -### Change note tags - -To change the tags, use the `:Denote retag` command. This will replace your tags with the new tags. All this does is change the filename. - -## `api` way - -To use `denote` api either require it using - -```lua -local api = require("denote.api") +```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 ``` -or use `denote.api` - -```lua -local api = require("denote").api +```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 ``` -One thing to note is that you can use the api just like the command just don't pass any argument to function. - -### Creating notes - -To create the note use `note` function. - -```lua -api.note(options, name, tags) +```vim +" Renames the current note with the new list of tags (space delimited) +:Denote retag ``` # License |
