Skip to content

Releases: RhetTbull/macnotesapp

Edit/delete/folder operations

29 Jan 14:07

Choose a tag to compare

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 ID
  • noteMove(noteID, folderName, accountName) - Move note to folder
  • folderCreate(accountName, folderName) - Create new folder
  • folderDelete(accountName, folderName) - Delete folder

Python API (notesapp.py):

  • Note.delete() - Delete this note
  • Note.move(folder_name) - Move note to folder
  • Account.make_folder(folder_name) - Create folder, returns Folder object
  • Account.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" --yes

Thanks to @andrewfurman for contributing these changes.

Fixes for Tahoe

28 Jan 12:24

Choose a tag to compare

v0.8.1

Switched to uv

Support for Python 3.13

22 Dec 13:30

Choose a tag to compare

v0.8.0

Updated docs dependencies

Install with HomeBrew

15 Sep 12:42

Choose a tag to compare

v0.7.0

Release 0.7.0

Bug fix for python 3.12

17 Apr 04:06

Choose a tag to compare

v0.6.1

version bump

Dependency update

13 Apr 21:30

Choose a tag to compare

Updated dependencies for brew install

Bug fix for Ventura

22 Aug 14:36
7631e86

Choose a tag to compare

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

09 Jun 12:46
7b81bb6

Choose a tag to compare

Merge pull request #27 from RhetTbull/bug_ventura_account_26

Bug ventura account 26

Happy New Year release, now faster!

02 Jan 18:00

Choose a tag to compare

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

05 Dec 01:33

Choose a tag to compare

  • Added support for python 3.11
  • Tested on macOS Ventura (13.0.1)wqA