Re: IDM_OPENSELECTED

"'Neil Hodgson' via scite-interest" <[email protected]>
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
chris.d:

> I would like to open pictures (jpg, png, ..)  with the system editor if I use command IDM_OPENSELECTED. For an URL this works, but not for pictures. 

   That code is looking for a ’scheme’ at the start like ‘https:’ to run a command. Otherwise it wants to open as a file and that opens into SciTE as text.

> Is this possible, or are there other options?

   Define a tool command that runs the command line you want (depends on OS) over $(CurrentSelection) or $(CurrentWord). This works on macOS:

command.2.*=open $(CurrentWord)
command.name.2.*=Open File

   Neil

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/00E10EA2-069F-44BB-AF29-FCAC65D5C1FB%40me.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.