0.2.2 • Published 10 years ago
notepad-replacer v0.2.2
notepad-replacer (Windows-Only)
Replaces calls to notepad.exe with calls to your favorite editor.
CLI
Install
npm install --global notepad-replacerUsage
Note: The replacement operation requires admin rights.
If you want to replace notepad.exe with, for example, Sublime:
notepad-replacer --install "C:\YOUR\PATH\TO\Sublime\sublime_text.exe"Afterwards you should be able to call:
notepad.exe foo.txtAnd Sublime should open with a (new) file foo.txt.
If you'd like to have context menu entries (files and directories):
notepad-replacer --install "C:\YOUR\PATH\TO\Sublime\sublime_text.exe" --contextmenu "Open with Sublime"If you change your mind later:
notepad-replacer --uninstallAdditional help:
notepad-replacer --helpWhat was done to make this work?
This tool is using the registry to set the Image File Execution Options for notepad.exe.
This is normally used to attach debuggers to EXEs automatically, but instead we use it to call a proxy which invokes the editor of your choice. All parameters are forwarded as well.
License
MIT © Oliver Lohmann