From 3728538352e7ee0e47cc5840038d1c737f3e39e0 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 6 Apr 2025 19:32:07 +0300 Subject: session.tes extensions: allow per-session .teco_ini; detect sessions in arbitrary parent directories (WIP) * Unfortunately not that easy to get right, especially the per-session .teco_ini. * We must make sure that we do mung the $SCITECOCONFIG/.teco_ini. * .teco_ini must always be munged even if .teco_session is not munged. --- fallback.teco_ini | 16 ++++------------ lib/session.tes | Bin 3180 -> 3732 bytes 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/fallback.teco_ini b/fallback.teco_ini index 0211ade..fc37dcf 100644 --- a/fallback.teco_ini +++ b/fallback.teco_ini @@ -78,18 +78,10 @@ EMQ[$SCITECOPATH]/fnkeys.tes !!500*1000*1000,2EJ !* - * If files are given on the command-line, open them - * and disable session saving. - * Otherwise open a buffer session. + * Uncomment to use a separate session per VCS repository or + * working copy (see session.tes): *! -Z"= - !* - * Uncomment to use a separate session per VCS repository or - * working copy (see session.tes): - *! - !!M[session.vcs] - M[session.load] -| - [session.path] !* disables session saving *! +!!M[session.vcs] +M[session.load]"F M[opener] -EF ' diff --git a/lib/session.tes b/lib/session.tes index 3048e9e..3138e37 100644 Binary files a/lib/session.tes and b/lib/session.tes differ -- cgit v1.2.3