Skip to content

Option to attach to session while navigating sidebar with arrow keys #4

Description

@zszj888

Feature request

When navigating the sidebar with Up/Down (or k/j), the current workflow requires a separate Enter press to attach to the selected session.

It would be great to have a config option (e.g. attach_on_navigate: true) that makes the sidebar immediately attach to whichever session is highlighted as you move with the arrow keys — like tmux window navigation / byobu's <prefix>+<number>-style direct switching, but driven by the existing Up/Down keys.

Suggested behavior

  • attach_on_navigate: false (default): current behavior — arrows only move selection, Enter attaches
  • attach_on_navigate: true: pressing Up/Down moves selection and attaches to the newly highlighted session

Why

  • Faster switching between active sessions with one less keystroke
  • Feels natural for users coming from byobu/tmux-style quick-switch workflows
  • Could also pair well with issue More keybindings #3 (quick switching without leaving the terminal window)

Happy to implement it if the maintainer is open to the idea.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions