[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] Invoking scripts
In message <cda07c2053.wra1th@xxxxxxxxxxxxxxx>
Gavin Wraith <gavin@xxxxxxxxxxxxxxx> wrote:
> In message <4bbb792053.iyojohn@xxxxxxxxxxxxxxxxxxxxx> you wrote:
>
> > Is there a reason why it is necessary to hold down a key when invoking
> > a script with StronGED?
Not really, it's just a precaution against accidentally dropping a file
on the icon which could cause unwanted things to happen.
Also the name of the modifier key is a small clue to what will happen;
'C'trl = 'c'reate new file, 'S'hift = 's'ubstitute new text for old.
> > Is it possible to change the behaviour so that drag-drop does not
> > require a supplementary key?
>
> Sure. Copy !StrongED.Defaults.Modes.BaseMode to
> !StrED_cfg.UserPrefs.Modes if it is not there already.
For 4.68 and above this is unnecessary. StrongED will notice when you're
saving a file from Defaults and offer to save it to UserPrefs (which you
should normally accept).
> Then open !StrED_cfg.UserPrefs.Modes.BaseMode.ModeFile and search for
> a line (it is all one line and has TABs in it):
It's better to open the BaseMode ModeFile by Ctrl-Adjust clicking on the
iconbar icon. This will always open the active copy.
> ^Drag SetTmp() Process(,"<StrongED$Tmp_ToolPath>.!ScriptSED.Tools.Despatch
> <StrongED$Tmp_DragFile>",,NoReplace) Run("Filer_Run <StrongED$ScrapDir>.in")
>
> Delete the ^ in front of Drag, making sure to preserve the TAB to the
> left of it.
That TAB has no specific meaning, and can be omitted if so desired.
> Save the file. At the StrongED iconbar menu click
> Rescan->Modes
Rescan->Modes just scans the Modes directories for any modes that are
unknown to StrongED, if any are found they are added to the Modes menu.
This is useful if you've added new modes and want them to be available
without having to restart StrongED. It has nothing to do with ModeFiles
being modified, however.
Cheers,
Fred.
--
StrongED Developer
http://www.stronged.iconbar.com/
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx