Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More generalized way to set up Mode as part of the config #25

Closed
teknogit opened this issue Dec 15, 2023 · 1 comment
Closed

More generalized way to set up Mode as part of the config #25

teknogit opened this issue Dec 15, 2023 · 1 comment

Comments

@teknogit
Copy link

I'm trying to see if I one can overwrite the "global" setting of a specific keymap , so that a specific key that's mapped at the config.json can be ignored or changed at the component level based conditionally on the mode

For example, something like this?

{
    "keybindings": {
        "StockWatch": {
            "Insert":{
            },
            "Default":{
            "<q>":"Quit",
            "<j>": "ScheduleIncrement",
            "<l>": "ToggleShowHelp",
            "</>": "EnterInsert",
            "<Ctrl-d>": "Quit", // Another way to quit
            "<Ctrl-c>": "Quit", // Yet another way to quit
            "<Ctrl-z>": "Suspend", // Suspend the application
            }
        },
    }
}
@joshka
Copy link
Member

joshka commented Dec 15, 2023

There's no reason you couldn't add logic to your app to handle that case. Seems like reasonable behavior.

@orhun orhun closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants