Opened 5 years ago
Closed 4 years ago
#107 closed enhancement (fixed)
"From clipboard" button: fall back to interpreting clipboard data as path to image
Reported by: | D Gowers | Owned by: | Thomas Bernard |
---|---|---|---|
Priority: | major | Milestone: | 2.7 |
Component: | GrafX2 | Version: | 2.7 |
Keywords: | Cc: |
Description
Though we can currently paste into the Filename field, this is not useful for pasting a path, as it strips all '/'.
Some way to load directly from a path would be helpful. The "From Clipboard" button seems like the logical place to put it, as pressing this button with a path on the clipboard currently just produces an error flash.
This would enable browsing through project files in a real image viewer (eg. sxiv) and easily loading them in grafx2.
Ideally, the case of 'exactly 2 paths on the clipboard' could also be handled (replacing both the current page and the spare page)
Change History (5)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
.. the image viewer I'm using (sxiv) doesn't support DnD, so any DnD would introduce an additional step of programmatic interaction with a file-manager (eg. SpaceFM) or other thing-that-can-generate-a-drag-event (eg. clipboard manager; although for example when I drag a path from CopyQ, grafx2 just says Unhandled SelectNotify selection=XdndSelection
).
I've explored other image viewers extensively. Some of them (eg. eog, gthumb) do support DnD, but lack other important features (eg. a thumbnail view; Upscaling of particularly small thumbnails; Customizable actions; Strong animation support). I'd guess that about 70% of viewers support DnD.
comment:3 by , 5 years ago
Milestone: | → 2.7 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
OK so we could modify "Paste" so when the "clipboard" does not contain an image but only text, it tries to interpret it as a path to image and open the image (or just the directory)
comment:5 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
fixed for both X11 and Win32 :)
Ithink you can just drag and drop files on grafx2 to load them, sounds much simpler