pretmap
pretmap copied to clipboard
"Open in Text Editor" button
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.
Relevant, Revo. With an A. When will you get it right? :P
relevent relevent relevent relevent relevent relevent relevent
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]
.
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.