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,
Martin

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:

https://www.oxygenxml.com/InstData/Edit ... omponent--

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

ro.sync.exml.workspace.api.Workspace.open(URL)

which should open the image in the Preview view.

Regards,
Radu

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

Posted: Tue Feb 18, 2020 4:24 pm
by sorin_carbunaru
Hello Martin,

Just wanted to let you know that the improvement you asked for on this thread has been implemented in the recently released oXygen 22.

Best wishes,
Sorin Carbunaru
oXygen XML