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

add config with custom keyboard shortcuts #35

Open
arozwalak opened this issue Jul 25, 2015 · 4 comments
Open

add config with custom keyboard shortcuts #35

arozwalak opened this issue Jul 25, 2015 · 4 comments

Comments

@arozwalak
Copy link

I'm using git through screen where Ctrl-a is special combination to switch to screen options. So this way I can't use most of the keys from git-commander

@arozwalak arozwalak changed the title add config with custom keyboard shortcust add config with custom keyboard shortcuts Jul 25, 2015
@golbin
Copy link
Owner

golbin commented Jul 27, 2015

Actually I faced the problem too. And C-c is also a problem. :-(

So, I've thinking which is better; Adding config or Change default keys.

What do you think?

@jzsfkzm
Copy link
Contributor

jzsfkzm commented Jul 29, 2015

Adding the ability to configure keys would be great! With custom key mapping you could also provide different basic flavours of key setups, I'm thinking about vi-style paging with C-f/b vs. mc-style paging with PageUp/Down. I'd be happy to work on this, shall I?

@arozwalak
Copy link
Author

Yes, I think that configurable keys would be better choice so everyone can do it on their way.

@golbin
Copy link
Owner

golbin commented Jul 29, 2015

@jzsfkzm @arozwalak I see. Actually, if we make this configurable, then easy to change the default keys. Thanks!

jzsfkzm added a commit to jzsfkzm/git-commander that referenced this issue Aug 3, 2015
The 'vi' one is the default one. To use 'mc' you will need to create a config file under ~/.config/git-commander/config.json with following content:

{
    "keys": "mc"
}

Also you'll need to have an environment variable called GIT_COMMANDER_CONFIG set to the absolute path of the above config file.
jzsfkzm added a commit to jzsfkzm/git-commander that referenced this issue Aug 4, 2015
jzsfkzm added a commit to jzsfkzm/git-commander that referenced this issue Aug 4, 2015
jzsfkzm added a commit to jzsfkzm/git-commander that referenced this issue Aug 4, 2015
jzsfkzm added a commit to jzsfkzm/git-commander that referenced this issue Aug 10, 2015
golbin added a commit that referenced this issue Aug 12, 2015
golbin added a commit that referenced this issue Aug 13, 2015
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