Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Overwrite file with clipboard #13

Closed
tfiers opened this issue Nov 15, 2022 · 3 comments
Closed

Feature: Overwrite file with clipboard #13

tfiers opened this issue Nov 15, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@tfiers
Copy link

tfiers commented Nov 15, 2022

Proposal:
A new context menu item when right-clicking on a file1, named something like "Overwrite with clipboard".
Clicking this, PasteIntoFile will look at the extension and name of the original file; delete that file; and write a new file based on your clipboard, with the old name and format.

My use case:
I make diagrams in powerpoint2, and extract them by pasting as an image. (They are then included in a latex document).
Often, I want to tweak a diagram afterwards. Currently, I have to paste the new image with a temporary filename (namely the default datetime); copy the filename of the previous version; delete that version; and rename the new image with the copied filename.
With an "overwrite file with clipboard" option in the context menu of the existing file, this would be reduced to one action.


Related:

Footnotes

  1. currently, that context menu already contains "Copy file content" by PasteIntoImage

  2. yes, a dedicated vector editing program like Inkscape, with built-in export, would be more proper. But using PPT for editing the diagrams is easier atm.

@tfiers tfiers added the enhancement New feature or request label Nov 15, 2022
@eltos
Copy link
Owner

eltos commented Nov 15, 2022

Excellent proposal, in this case the dialog should probably never be shown (independent of the autosave setting), and the file be directly overwritten without the usual confirmation? Maybe it would be good to move the file to the recycle bin before overwriting, to prevent accidental data loss.

@eltos
Copy link
Owner

eltos commented Nov 16, 2022

Please have a look at the latest debug build
https://github.com/eltos/PasteIntoFile/suites/9345758906/artifacts/439611436

@tfiers
Copy link
Author

tfiers commented Nov 17, 2022

Tested it, works beautifully.

@eltos eltos closed this as completed in e4910d8 Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants