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

Key mapping/binding customization #33

Open
mnacamura opened this issue Apr 22, 2021 · 3 comments
Open

Key mapping/binding customization #33

mnacamura opened this issue Apr 22, 2021 · 3 comments
Labels
Config file stuff more stuffs for libconfig to handle

Comments

@mnacamura
Copy link

It would be nice if mandown implements navigation key binds like man has.
For example, g to go to top, G to go to bottom, etc.

@Titor8115
Copy link
Owner

Sorry for the late reply (been busy recently)
I'll try to implement them in next update or the one after.
I'm still deciding whether I should implement user custom key assignments or not. Do you think that would be nice to have or should I stick to the existing navigation key

@mnacamura
Copy link
Author

I think it would be nice to have the option.
Some people may want vi key binds, while others emacs or the like. Personally I like to keep consistent key binds with the other pager (in my case, less). Having the option would help a lot.

Second thought: it could be another viable strategy to let $PAGER control all navigation and mdn focuses only on rendering.

@Titor8115
Copy link
Owner

I think it would be nice to have the option.
Some people may want vi key binds, while others emacs or the like. Personally I like to keep consistent key binds with the other pager (in my case, less). Having the option would help a lot.

Second thought: it could be another viable strategy to let $PAGER control all navigation and mdn focuses only on rendering.

@mnacamura I just recently pushed the new version with config file support (only has indent in config file so far). Currently working on transferring raw coded configurations to be handled by libconfig. I'll add default key binding to the list of config file support(something like key_map = less; or key_map = man;).

About letting $PAGER to decide navigation, I feel like it would change significant portions of main.c and rendering parts of view.c in order to achieve that. So I don't think it would be a feature in near future, unfortunately.

@Titor8115 Titor8115 changed the title More key binds? Key mapping/binding customization Sep 14, 2021
@Titor8115 Titor8115 added the Config file stuff more stuffs for libconfig to handle label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Config file stuff more stuffs for libconfig to handle
Projects
None yet
Development

No branches or pull requests

2 participants