#952 Add an option to ignore the first filename given as argument

open
Neil Hodgson
SciTE (231)
3
2012-08-31
2012-08-31
No

On Windows 7, the best way to make SciTE replace notepad for everything is the one given for notepad2 on this page: http://windows7themes.net/how-to-replace-notepad-with-notepad-or-notepad2-in-windows-7.html However when you do this, Windows passes the path to notepad.exe as the first argument to SciTE, which results in opening notepad.exe along with the file you want. It would be nice to have an option for ignoring the first file passed on the command line.

Thanks.

Discussion

  • Neil Hodgson
    Neil Hodgson
    2012-08-31

    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 3
     
  • Neil Hodgson
    Neil Hodgson
    2012-08-31

    There are lighter ways of choosing SciTE in many circumstances such as being on the context menu. Making it the debugger for notepad.exe is quite a horrible hack.

    If someone really want to implement an ignore-first option then OK but it should be something more explanatory than /z - perhaps /ignorefirstargument.

    I won't be working on this myself.

     
  • I don't think either that adding such an option makes any sense. If one really want to use such a hack, I guess it'd be easy enough to write a tiny wrapper script that skips the first argument, using batch or alike.

     
  • I agree that it is a horrible hack, but the other ways do not work in all circumstances. I have already added SciTE to the context menu and anyway I use FreeCommander instead of the Windows explorer which takes care of most browse+open use cases. The problem is that there are applications that are configured through text files and offer a menu item to open the configuration without needing to browse to its location which is usually a pain to reach (examples of such apps include TortoiseSVN and UltraDefrag).

    I agree that if such an option were added, it should be /some-long-name-that-discourages-casual-use.

    Or is it possible to replace the notepad.exe executable with SciTE without needing to copy the configuration files alongside it? I'm not on the Windows computer right now so I can't try...

     
  • Neil Hodgson
    Neil Hodgson
    2012-09-04

    The applications I use with similar capabilities (TortoiseHg and cppcheck) allow simply specifying SciTE as the editor either in a settings dialog or a file. There's no need to avoid a first parameter.