Hey, I like that! It works almost as well as Andre's shell extension.
shell\scite. Otherwise you won't see the Edit with SciTE on specific
file-types that already have a shell\edit key defined.
double-click the file. e.g. double click a DLL and you get SciTE instead of
the "Open With..." dialog.
Unfortunately, though, Matt is using Debian GNU/Linux. My friends at
afraid he's probably out of luck. (Heh!)
Post by Philippe Lhoste
Post by Matt Borkowski
Sorry for the confusion; I worded that pretty poorly.
What I wanted was to have scite automatically start
new, separate instances of scite every time I open a
file unless the current instance has no files open
(like nedit does by default). For example, I start
scite and file->open foo.c. I realize that I need to
refer to foo.h (for a struct definition or something),
so I file->open foo.h. For me, scite just opens the
file in the same instance, in a new buffer, even if I
set buffers to 0 or 1 in the global options file (this
just disables the buffer menu but still lets me
navigate buffers with the two arrows on the toolbar).
I, however, want scite to start a new instance with
foo.h opened, without touching my current instance
(that has foo.c open).
I tried setting and then unsetting
check.if.already.open (which I missed before) in both
the user and the global options, but neither seems to
do anything towards what I'd like...
OK, since I never use File -> Open, I didn't saw this...
I always open files from Explorer, either by double-clicking on them (or
right-click on them) or by drag'n'dropping them in a SciTE window.
Side note (resolving nothing): if your .h files are in the same directory
than your .c* files, you can quickly open them by clicking on the filename
(in the #include for example) and hitting Ctrl+Shift+O (or File -> Open
Other note: if I recall correctly, and if the behaviour didn't change (I
never use this mode...), if buffers is 0 or 1, SciTE don't use multi-
buffers, but instead closes the current file and opens the requested one.
But it has features allowing to recall quickly the previous/next file (in
MRU). AFAIK, the difference with buffers is that current
position/selection/bookmarks, etc. are not saved when switching.
In short, if you have check.if.already.open disabled or set to 0, you can
get a workaround (until somebody implement what you want) by opening
explicitely a separate instance of SciTE, using the methods given in the
@="Edit with &SciTE"
@="\"C:\\Program Files\\Utilities\\SciTE\\SciTE.exe\" \"%1\""
but the workaround works also with individual files registered with SciTE.
You go to File -> Open, see your .h file, right-click on it, and select
"Edit with SciTE"... If check.if.already.open is unset, it will open in a
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
Scite-interest mailing list