From 5752e5c94f27eced137f4ca061c68715d8b7131a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 10:56:51 -0300 Subject: mouse: a click on a tag, a pane's, a column's or the workspace's, puts its cursor there in normal mode, where it was insert mode (the user's): a letter is a command, `i` types where it was clicked, Enter or Tab runs the word under it; the guide, the cheatsheet and the changelog say so; the tests that clicked a tag and typed now type `i` (or `a` after a sweep) first, and an Esc that left insert mode goes; snap: nine scripts likewise, layout-close's golden now the Del its chord was meant to run (the click had typed ` dk` into the tag); a behavioural test, checked to fail with insert mode back Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/typ/cheatsheet.typ | 2 +- docs/typ/guide.typ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index 9dc9c473..a831273b 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -6,7 +6,7 @@ == The mouse #pairs( - btn("B1"), [select, and focus the pane. On a tag: type there.], + btn("B1"), [select, and focus the pane. On a tag: its cursor there, in normal mode (#key("i") to type).], btn("B2"), [#word("Exec") the word or selection: a builtin, else a shell line.], btn("B3"), [#word("Look"): open the file, address, directory or URL, else find the word's next place. Resting the pointer tints what #btn("B3") would take.], [sweep], [drag #btn("B2") or #btn("B3") to #word("Exec") or #word("Look") exactly what you swept.], diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 56fe3ebd..74a0df86 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -64,7 +64,7 @@ before #key("Ctrl-w") or #key("Alt-n"). = The mouse #pairs( - btn("B1"), [select; a click puts the cursor there and gives the pane the keyboard. In a tag it starts typing, in insert mode. A double click selects the word; at a line's start or end, the line; just inside a bracket or quote, up to its match.], + btn("B1"), [select; a click puts the cursor there and gives the pane the keyboard. In a tag it puts the tag's cursor there, in normal mode: #key("i") types there, #key("Enter") or #key("Tab") runs the word under it. A double click selects the word; at a line's start or end, the line; just inside a bracket or quote, up to its match.], btn("B2"), [#word("Exec"): a builtin word runs, anything else is a shell line.], btn("B3"), [#word("Look"): open the file, address, directory or URL, else find the word's next place.], chord("B1", "B2"), [cut the selection], -- cgit v1.3