Default to 'Run as System'
-
I have my default text editor set to NotePad++.
Love it!
Now, can I get NotePad++ to open all clicked files in their native program (AKA: Run as System).
I see a file in a tree, I double click on it, and BANG the file opens.
I often have to ‘scape’ my PDF’s for text (FM will not print to a text file); so both types are in my work folders.
Any ideas? -
The Run > Run… menu entry will allow you to run the active filename (or anything else you type there) with an external tool.
Run > Run… >
cmd /c "$(FULL_CURRENT_PATH)"
, Save… =RunMyself
will save that in the Macros menu so you can easily do that at any time: this will tell cmd.exe to run the current file, and cmd.exe will ask Windows OS what the default verb is, and run the file with that verb.That said, Notepad++ is not very good at being a binary file editor. You can try to scrape your PDF for plain text, but not every bit of stuff that looks like plain text in the binary PDF will be plain text really, and not every piece of plain text in the PDF is necessarily stored as plain text in the binary file. See FAQ entry
–
PS: the User Defined Commands section of the usermanual gives the list of extra “variables” (
$(...)
) that Notepad++ makes available to the **Run>Run… ** action. That’s where I got the$(FULL_CURRENT_PATH)
variable. -
Thanks for idea. I checked it out but unfortunately it misses the mark. The FULL_CURRENT_PATH is only the top Open file; not the one selected in the Folder As Workspace. So, I’d have to open the file first (a .jpg in the text editor, Ugh!, and then run the command by keystroke). Easier to right mouse-click and hit “Run By System”. I was just hoping to double click and get “Run By System” as the default.
Thanks for taking a swing at it.
More ideas welcomed!!