Scite Open File In New Window

lua-users home
wiki

How is this related to Lua?

The original version was a Lua function. After studying more scite commands I realized the desired effect could be implemented with SciTE command semantics. I thought that explaining this part of the story would be a waste of everyone's time.

Opens a new SciTE window with the active file

This solves my problem of having to navigate the open file dialog to find a file that is already open in the editor. :-)

command.name.42.*=Open File In New &Window
command.subsystem.42.*=2
command.42.*=scite.exe "$(FilePath)" -goto:$(SelectionStartLine)
command.shortcut.42.*=Ctrl+Shift+Alt+O

This assumes you have SciTE configured so that check.if.open=0.

Obviously scite.exe is not cross-platform friendly, and you may want a different shortcut.

--DdelvinJohnson--


RecentChanges · preferences
edit · history
Last edited September 5, 2008 5:49 am GMT (diff)