-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Keybinding configuration #21
Comments
At the moment they are not configurable, although this is high on the list! I was thinking to keep this out of the config file and maybe in a keybindings file? The README should not be too complicated, but perhaps it could link to the wiki or something on how to configure keys (once that is implemented). |
Ok. I also prefer to configure keybindings in a file of its own. The wiki should be the right place for this indeed (provided it's linked to from the README#configure section) Thanks for replying fast and keep up the good work :-) |
Yeah.. I was thinking something along the lines of:
anything with # is ignored, and the default will be used. A fresh keybindings file will contain only a bunch of # statements to no effect. |
Hi,
I pushed a bunch of changes that allows keybindings to be configured in
~/.config/astroid/keybindings
the format is as discussed:
```
thread_index.next_thread=j
...
```
it is possible to set up several aliases for the same target, by listing
it several times. All original bindings and aliases for the target are
removed when it is manually configured.
Some special keys are still missing (for the user bindings), let me know
if you are missing something.
You can figure out all the target names by looking for `register_key (...)`
in the code or observe the debug output when you press a key.
|
I'm going to test this as soon as I'm able to build it again :-) see https://aur.archlinux.org/packages/astroid/#news Then I'll edit the wiki to start a bit of documentation on that. Thanks |
ok, thanks for testing. please use github for issues. what compiler are Hugo Roy writes on December 31, 2015 18:15:
|
fstream ambigiuty should be fixed! happy new year :) Gaute Hope writes on December 31, 2015 18:46:
|
How can I use the Tab key? |
Hugo Roy writes on January 2, 2016 21:42:
I was planning to support Tab and friends (like Down) in keybindings.cc, |
Short answer: Not implemented yet for custom keybindings. |
I'm having a hard time to set my own keybindings right now. It doesn't seem possible to override the defaults (i.e. if a key is already set to something then it can't be defined by the user for something else?) For instance, this doesn't work:
Also, why can't a key be more than once, if the context is different. For instance consider:
Output:
|
Hugo Roy writes on January 3, 2016 12:29:
First; I updated the error so that it is possible to know which key it In this case it is conflicting with Secondly, this is a choice, since the other key-target would be
There was a bug in how I scanned for user-aliases, this should be fixed. |
Gaute Hope writes on January 3, 2016 20:17:
I pushed a change which now allows this behavior, existing (non |
Yes, I think this is the most useful :-) Thanks |
I just pushed f19b6f2 and 5b00aaa which allow Unbound keys, this means that there are now four new targets which are not reachable by default, but can be accessed through the keybindings file. These are forward_inline and forward_attached, which is usually
(if you overwrite the existing keybinding for forward, the config option |
Arf, now I can't launch astroid any longer:
Removing the #comment works, but this is unfortunate :) |
Err, yeah. Should split on # too, move the comment to a new line untill we Den lørdag 23. januar 2016 skrev Hugo Roy notifications@github.com
|
Gaute Hope writes on January 23, 2016 16:38:
Should be fixed now in: c357871. |
There is a new get_keys.py script which gathers all the keybindings and The wiki has been updated. |
The README isn't exactly explicit regarding what and how to configure astroid.
https://github.com/gauteh/astroid/blob/master/README.md#configuration
For instance, how can the user modify the keybindings (e.g. Tab and Shift-Tab instead of b and B)? How can the user change the order of messages in the Thread Index List View (e.g. from older on top to newer on bottom)?
Some guidance would be nice :-)
Thanks
The text was updated successfully, but these errors were encountered: