summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 21:42:33 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commit3643635640e97eb2e43730d58fcc46214e21851e (patch)
treea096772d1709492a624bb90f06fdc98a60d142ac /src/builtins.zig
parent4e89db185fa4e3bfe4358d2da3b76fad0cc7e547 (diff)
downloadpardes-3643635640e97eb2e43730d58fcc46214e21851e.tar.gz
pardes-3643635640e97eb2e43730d58fcc46214e21851e.zip
Window mode: pick the pane to focus with an outline or a label
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 83966228..6ecd3c9e 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -1819,6 +1819,16 @@ 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.
+pub const Window = struct {
+ pub fn run(c: Ctx) void {
+ tagline.exitHeader(c.p);
+ c.p.window_pick = if (c.p.panes[c.id] != null) c.id else c.p.active;
+ c.p.setMessage(c.p.window_pick.?, "Window: h/j/k/l move, Enter or Esc focuses the outlined pane, : its tag, a letter that pane");
+ }
+};
+
// ---- the jump group ----
/// Ctrl-o: one step back into the history.