De: Frank <frank.wunderlich <at> gmail.com>
Para: scite-interest <scite-interest <at> googlegroups.com>
Enviado: miércoles, 3 de diciembre, 2008 8:14:01
Asunto: [scite] Re: lua script execution on startup
without see the code of your script i cannot help you much...why don't
you use the save.session-property? it saves the seesion on exit and
restore it on startup.
a simple script from our gui-extension (maybe perform works only with
sciteRu):
local function OpenFile(filename)
if filename:match(".session$") ~= nil then
filename = filename:gsub('\\','\\\\')
scite.Perform ("loadsession:"..filename)
else
scite.Open(filename)
end
end
maybe this helps you.a session file can hold not only the filenames.
it can contain line position, active buffer and recent-files.so it can
be difficult to parse it manually.
regards frank
On 3 Dez., 14:52, kelye <
bogdan.be... <at> gmail.com> wrote:
> Thanks!
> It works but not with the expected results :)
>
> i did a small script that reads each line in SciTE.session and opens
> each path it finds.
>
> but that script is runned at each new file load and slows Scite :(
>
> i made it a function and added a shortcut.. so each time i forget to
> load the session i'm calling my function to load the session:)
>
¡Todo sobre Amor y Sexo!
La guía completa para tu vida en Mujer de Hoy:
http://mx.mujer.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---