feat(editor): Save As dialog on Ctrl+Shift+S - #75
Open
sspaeti wants to merge 1 commit into
Open
Conversation
Adds a Save As action that opens a file dialog to pick a destination, writes a copy there, and keeps the editor open. The chosen folder is remembered for the next Save As. Default outputs (Enter/Ctrl+C/Ctrl+S) are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this PR: Usually, saving to the default location is enough. But I have some screenshots that I take for certain things - then it's handy to save them directly there, or replace an existing image with a new, better one.
So here's an easy
Save asoption. The harder part was working around the overlay image, so it hides Omasnap when you choose the file location and opens back up after saving, so you can close it afterward, save to the default spot, or save to the clipboard.Claude Fable Summary
Ctrl+Shift+S) in the editor: opens a file dialog to pick a destination and writes a copy there.Enter/Ctrl+C/Ctrl+Sdefault outputs are unchanged.output/save_as_dirin the config) and offered as the start directory next time.Test plan
make buildand lint pass.Ctrl+Shift+S, pick a path — file written, editor still open, next Save As starts in the same folder. Cancel path leaves editor usable.