Skip to content

Wire config keymaps to split/panel management; stop stealing Tab from the shell #249

Closed

Description

@Xuepoo

Problem

Panels tile correctly at launch (--split verified live: 2 panes render, focus traversal works) but cannot be managed at runtime. Worse: the app hardcodes Tab/arrows/n/p/1-8 as focus keys (main.rs keyboard handler), STEALING them from the shell - Tab completion is broken in every bitty window.
Meanwhile bitty-config already validates KeymapEntry{chord, action, context} data that nothing reads.

Expected (ghostty-style, user reference: ~/.config/ghostty/keybinds.conf)

  • Config-file keymaps drive all chrome keys: keymaps = [{chord="alt+h", action="goto_split:left", context="global"}] (TOML bootstrap maps to the same fields; ghostty keybind = ... syntax is reference only).
  • Action set against existing layout primitives: new_split:{left,right,up,down}, goto_split, close_view, resize_split, toggle_zoom, next/prev focus - all via Runtime/LayoutNode APIs, no new tiling primitive.
  • Precedence: keymap match => action; else => bytes to PTY. Unbound Tab/arrows go to the shell (fixes completion). Live-reloadable per existing reload classification (keymaps is Live).
  • Minimal default map shipped (documented), user file overrides by context+chord identity (existing merge rule).

Acceptance

Live ws4: config with alt+h/j/k/l navigates splits, alt+w closes, Tab completes in fish; screenshots; just check green.
Priority: P0 | Area: ux | Labels: fix,area:ux,P0 | Milestone: v0.1.0 | RFC: - | Task: TBD

Activity

  1. added this to the v0.1.0 milestone on Sep 3, 2026
  2. added
    fix
    P0
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0area:uxfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions