codesnap.nvim icon indicating copy to clipboard operation
codesnap.nvim copied to clipboard

[Feature request]: Add command to simultaneously copy to clipboard and save to disk

Open KennethHoff opened this issue 1 year ago • 1 comments

When using screenshotting utilities, I always like to store all screenshots I make to make sure I don't lose it, and to have something to look back on, so naturally the first thing I did after installing CodeSnap.nvim was to look for such a command, but that seemingly didn't exist. After realizing this, I figured setting the save_path option would help, but that only set the output for the :CodeSnapSave command. Fair enough I thought; I can just call :CodeSnap followed by :CodeSnapSave.. "No code is selected" - Apparently you deselect the code as well. Fair enough again; I can just use gv to re-select the last region, but that didn't work either, so here I am, asking for a feature:

Please add a way to always save the images to disk or a command that does both copy-to-clipboard and save-to-disk (The latter is probably better).

KennethHoff avatar Dec 18 '24 21:12 KennethHoff

@KennethHoff thx for raising the feature request, I agree it's a great idea! I'll plan this feature in future version

mistricky avatar Nov 20 '25 07:11 mistricky