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

Remapping keys #47

Open
unixfile opened this issue Jul 23, 2020 · 6 comments
Open

Remapping keys #47

unixfile opened this issue Jul 23, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@unixfile
Copy link

Would be nice to be able to remap keys.

I use dvorak, and the the movement keys htns instead of hjkl.

@michaelowens
Copy link

michaelowens commented Jul 24, 2020

Would like to see this as well now, especially considering the keybinding q (to close dijo) was removed recently. Instead of pressing 1 key, I now have to press 4 (shift + : + q + enter, as ctrl-c doesn't save). Would be nice to see this configurable as well 😄

@oppiliappan
Copy link
Owner

Should be possible once a config file feature is implemented.

@unixfile
Copy link
Author

Environment variable would also work.

@oppiliappan
Copy link
Owner

This is available as of v0.2.7, remains undocumented however. The following is a sample config for dvorak:

[look]
true_chr = "·"
false_chr = "·"
future_chr = "·"
grid_size = 2

[colors]
reached = "cyan"
todo = "magenta"
inactive = "light black"

[keybinds]
week_mode = "v"
global_week_mode = "V"

[keybinds.grid]
up = "n"
down = "t"
left = "h"
right = "s"

[keybinds.cursor]
up = "N"
down = "T"
left = "H"
right = "S"

@oppiliappan oppiliappan added the documentation Improvements or additions to documentation label May 13, 2021
@B4rc1
Copy link

B4rc1 commented Feb 7, 2022

Does not work on

❯ dijo --version
dijo 0.2.7
❯ cat ~/.config/dijo/config.toml
[look]
true_chr = "·"
false_chr = "·"
future_chr = "·"

[colors]
reached = "cyan"
todo = "magenta"
inactive = "light black"

[keybinds]
week_mode = "v"
global_week_mode = "V"

[keybinds.grid]
up = "r"
down = "t"
left = "d"
right = "n"

[keybinds.cursor]
up = "R"
down = "T"
left = "D"
right = "N"

looking at the code this is not implemented?

@salastro
Copy link
Contributor

I think as @B4rc1 mentioned, this does not actually work in the current version. Additionally, is it possible to remap the : key? I usually remap it to ; since this is quicker.

Tylryan added a commit to Tylryan/dijo that referenced this issue Dec 7, 2022
Should now be able to remap most keys including the ":" that puts the
user in command mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants