mirror of
https://github.com/dnote/dnote
synced 2026-03-15 06:55:49 +01:00
* Simplify the view command * Simplify the edit command * Migrate number-only book names * Run migration * Simplify remove * Print note info when adding, editing, or removing * Disallow users from editing or removing already removed notes
1.5 KiB
1.5 KiB
Commands
dnote add
alias: a, n, new
Add a new note to a book.
# Launch a text editor to add a new note to the specified book.
dnote add linux
# Write a new note with a content to the specified book.
dnote add linux -c "find - recursively walk the directory"
dnote view
alias: v
- List books or notes.
- View a note detail.
# List all books.
dnote view
# List all notes in a book.
dnote view golang
# See details of a note
dnote view 12
dnote edit
alias: e
Edit a note.
# Launch a text editor to edit a note with the given id.
dnote edit 12
# Edit a note with the given id in the specified book with a content.
dnote edit 12 -c "New Content"
dnote remove
alias: d
Remove either a note or a book.
# Remove the note with an id in the specified book.
dnote remove 1
# Remove the book with the `book name`.
dnote remove -b JS
dnote find
alias: f
Find notes by keywords.
# find notes by a keyword
dnote find rpoplpush
# find notes by multiple keywords
dnote find "building a heap"
# find notes within a book
dnote find "merge sort" -b algorithm
dnote sync
Dnote Pro only
alias: s
Sync notes with Dnote server. All your data is encrypted before being sent to the server.
dnote login
Dnote Pro only
Start a login prompt.
dnote logout
Dnote Pro only
Log out of Dnote.