Skip to content

Support arbitrary keybindings in shell integration? #890

@simono

Description

@simono

Problem

Shell integration keybindings only support Ctrl+char combinations. The extract_ctrl_char() function in shell_integration.rs discards non-Ctrl keys and falls back to defaults.

This prevents users with vi-mode shells (like fish) from binding plain keys like / for history search:

[shell_integration.keybindings]
command_history = "/"  # Currently ignored, falls back to Ctrl+r

Proposal

Replace ctrl_keybinding(shell, char) with keybinding(shell, Key) to support the full Key enum (plain chars, Alt, function keys, etc.).

Would you be open to a PR for this?

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