From c7191869f2def9f1c4893ab5b0f4bc90b919438d Mon Sep 17 00:00:00 2001 From: M Rawash <mrawash@gmail.com> Date: Fri, 9 Dec 2011 16:12:58 +0200 Subject: [PATCH] removed automatic saving to session file, it was a little dangerous --- penta-sessions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/penta-sessions.js b/penta-sessions.js index 4db8a15..c6d4f9b 100644 --- a/penta-sessions.js +++ b/penta-sessions.js @@ -58,8 +58,7 @@ var INFO = <example><ex>:sessionsave</ex> pythonref</example> </p> <p> - If no <oa>file</oa> was specified, it will save to <o>sessionfile</o> if set, otherwise to a - numbered file (based on current date) in <o>sessiondir</o>. + If no <oa>file</oa> was specified it will save to a numbered file (based on current date) in <o>sessiondir</o>. </p> <p> Adding ! will overwrite the file if it exists. @@ -111,7 +110,7 @@ group.commands.add(['sessions[ave]','mkses[sion]'], 'Save current window', function(args) { let filename = args[0] ? (/\//.test(args[0]) ? args[0] : options.sessiondir+args[0]) - : (options.sessionfile || options.sessiondir+Date.now()+'.penta') + : options.sessiondir+Date.now()+'.penta' let file = io.File(filename); dactyl.assert(!file.exists() || args.bang, _("io.exists", file.path.quote())); -- GitLab