From 32fd7e0cd8b472573cc9e2d49934245fb279d412 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 24 Oct 2026 13:48:41 -0300 Subject: Docs for window mode's d and c and the delayed Del hint: Help, cheatsheet, guide, reference, tutor, helix-keys --- src/CHANGELOG.md | 9 +++++++++ src/builtins.zig | 2 +- src/tutor.txt | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index efccc785..c2e0f3f7 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -2,6 +2,15 @@ ## Unreleased +- Window mode (Ctrl-w, SPC w) takes `d` and `c`: `d` is Del on the + outlined pane, asking k or j between two panes as SPC d does, and the + outline moves to the pane that took the rows; `c` collapses it. The mode + stays on, so `Ctrl-w d j d` closes two panes. `d` and `c` are no longer + pane labels. +- Del's question (`give space to k above j below`) shows only once 400 ms + have passed with no answer: SPC d j typed straight on closes the pane + without the band flashing, and a hand that stops after SPC d gets it as + a hint. - Callstack (gc or Space l b) opens a readable static call hierarchy with outermost callers first, tree-sitter signatures, depth guides and clickable call sites. `gc` replaces the old move-to-viewport-center binding. diff --git a/src/builtins.zig b/src/builtins.zig index 4fb933b0..1f1e674e 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -1844,7 +1844,7 @@ pub const Right = struct { }; /// Window mode: h/j/k/l move an outline between the panes; Enter or Esc -/// focuses the outlined pane, `:` its tag, the letter shown on a pane that one. +/// focuses the outlined pane, `:` its tag, the letter shown on a pane that one; d is Del on it (then k or j between two), c Collapse. pub const Window = struct { pub fn run(c: Ctx) void { tagline.exitHeader(c.p); diff --git a/src/tutor.txt b/src/tutor.txt index 188a485d..a1e887fa 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -290,7 +290,7 @@ typed SPC d `Del` SPC q `Exit` SPC f s `Save` SPC f f `Find` SPC f n `New` SPC y yank to the clipboard SPC p paste from it - SPC w window mode: h/j/k/l, Enter + SPC w window mode: h/j/k/l, Enter; d Del, c Collapse SPC j j `Last` SPC j o / SPC j i back / forward SPC s a `Attach` SPC s D `Detach` SPC t ... the toggles SPC l ... the language -- cgit v1.3