about summary refs log tree commit diff stats
path: root/bonus
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-05 00:57:57 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-05 00:57:57 +0100
commitc0ccab9264ed99e75ee42197eed8af7e77e023f5 (patch)
treed70478a6dfb1e618c19ebf8079469bb52efcdaa3 /bonus
parent0edb5d3230730990d922328822e19833d807a040 (diff)
downloadchawan-c0ccab9264ed99e75ee42197eed8af7e77e023f5.tar.gz
Add ask()
Diffstat (limited to 'bonus')
-rw-r--r--bonus/w3m.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/bonus/w3m.toml b/bonus/w3m.toml
index 9acc887f..6c1c45ae 100644
--- a/bonus/w3m.toml
+++ b/bonus/w3m.toml
@@ -71,7 +71,7 @@ C-w = 'config.searchwrap = !config.searchwrap; pager.alert("Wrap search " + (con
 # Misc
 #TODO shell out, help file, options, cookies
 C-c = 'pager.cancel()'
-q = 'pager.quit()' #TODO confirm
+q = 'pager.ask("Do you want to exit Chawan?").then(x => x ? pager.quit() : void(0))'
 Q = 'pager.quit()'
 
 # w3m line editing is equivalent to Chawan's defaults.