Skip to content

figure out a way for the user to set default key bindings #83

@cdepillabout

Description

@cdepillabout

It would be nice for the user to be able to set default key bindings in their termonad.hs configuration file.

Currently there are two types of key bindings:

  • Key bindings to the current menu actions, like new tab, close tab, copy, paste, etc. These are set in the following function:

    applicationSetAccelsForAction app "app.newtab" ["<Shift><Ctrl>T"]

  • Other key bindings that aren't associated with a menu action, like Alt-1 for switching to the first terminal tab. These are set in the following function:

    handleKeyPress :: TMState -> EventKey -> IO Bool

    keyMap :: Map Key (TMState -> IO Bool)

It would be nice to give the user the ability to change both of these key bindings.

That is to say, the user should be able to change the key associated with the menu actions (like new tab). The user should also be able to change key bindings that aren't associated with a menu action (like Alt-1 for switching to the first terminal). Finally, the user should be able to add new key bindings that aren't associated with a menu action to call arbitrary functions they define.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions