Releases: RhetTbull/macnotesapp
Releases · RhetTbull/macnotesapp
Edit/delete/folder operations
Summary
This PR adds six new CLI commands for modifying notes and folders, enabling full CRUD operations from the command line:
| Command | Description |
|---|---|
notes rename OLD NEW |
Rename a note |
notes edit NAME [--body TEXT] |
Edit a note's body (direct or via $EDITOR) |
notes delete NAME [--yes] |
Delete a note (with confirmation) |
notes move NAME --folder FOLDER |
Move a note to a different folder |
notes mkdir FOLDER |
Create a new folder |
notes rmdir FOLDER [--yes] |
Delete a folder (with confirmation) |
All commands support --account to specify which account to operate on.
Changes
AppleScript handlers (macnotesapp.applescript, macnotesapp_applescript.py):
noteDelete(noteID)- Delete a note by IDnoteMove(noteID, folderName, accountName)- Move note to folderfolderCreate(accountName, folderName)- Create new folderfolderDelete(accountName, folderName)- Delete folder
Python API (notesapp.py):
Note.delete()- Delete this noteNote.move(folder_name)- Move note to folderAccount.make_folder(folder_name)- Create folder, returns Folder objectAccount.delete_folder(folder_name)- Delete folder
CLI commands (cli/cli.py):
- 6 new click commands with full help text and options
Examples
# Rename a note
notes rename "Old Title" "New Title"
# Edit a note's body directly
notes edit "My Note" --body "<h1>New content</h1>" --html
# Edit a note in your default editor
notes edit "My Note"
# Delete a note (with confirmation)
notes delete "Old Note"
# Delete without confirmation
notes delete "Old Note" --yes
# Create a folder
notes mkdir "Archive"
# Move a note to a folder
notes move "My Note" --folder "Archive"
# Delete a folder
notes rmdir "Archive" --yesThanks to @andrewfurman for contributing these changes.
Fixes for Tahoe
v0.8.1 Switched to uv
Support for Python 3.13
v0.8.0 Updated docs dependencies
Install with HomeBrew
v0.7.0 Release 0.7.0
Bug fix for python 3.12
v0.6.1 version bump
Dependency update
Updated dependencies for brew install
Bug fix for Ventura
Bug Fix
Fixed bug related to string handling on Ventura
[v0.5.3] - 2023-08-22
Fixed
Bug when adding notes (#26)
Added
Removed
Changed
Contributors
Bug fix for certain account names on Ventura
Merge pull request #27 from RhetTbull/bug_ventura_account_26 Bug ventura account 26
Happy New Year release, now faster!
Version 0.5.0
Completely rewritten to be much faster in most cases. This will allow me to complete work on the interactive TUI.
Changed
- Rewrote most of macnotesapp to use batched ScriptingBridge calls instead of AppleScript. It is now much faster.
Added
- Added support for attachments (not yet in the CLI though)
- Added docs
Support for python 3.11 and macOS Ventura
- Added support for python 3.11
- Tested on macOS Ventura (13.0.1)wqA