From 98a39d989c3fea78125cf6a5cff7a9f8843b0067 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 1 Feb 2026 10:37:28 +0100 Subject: [PATCH] package/klish: add support for insert-comment Type a command, regret you typed so much before checking something else, comment it out for later with Meta-# (Alt-Shift-3). The whole line is now commented out and saved to history. Recall it later with Ctrl-P or Up arrow, delete the leading # with Ctrl-D, and run it. Signed-off-by: Joachim Wiberg --- doc/cli/keybindings.md | 1 + package/klish/klish.hash | 2 +- package/klish/klish.mk | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/cli/keybindings.md b/doc/cli/keybindings.md index cc85fbcd..2633ccd9 100644 --- a/doc/cli/keybindings.md +++ b/doc/cli/keybindings.md @@ -31,6 +31,7 @@ CLI has several keybindings, most significant first: | Ctrl-q | Ctrl-v | Insert next character literally | | Ctrl-r | | History, reversed interactive search (i-search) | | Ctrl-t | | Transpose/Swap characters before and at cursor | +| Meta-# | Alt-Shift-3 | Prepend # to current line and submit to history | ## What is Meta? diff --git a/package/klish/klish.hash b/package/klish/klish.hash index 3fbd5169..e8e93c69 100644 --- a/package/klish/klish.hash +++ b/package/klish/klish.hash @@ -1,3 +1,3 @@ # Locally calculated sha256 9d9d33b873917ca5d0bdcc47a36d2fd385971ab0c045d1472fcadf95ee5bcf5b LICENCE -sha256 39a73fdaa7e41001e804e2bbdebdc885da79d540f0246777e8fd1c0dd9fc9475 klish-1c31f50ab775d467fa18f2e0a798006949536a2a-git4.tar.gz +sha256 cd9bc969350b8b30d9a7a31b0f19fb3218c602f04fe7e6a1d80682a75ed26d18 klish-3ae496c43d90354ffa94d364d7775c089f0e119a-git4.tar.gz diff --git a/package/klish/klish.mk b/package/klish/klish.mk index 93c86395..57066b27 100644 --- a/package/klish/klish.mk +++ b/package/klish/klish.mk @@ -4,7 +4,7 @@ # ################################################################################ -KLISH_VERSION = 1c31f50ab775d467fa18f2e0a798006949536a2a +KLISH_VERSION = 3ae496c43d90354ffa94d364d7775c089f0e119a KLISH_SITE = https://github.com/kernelkit/klish.git #KLISH_VERSION = tags/3.0.0 #KLISH_SITE = https://src.libcode.org/pkun/klish.git