about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-06 20:16:18 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-06 22:24:01 +0100
commit8323cf214819297cae0ce0908e339a78a289434a (patch)
treea861b10713ae244ae593e8988087a8aa449a3375 /res
parent85ec984f948623662a76a3fbfe50354f6be9612e (diff)
downloadchawan-8323cf214819297cae0ce0908e339a78a289434a.tar.gz
Slightly refactor commandMode
Diffstat (limited to 'res')
-rw-r--r--res/config.toml8
1 files changed, 7 insertions, 1 deletions
diff --git a/res/config.toml b/res/config.toml
index ae0d4d8d..968e4626 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -89,7 +89,6 @@ M-d = 'pager.discardTree()'
 'M-.' = 'pager.nextSiblingBuffer()'
 'M-/' = 'pager.parentBuffer()'
 M-c = 'pager.command()'
-C = 'pager.commandMode();console.show()'
 '/' = 'pager.isearchForward()'
 '?' = 'pager.isearchBackward()'
 n = 'pager.searchNext()'
@@ -122,3 +121,10 @@ C-e = 'line.end()'
 C-v = 'line.escape()'
 C-p = 'line.prevHist()'
 C-n = 'line.nextHist()'
+M-c = '''
+pager.commandMode = !(console.buffer == pager.buffer);
+if (pager.commandMode)
+	console.hide();
+else
+	console.show();
+'''