Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Open in Text Editor" button #60

Open
RevoSucks opened this issue Jul 16, 2018 · 4 comments
Open

"Open in Text Editor" button #60

RevoSucks opened this issue Jul 16, 2018 · 4 comments

Comments

@RevoSucks
Copy link

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.

@aaaaaa123456789
Copy link

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

@RevoSucks
Copy link
Author

relevent relevent relevent relevent relevent relevent relevent

@SBird1337
Copy link

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].

@aaaaaa123456789
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants