diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-22 23:39:56 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-22 23:39:56 +0100 |
commit | 9e4af856e3bd93571f384c4b8a03d9a079dce1dc (patch) | |
tree | 71a35d93ecc2dc61a173b174c90c931aa84b2a4f /lib/session.tes | |
parent | 14cc71e053a7eddb86264049c2fc8b133870a6e6 (diff) | |
download | sciteco-9e4af856e3bd93571f384c4b8a03d9a079dce1dc.tar.gz |
updated lexer and session libraries using new EU, [* and ]* commands
Diffstat (limited to 'lib/session.tes')
-rw-r--r-- | lib/session.tes | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/session.tes b/lib/session.tes index 0c3ef0a..63e4cfc 100644 --- a/lib/session.tes +++ b/lib/session.tes @@ -2,25 +2,26 @@ ! Path of the session profile. Change this to save/load a custom profile ! -[* EQ[session.path] IQ[$HOME]/.teco_session ]* +EU[session.path]Q[$HOME]/.teco_session +! Save current session to the file specified by "session.path" ! @[session.save]{ Q*U.[curbuf] EJ< %.bEB ESGETFIRSTVISIBLELINEU.[fvline] ESGETXOFFSETU.[xoff] .U.[dot] - EQ.[session] - @I{EBQ* \.[fvline]ESSETFIRSTVISIBLELINE \.[xoff]ESSETXOFFSET \.[dot]:J^M} + :@EU.[session]{EBQ* \.[fvline]ESSETFIRSTVISIBLELINE \.[xoff]ESSETXOFFSET \.[dot]:J^M} EQ* Z"= -1U.u ' > - EQ.[session] - Q.u"F @I{EB -EF^M} ' - @I{\.[curbuf]EB^M} + ! We always start with an unnamed file in the ring, so we may have to remove it: ! + Q.u"F :@EU.[session]{EB -EF^M} ' + :@EU.[session]{\.[curbuf]EB^M} EBQ[session.path] HK G.[session] EW EF Q.[curbuf]EB } +! Load session specified by "session.path" ! @[session.load]{ EJ<-EF> EQ.x ENQ[session.path] |