zetah | 1 Feb 07:38
Picon
Gravatar

Re: Running SciTE with file parameter won't load last session

I would also ask for some way of avoiding session overwrite

If for some reason SciTE isn't opened and I accidentally double click
file associated with SciTE, or some application launches SciTE as
default application for some file type, my previous session is lost.
What I do then is load last 10 files from recent file list menu, which
is bad

There is "loadsession:" command line argument, but I can't think how
to use it to solve this problem

Maybe "save.session" property could have one more value - 2, which
would indicate opening single file *not* to override "save.session"
value

On Jan 30, 6:34 pm, Vlastimil Ovčáčík <v.ovca...@gmail.com> wrote:
> Hi,
> is there an option to force loading last session on every SciTE launch? It
> actually loads session, but not always - if you open scite with parametr it
> won't load last session. Even worse it overwrite the session on next exit.
> The use case is:
>
> a) normal behaviour
> cmd: scite.exe
> Last session is loaded, new files can be added to session and session is
> saved.
>
> b) current (annoying) behaviour
> cmd: scite.exe foo.txt
> Last session is not loaded, only foo.txt is displayed in edit pane and last
(Continue reading)

Re: Re: Running SciTE with file parameter won't load last session

Zetah,
I am using loadsession in batch file to preload the session before opening a file. It's not elegant but it works.

###
<at> echo off

REM Check if SciTE is already running
tasklist /FI "IMAGENAME eq scite.exe" 2>NUL | find /I /N "scite.exe">NUL
if "%ERRORLEVEL%" NEQ "0" (
  REM If not, load default session and wait 3 seconds
  start /D "%SciTE_HOME%" SciTE.exe -loadsession:SciTE.session
  ping -n 3 localhost
)

REM Pass all parameters to scite.exe
start /D "%SciTE_HOME%" SciTE.exe %*
###

Some built in feature would be much appreciated.



On Wed, Feb 1, 2012 at 07:38, zetah <klonuo <at> gmail.com> wrote:
I would also ask for some way of avoiding session overwrite

If for some reason SciTE isn't opened and I accidentally double click
file associated with SciTE, or some application launches SciTE as
default application for some file type, my previous session is lost.
What I do then is load last 10 files from recent file list menu, which
is bad

There is "loadsession:" command line argument, but I can't think how
to use it to solve this problem

Maybe "save.session" property could have one more value - 2, which
would indicate opening single file *not* to override "save.session"
value


On Jan 30, 6:34 pm, Vlastimil Ovčáčík <v.ovca... <at> gmail.com> wrote:
> Hi,
> is there an option to force loading last session on every SciTE launch? It
> actually loads session, but not always - if you open scite with parametr it
> won't load last session. Even worse it overwrite the session on next exit.
> The use case is:
>
> a) normal behaviour
> cmd: scite.exe
> Last session is loaded, new files can be added to session and session is
> saved.
>
> b) current (annoying) behaviour
> cmd: scite.exe foo.txt
> Last session is not loaded, only foo.txt is displayed in edit pane and last
> session is overwritten with current session.
>
> c) expected behaviour
> cmd: scite:exe foo.txt
> Last session is loaded, foo.txt is added at the end of the buffer and
> session is saved on next exit.
>
> It would be great to get scite from b) to c).
>
> Thanks
> Vlastimil Ovcacik

--
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.


--
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.
Chris Angelico | 1 Feb 11:47
Picon

Moving tabs around

Greetings!

I use SciTE on both Windows XP and Debian Linux, and for the most
part, the two are compatible; everything that I want to achieve, I can
do in either. There's just one small difference that occasionally gets
in the way, and that's dragging tabs around to re-order them.

On Windows, tabs can be reordered by simply dragging them around. On
Linux, this does not appear to be possible. Is there a config setting
that will enable this, or is the feature simply not available?

Chris Angelico

--

-- 
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.

zetah | 1 Feb 11:55
Picon
Gravatar

Re: Running SciTE with file parameter won't load last session

Thanks Vlastimir,

I'm on Linux and can probably make my file associations with
"preloading" session file, but that doesn't seem like right solution
similarly as overwriting session file doesn't seem to me like great
decision. At least option to cache session file before overwriting and
reload on possible user demand would be more sensitive approach

I'm not sure if Lua start-up script can be used to copy session file
to temp folder in case SciTE overwrites it, or more precisely if
session file is removed prior Lua start-up script initiation

On Feb 1, 11:07 am, Vlastimil Ovčáčík <vlasti...@ovcacik.org> wrote:
> Zetah,
> I am using loadsession in batch file to preload the session before opening
> a file. It's not elegant but it works.
>
> ###
> @echo off
>
> REM Check if SciTE is already running
> tasklist /FI "IMAGENAME eq scite.exe" 2>NUL | find /I /N "scite.exe">NUL
> if "%ERRORLEVEL%" NEQ "0" (
>   REM If not, load default session and wait 3 seconds
>   start /D "%SciTE_HOME%" SciTE.exe -loadsession:SciTE.session
>   ping -n 3 localhost
> )
>
> REM Pass all parameters to scite.exe
> start /D "%SciTE_HOME%" SciTE.exe %*
> ###
>
> Some built in feature would be much appreciated.

