Skip to content

Command bars: Tab should trigger autocomplete (everywhere) #161

Description

@binarypath

Context

Pressing Tab while typing in the board's floating command bar moved focus out of the input, stranding the modal open with no focused input — which wedged the keyboard handler and froze all board navigation.

Mitigation shipped (branch `feat/board-object-model`): Tab is now a no-op in the board command bar, and Escape on the window always recovers a stranded command bar. This unblocks the freeze but Tab does nothing useful yet.

What we actually want

Tab → autocomplete, consistently across all command bars:

  • the app command bar (top header, `terminal.js` `#cmd-input`)
  • the board's floating command bar (`board.js`)

Behaviour

  • Tab completes the current token against the available commands / known identifiers.
  • Repeated Tab cycles candidates; Shift+Tab cycles back.
  • Suggestions cover: commands (`add`, `w`, `wl`, `graph`, …), tickers/securities, economic series (`US.DGS10`), financial fields (`AAPL.revenue`, `AAPL.peRatio`), commodities/forex/crypto.
  • A visible suggestion list/ghost text would help (the app command bar already has `#cmd-dropdown`).

Related

  • Command shortcuts (Bloomberg-style aliases for commands >3 chars, e.g. `graph` → `GC`) — separate but adjacent; autocomplete should surface the short forms too.

Until this lands, Tab stays a no-op in the board command bar (see the mitigation above).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions