Add option to copy names of all marked images #706
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.
At present time, one can copy the name of the currently selected image using
:copy-name
. This PR adds a way to also copy the names of all marked images.Changes
--mark
was added to the command:copy-name
which makes the command copy all marked images instead of the currently selected one.ymA
,ymY
,yma
, andymy
were added as correspondent to the default copy bindings, but acting on the marked images.Questions
I did not add this flag to
:copy-image
. Technically it should be possible, but it is a bit more involved; The only way how multiple files can be added to the clipboard is by constructing aQMimeData
using the.setUrls
setter. This however requires local paths and not aQPixmap
directly. This is an issue if we would like to scale the marked images first, as we would have to store them in temporary files.I can certainly add that if requested (i.g for consistency-reasons), but personally I have never missed that functionality.
Requires #705