I find pNotepad a wonderful tool for programmers so I want to replace the system default Notepad with it, how? :)
How could I replace the system default Notepad with pNotepad?
(6 posts) (3 voices)-
Posted 8 months ago #
-
See here: http://untidy.net/blog/2009/11/03/replacing-notepad-with-pn-via-image-file-execution-options/
Posted 8 months ago # -
Thanks for your help! :)
Posted 7 months ago # -
I am having some trouble with this. Its working, some. I am running 64bit, Windows Server 2008 R2. This is the registry settings, as exported by regedit:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"Debugger"="C:\\Program Files (x86)\\Programmer's Notepad\\pn.exe --allowmulti -z"This fine if say I open a text file that has no spaces in the names. There are two cases where it doesn't work well.
1) Double-clicking a text file in explorer like "some text.txt" will cause Programmer's Notepad to try to open two separate files, "some" and "text.txt".
2) Using "notepad some.txt" in the command console causes Programmers Notepad to want to open "notepad" as well as "some.txt".
Workable so I'm still using it.
Posted 7 months ago # -
This will be fixed with the next testing release. I hadn't thought about the fact that notepad can only edit a single file and so assumes that everything on the command line is a single filename. As of the next release -z means skip the next parameter, and assume that everything after that is a single file which makes this work.
Posted 7 months ago # -
Thanks Simon. Its a reasonable bug and when I saw behavior I knew it was something you'd be able to fix. I thought I could even handle it myself writing a custom launcher app, but figured why'd bother as I was sure you'd be on it. Anyhow thanks after switching to PN last week I'm hooked.
For your fix, please consider these scenarios:
1) User types "notepad" on command line. In this case, Programmer's Notepad will actually open the notepad.exe executable.
2) User selects multiple .txt files in Windows Explorer, right-clicks and selects "open" from the context menu. This is the case where someone opens multiple files at once. I think your suggested solution will work for this case, but thought I'd mention it in case you want to try it.
Posted 7 months ago #
Reply
You must log in to post.