#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 Changed 16 months ago by PulkoMandy

Ithink you can just drag and drop files on grafx2 to load them, sounds much simpler

comment:2 Changed 16 months ago by D Gowers

.. 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.

Last edited 16 months ago by D Gowers (previous) (diff)

comment:3 Changed 16 months ago by Thomas Bernard

Milestone: 2.7
Owner: changed from pulkomandy to Thomas Bernard
Status: newassigned

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 Changed 14 months ago by Thomas Bernard

Resolution: fixed
Status: assignedclosed

fixed for both X11 and Win32 :)

Note: See TracTickets for help on using tickets.