Skip to content

Conversation

@signalnine
Copy link

Summary

  • Adds --folder / -f flag to the push command
  • When creating a new note, allows specifying which Apple Notes folder to place it in
  • If the folder doesn't exist, it's automatically created
  • Existing note updates are unaffected (folder only applies to new note creation)

Usage

# Create note in specific folder
stash push myfile.md --folder "Work Notes"

# Short form
stash push myfile.md -f "Personal"

Changes

  • src/bashly.yml: Added --folder flag definition
  • src/push_command.sh: Pass folder name to create_note function
  • src/lib/create_note.sh: AppleScript to find-or-create folder and place note in it

Use Case

I'm using stash in a git post-commit hook to sync markdown files to Apple Notes, organized by directory structure (e.g., data/journal/*.md → "PIM - Journal" folder). This flag enables that workflow.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant