Whoa... if this is standard behaviour, I think it should be
documented in the HTML... it certainly sounds non-intuitive.
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
> omg, i've tried Scite.Open and unexpectly it handles the session-file
> instead of simply open it :)
> ok, its seems to be a undocumented feature of SciteRu,
It - your mistake. The session-file opens as a usual file
(in SciTE-Ru also).
Some way to open a session by lua-script:
-------------------------------------------
local ses_filename = 'C:\\SciTE\\home\\test.session'
ses_filename = ses_filename:gsub('\\','\\\\')
-- Variant 1 (used <http://scite-ru.googlecode.com/svn/trunk/pack/doc/SciTE-Ru_Kernel.html#Perform>)
scite.Perform ("loadsession:"..ses_filename)
-- Variant 2 (used <http://scite-ru.googlecode.com/svn/trunk/pack/LuaLib/shell_rus.html#exec>)
-- shell.exec('C:\\SciTE\\scite.exe -loadsession:'..ses_filename)
-------------------------------------------
> i think original scite has no way to open a session by lua-script...
It is necessary to write a script with cycle on session-file contents and opening of the files listed in him.
--
mozers
<http://code.google.com/p/scite-ru/>
> try open a .session-file with your filemanager (gui-ext) :)
> i've closed all tabs and doubleclicked on Scite.session in my Home-
> dir...and vóila, the session is loaded and not the session file alone.
It was pleasant to you? :)
So work the script (see function OpenFile in SideBar.lua).
> for the save-session triggering: as i see you create your own save-
> dialog using the hta-file, right?
Yes. HTA gives a simple way for creation of any dialogues.
> is it possible to add a Save/load-dialg to shell.dll oder gui-ext?
No. Dialog is absolutely other functionality.
> i have some ideas to use them (e.g. invisible pre-save processing).
For "invisible" dialog is not necessary :)
--
mozers
<http://code.google.com/p/scite-ru/>
> i mean the windows-default-dialogs for opening/savin not owner created
> dialogs.
Use gui.open_dlg.
Probably it is necessary to add gui.save_dlg but work with gui_ext is stopped.
From many wishes only a few is executed.
Steve Donovan and ru-programmers ignore the excellent project :(
--
mozers
<http://code.google.com/p/scite-ru/>
i see that you havnt yet included changes using env-vars in the
favourites list. i thought that these should be ok.
also appended all my changes to actual sidebar.lua (svn).
regards Frank
> i implemented save_dlg.it's appended to this mail.
> also appended all my changes to actual sidebar.lua (svn).
Thanks.
Your code will be checked up and added in SVN.
--
mozers
<http://code.google.com/p/scite-ru/>