~ecs/mrsh-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH madeline] Allow inserting hint with right arrow

Details
Message ID
<20230217054604.15700-1-sebastian@sebsite.pw>
DKIM signature
pass
Download raw message
Patch: +5 -1
This makes ^f and right arrow identical to each other

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
This also works with ctrl+right and alt+right since it works like that
in fish

 made/line.ha | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/made/line.ha b/made/line.ha
index 735ee6e..2f76c18 100644
--- a/made/line.ha
+++ b/made/line.ha
@@ -193,7 +193,11 @@ fn csi(s: *state) (bool | str | error) = {
	case 'B' => // down
		histmove(s, false);
	case 'C' => // right
		next(s, len(buf) != 0);
		if (s.pos == len(s.buf)) {
			insert_hint(s);
		} else {
			next(s, len(buf) != 0);
		};
	case 'D' => // left
		prev(s, len(buf) != 0);
	case 'H' => // home
-- 
2.38.4
Details
Message ID
<CQSPUFGCUPUY.ZDCWU1JJD3RJ@monch>
In-Reply-To
<20230217054604.15700-1-sebastian@sebsite.pw> (view parent)
DKIM signature
missing
Download raw message
fish only inserts the next word on ctrl/alt+right, and i'd like to keep
that behavior. can you also merge this with the ^f and ^b patches?
Reply to thread Export thread (mbox)