Hi,
I use the session feature of conkeror and have set
session_auto_save_auto_load = "prompt"; But sometimes I don't want to
load the saved session nor want to discard it. I want to do a quick
lookup and maybe close conkeror thereafter or load the aut‐saved session
with the minibuffer command.
I found no way to do it and try to change session.js, but I don't know
how to rename a file. I want to give the user a third option (suspend)
that renames the session file, to not get overwritten by the auto‐save of
the new session.
diff --git a/modules/session.js b/modules/session.js
index 5bc3095..04f012f 100644
--- a/modules/session.js
+++ b/modules/session.js
@@ -344,10 +344,16 @@ in_module(null);
if (session_auto_save_auto_load == true)
do_load = true;
else if (session_auto_save_auto_load == "prompt" && !user_gave_urls) {
- do_load = (yield window.minibuffer.read_single_character_option(
- $prompt = "Load auto-saved session? (y/n)",
- $options = ["y", "n"]
- )) == "y";
+ answer = (yield window.minibuffer.read_single_character_option(
+ $prompt = "Load auto-saved session? y(es)/n(o)/s(uspend)",
+ $options = ["y", "n", "s"]
+ ));
+ if (answer == "s")
+ {
+ new_filename = make_file(yield _session_prompt_file(window));
+ session_get());
+ ;
+ do_load = answer != "y";
} else
throw new Error("Invalid value for session_auto_save_auto_load: " +
session_auto_save_auto_load);
Can anyone help or has a better idea?
Have a nice day, Jörg.
--
"The future is here. It's just not widely distributed yet."
(William Gibson)
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror