aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/session.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-22 19:30:58 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-22 19:52:47 +0100
commita6c13d77f2f5f504c7b99e66db5f7d52c1368b8a (patch)
treecb952691971c790a2b951dc5cac6068097355bb2 /lib/session.tes
parent3af77d3e21cc154a24ecf37b83b217066d296ec9 (diff)
downloadsciteco-a6c13d77f2f5f504c7b99e66db5f7d52c1368b8a.tar.gz
allow setting the "*" register as an alternative to nEB
this is more consistent with SciTECO's idea of abstract registers and allows the currend buffer to be saved on the Q-Register stack. This allows the idiom: [* ! ...change current buffer... ! ]*
Diffstat (limited to 'lib/session.tes')
-rw-r--r--lib/session.tes7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/session.tes b/lib/session.tes
index d038db5..0c3ef0a 100644
--- a/lib/session.tes
+++ b/lib/session.tes
@@ -2,7 +2,7 @@
! Path of the session profile.
Change this to save/load a custom profile !
-EQ[session.path] IQ[$HOME]/.teco_session 1EB
+[* EQ[session.path] IQ[$HOME]/.teco_session ]*
@[session.save]{
Q*U.[curbuf]
@@ -18,6 +18,7 @@ EQ[session.path] IQ[$HOME]/.teco_session 1EB
EBQ[session.path]
HK G.[session] EW EF
+ Q.[curbuf]EB
}
@[session.load]{
@@ -35,8 +36,6 @@ EQ[session.path] IQ[$HOME]/.teco_session 1EB
@[session.git]{
! if there is no Git repository, session.path is left as it is !
:EG[session.path]git rev-parse --show-toplevel"S
- Q*U.#cb
- EQ[session.path] ZJ -D I/.teco_session
- Q.#cbEB
+ [* EQ[session.path] ZJ -D I/.teco_session ]*
'
}