Skip to content

Add --auto-copy flag for live clipboard updates on annotation#416

Merged
RobertMueller2 merged 2 commits intoSatty-org:mainfrom
ZmoleCristian:feat/auto-copy
Mar 9, 2026
Merged

Add --auto-copy flag for live clipboard updates on annotation#416
RobertMueller2 merged 2 commits intoSatty-org:mainfrom
ZmoleCristian:feat/auto-copy

Conversation

@ZmoleCristian
Copy link
Copy Markdown
Contributor

Summary

  • Adds --auto-copy CLI flag and auto_copy config option
  • Triggers SaveToClipboard after every ToolUpdateResult::Commit
  • Suppresses early_exit on auto-triggered copies to prevent unintended quit

Closes #415

Test plan

  • satty --filename image.png --auto-copy --copy-command "xclip -sel clip -t image/png" — clipboard updates after each annotation
  • --auto-copy with --early-exit — app stays open after auto-copy, exits on explicit Enter
  • Without --auto-copy — no behavior change

Adds --auto-copy CLI flag and auto_copy config option that triggers
SaveToClipboard after every ToolUpdateResult::Commit.

Suppresses early_exit on auto-triggered copies to prevent unintended quit.
@RobertMueller2
Copy link
Copy Markdown
Member

I'll be honest, I'm slightly torn between "this is a cool idea" and "why?". 😄 I'd like to get some additional input from @gabm if/when he gets a chance.

One thought I had, why not make it actions-on-commit, but

  • that may be OTT
  • the amount of actions that make sense after commit are certainly limited, and at this point actions don't carry anything that says in which places they are useful

@RobertMueller2
Copy link
Copy Markdown
Member

Either way, thanks for the PR.

@RobertMueller2
Copy link
Copy Markdown
Member

I made up my mind. Looks good to me.

@RobertMueller2 RobertMueller2 merged commit be6e7d7 into Satty-org:main Mar 9, 2026
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.

Feature request: --auto-copy — clipboard updates live while annotating

2 participants