pretmap icon indicating copy to clipboard operation
pretmap copied to clipboard

"Open in Text Editor" button

Open RevoSucks opened this issue 6 years ago • 4 comments

AMap does this with XSE. Need to be able to open up a relevent script file with text editor with just a single click. Let the OS handle opening it up.

RevoSucks avatar Jul 16 '18 04:07 RevoSucks

Relevant, Revo. With an A. When will you get it right? :P

aaaaaa123456789 avatar Jul 16 '18 05:07 aaaaaa123456789

relevent relevent relevent relevent relevent relevent relevent

RevoSucks avatar Jul 16 '18 15:07 RevoSucks

depending on the text editor you want to use you'll need to give it specific command line arguments I guess, though most editors should work if you just pass the filename as argv[1].

SBird1337 avatar Jul 16 '18 15:07 SBird1337

A typical strategy is to just use a substitution character for the filename in the command line — so you can configure it to something like sillyeditor --file $ --some-other-option 1 and the program will know to replace the $ with the quoted filename.

aaaaaa123456789 avatar Jul 16 '18 18:07 aaaaaa123456789