--

-- 
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.

KHMan | 1 Feb 12:21
Picon

Re: Re: Running SciTE with file parameter won't load last session

On 2/1/2012 6:55 PM, zetah wrote:
> I'm on Linux and can probably make my file associations with
> "preloading" session file, but that doesn't seem like right solution
> similarly as overwriting session file doesn't seem to me like great
> decision. At least option to cache session file before overwriting and
> reload on possible user demand would be more sensitive approach
>
> I'm not sure if Lua start-up script can be used to copy session file
> to temp folder in case SciTE overwrites it, or more precisely if
> session file is removed prior Lua start-up script initiation

I separate SciTE processes/windows when used for widely separate 
tasks by changing SciTE_HOME using autohotkey, then the one where 
I want the session saved is separate from 'normal' SciTE processes.

The ahk file has 2 lines only, for example:
   EnvSet,SciTE_HOME,D:\MyApps\wscite\mplab
   Run,D:\MyApps\wscite\SciTE.exe

Of course, this needs a separate set of configuration files. I use 
it when running with a different asm.properties, but later found 
it convenient for saving sessions as well.

The above may or may not be suitable for everyone, but at least it 
is another way of approaching a similar issue.

> On Feb 1, 11:07 am, Vlastimil Ovčáčík wrote:
>> Zetah,
>> I am using loadsession in batch file to preload the session before opening
>> a file. It's not elegant but it works.
>>[snip snip]

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

--

-- 
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.

zetah | 1 Feb 21:20
Picon
Gravatar

Re: Running SciTE with file parameter won't load last session

It seems it can, but problem still not solved. I have this function in
Lua start-up script:

++++++++++++++++++++++++++++++++++++++++
function store_last_session()
    local ses = io.open(props["SciteUserHome"] .. "/stored_session",
"w")

    ses:write(io.open(props["SessionPath"], "r"):read("*a"))
    ses:flush()
end

function restore_last_session()
    scite.MenuCommand(132, props["SciteUserHome"] .. "stored_session")
end
========================================

and I call "store_last_session()" in "OnOpen":

++++++++++++++++++++++++++++++++++++++++
AddEventHandler("OnOpen", function()
    store_last_session()
end, 'RunOnce')
========================================

which works just fine, and last session is saved in "stored_session"
in user's home folder.

Problem is how to load it automatically without browsing to it. SciTE
menu command 132 (IDM_LOADSESSION) doesn't seem to accept arguments,
so "restore_last_session()" function is useless, as it just executes
LoadSession menu command.

This is still better then nothing, but I wonder if there is a way to
automate it completely?

On Feb 1, 11:55 am, zetah <klo...@gmail.com> wrote:
> I'm not sure if Lua start-up script can be used to copy session file
> to temp folder in case SciTE overwrites it, or more precisely if
> session file is removed prior Lua start-up script initiation

--

-- 
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.

Ken Bertelson | 1 Feb 14:15
Picon

Re: Moving tabs around

You can do it with keyboard shortcuts.
I have the following in both my Windows and Linux
SciTE "User Options File":


# Added ability to reorder tab buffers!
user.shortcuts=\
Ctrl+Shift+PageUp|IDM_MOVETABLEFT|\
Ctrl+Shift+PageDown|IDM_MOVETABRIGHT|\

Now, I move tabs around on both environments
exclusively with my keyboard.  I use this
all the time!

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scite-interest/-/ScTe9R4QK4QJ.
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.
zetah | 1 Feb 21:29
Picon
Gravatar

Re: Running SciTE with file parameter won't load last session

There is a typo in:

> function restore_last_session()
>     scite.MenuCommand(132, props["SciteUserHome"] .. "stored_session")
> end

it should be (notice slash):

scite.MenuCommand(132, props["SciteUserHome"] .. "/stored_session")

but that doesn't change anything.
Worth mentioning is slash character in store_last_session() which is
not so obvious and if user tries this on Windows it wont work unless
replaced with two backslashes

--

-- 
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.

zetah | 2 Feb 21:23
Picon
Gravatar

Font spacing issue

If I use fixed-width font (i.e. Droid Sans Mono) that does not have bold version in separate file, some kind of automatic weighting is done, and spacing between regular and bold font is ruined. This is obviously undesirable when user selects fixed-width font:









If selected monospaced font that does have separate file for bold version, spacing is correct as anyone would expected, (i.e. Courier New):


This observation is valid also for proportional fonts, although obviously more problematic for monospaced fonts

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scite-interest/-/6YV0oW8OookJ.
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.
Neil Hodgson | 2 Feb 23:11
Picon

Re: Font spacing issue

zetah:

> If I use fixed-width font (i.e. Droid Sans Mono) that does not have bold
> version in separate file, some kind of automatic weighting is done,
> and spacing between regular and bold font is ruined. This is obviously
> undesirable when user selects fixed-width font:

   This is the normal behaviour. If you want fixed-width spacing then
you have to choose fonts and font attributes that match your
preference.

   Neil

--

-- 
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.


Gmane