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

configurable keybindings #171

Open
CouldBeThis opened this issue Sep 24, 2023 · 4 comments
Open

configurable keybindings #171

CouldBeThis opened this issue Sep 24, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@CouldBeThis
Copy link

Love this application. :)

Could there be a way to remap the keybindings for dua interactive? The existing ones conflict with my terminal settings such as to make the dua actions unavailable. And conflict with my force of habit so I am doing things I don't mean to do.

due diligence: looked for something like ~/.dua, ~/.config/dua, nothing documented and no relevant issues found.

Workaround, of course, is to launch in a terminal that doesn't have the keybindings.

@Byron Byron changed the title configure keybindings configurable keybindings Sep 24, 2023
@Byron Byron added enhancement New feature or request help wanted Extra attention is needed labels Sep 24, 2023
@Byron
Copy link
Owner

Byron commented Sep 24, 2023

Love this application. :)

Thanks :)!

As of now, there is no way to configure the keybindings of dua i/interactive.
However, while that is the case, you could probably most easily patch the event loop and give it any key-bindings you like.

@CouldBeThis
Copy link
Author

Thanks! I might try that. TBH aliasing dua to launch in a separate terminal emulator is probably more straight forward for me.

@MilesCranmer
Copy link

+1 for this. Personally, I can't use the Ctrl+t binding because it is hard-wired to do other operations in my operating system. So a config file would be great! You probably only need a single ~/.dua.toml file that has overrides any key-bindings. You could have a struct that declares the keys, and, at initialization, is defined with the defaults – unless there is a ~/.dua.toml file.

@CouldBeThis
Copy link
Author

I never remember to launch dua in the custom terminal profile I made for it... because of the keybinding conflict basically dua is read only; I can't access any of the operations. At least I managed to train myself not to quit it all the time by mistake.

It's still 10x better than any alternative though.

(I don't know how to program so sadly I can't contribute anything more than enthusiasm.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants