Page 1 of 1

Open file at cursor: image in Oxygen Image Preview

Posted: Wed Mar 13, 2019 11:15 pm
by martindholmes
Hi there,

When I right-click (in Editor mode) on the path to an image, I have the option to Open File at Cursor, and Open File at Cursor in System Application. In both cases, an image (JPG) is opened in the system application. Is it possible to configure Oxygen so that the first of these would open the file in the Image Preview window inside Oxygen? That doesn't seem to be an option when configuring file types in the Preferences.

All help appreciated,

Re: Open file at cursor: image in Oxygen Image Preview

Posted: Thu Mar 14, 2019 9:16 am
by Radu
Hi Martin,

I would agree that "Open File at Cursor" should prefer Oxygen's Image Preview for images, I will add an internal issue for it.
Of course another approach could be to add some framework specific API and when the cursor is moved inside the image element the Image Preview could automatically show the image reference if the view is visible.
Or what a plugin could do, if it adds a cursor move listener to the text editing page's JTextArea: ... omponent--

would be do detect when the cursor is inside the image reference, compute the URL to the target image and use this API:

which should open the image in the Preview view.