cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists 馃崈
charm leaflet readability golang
at main 73 lines 1.5 kB view raw view rendered
1--- 2title: Note Operations 3sidebar_label: Operations 4description: List, read, edit, and delete notes from the CLI. 5sidebar_position: 3 6--- 7 8# Note Operations 9 10### Listing Notes 11 12**Interactive TUI** (default): 13```sh 14noteleaf note list 15``` 16 17Navigate with arrow keys, press Enter to read, `e` to edit, `q` to quit. 18 19**Static list**: 20```sh 21noteleaf note list --static 22``` 23 24**Filter by tags**: 25```sh 26noteleaf note list --tags research,technical 27``` 28 29**Show archived notes**: 30```sh 31noteleaf note list --archived 32``` 33 34### Reading Notes 35 36View note content with formatted rendering: 37 38```sh 39noteleaf note read 1 40``` 41 42Aliases: `noteleaf note view 1` 43 44The viewer renders markdown with syntax highlighting for code blocks, proper formatting for headers and lists, and displays metadata (title, tags, dates). 45 46### Editing Notes 47 48Open note in your configured editor: 49 50```sh 51noteleaf note edit 1 52``` 53 54Noteleaf uses the editor specified in your configuration or the `$EDITOR` environment variable. Common choices: `vim`, `nvim`, `nano`, `code`, `emacs`. 55 56**Configure editor**: 57```sh 58noteleaf config set editor nvim 59``` 60 61Changes are saved automatically when you close the editor. The modification timestamp updates to track when notes were last changed. 62 63### Deleting Notes 64 65Remove a note permanently: 66 67```sh 68noteleaf note remove 1 69``` 70 71Aliases: `rm`, `delete`, `del` 72 73This deletes both the markdown file and database metadata. You'll be prompted for confirmation. This operation cannot be undone, so consider archiving instead if you might need the note later.