From ff29fd633e979d24a191e7ecd0c26541e3b597ac Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 15:28:03 -0300 Subject: Surround keeps the direction of the selection it wraps ms always left the wrapped range pointing forward. helix gives each range back with_direction(range.direction()), so a selection made backward (b, or v moving up) keeps its head on the open, which is where the next motion starts from. helix-golf's csv_to_sql (bms`) is where it showed. Co-Authored-By: Claude Opus 5.5 --- docs/helix-keys.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/helix-keys.md b/docs/helix-keys.md index 84ee5124..0b0da2ae 100644 --- a/docs/helix-keys.md +++ b/docs/helix-keys.md @@ -283,7 +283,7 @@ keeps the matches it found so far. | --- | --- | --- | --- | | `mm` | goto matching bracket | dumb text scan with nesting for `()[]{}<>`; ON a bracket only (no TS "nearest pair"); works on terminals via the motion surface | helix-verified (phase 5) | | `mi` / `ma` | select inside / around textobject | pairs `( ) [ ] { } < >` nesting-aware multi-line; quotes `' " `` ` `` ` **line-scoped** (plain-text strings don't span lines); `w`/`W` word run (+trailing ws around, leading if none); `p` blank-line block (+trailing blanks around). Empty inside (`()`) = no-op. Selections work on terminals; `Pane.pending2` holds the i/a/s/r/d sub-key | helix-verified (phase 5) | -| `ms` | surround selection (or cursor char) with the `` pair; wrap incl. pair becomes the selection | either bracket names its pair; any other ASCII char wraps with itself; file panes only | helix-verified (phase 5) | +| `ms` | surround selection (or cursor char) with the `` pair; wrap incl. pair becomes the selection, keeping the direction it had | either bracket names its pair; any other ASCII char wraps with itself; file panes only | helix-verified (phase 5) | | `mr` | replace enclosing `` pair chars with ``'s | `Pane.pending_ch` holds `` while `` pends; file panes only | helix-verified (phase 5) | | `md` | delete the enclosing `` pair chars | file panes only | helix-verified (phase 5) | -- cgit v1.3