before_quit_hook: new hook
commit9ec2799f010fb2d2c3f4c1c360bf00a4f245c33a
authorJohn Foerch <jjfoerch@earthlink.net>
Sun, 21 Feb 2010 21:32:33 +0000 (21 16:32 -0500)
committerJohn Foerch <jjfoerch@earthlink.net>
Sun, 21 Feb 2010 21:32:33 +0000 (21 16:32 -0500)
treee3f64a7734f4ed4d86a242ade063f3fe3a60ed19
parenta3a68efe989a3f75b48a8639394e1149b14a772b
before_quit_hook: new hook

confirm-quit: removed command

  To get a quit confirmation, put the following in your rc:

   add_hook("before_quit_hook",
            function () {
                var w = get_recent_conkeror_window();
                var result = (w == null) ||
                    "y" == (yield w.minibuffer.read_single_character_option(
                        $prompt = "Quit Conkeror? (y/n)",
                        $options = ["y", "n"]));
                yield co_return(result);
            });
modules/commands.js