-
Notifications
You must be signed in to change notification settings - Fork 715
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
[REQUEST] add more details to :debug mappings
and/or provide an additional command that shows all bindings
#5150
Comments
It would definitely be helpful to have the right-hand-side of the mapping included in the debug output, even if only just for mappings that do not include a docstring (which is most of them).
Technically, that's what a mapping is: a modification from the defaults. On one hand, it might be nice to have better visibility on the current state of the system; on the other hand, Kakoune tries pretty hard to discourage people from building abstractions - all the mappings in your configuration should be ones you put there yourself, not introduced by a plugin. |
:debug mappings
:debug mappings
and/or provide an additional command that shows all bindings
Indeed, this is what I was trying to express. It's one of the more mind-bending strokes of genius of this editor.
True. And So maybe showing all the bindings might be best accomplished as an additional debug command called The display of the right hand side of the mapping is another little enhancement that would apply in either case. |
Maybe the best output would be to dump the mappings as valid kakscript? Just a thought. |
for learning default mappings I used this command though it leaves some things to be desired (only works for normal mode). |
If that's easy to do, that would probably be the highest impact change mentioned, even if the other things can't be done right now (output unchanged defaults, add docstrings to everything).
That would be great! It also sounds like something that could be made difficult due to implementation details I don't really understand. Since that's a really specific change, I will open a separate issue for just adding rhs to |
Feature
Information about current key mappings is available from
:debug mappings
. See #3383However, I think we should work towards printing some more info here. Ideally I'd like to see
Note: or maybe even a reconstruction of Kakscript that creates the mapping...
Here is the output of
:debug mappings
from a recent session. I am running master 8870c7eClick here for output
In my opinion, there are some issues with the current output:
Number 1 is an issue of discoverability. Kakoune's interactive documentation is very good, but it is also quite expansive.
:doc keys
is 700 lines of asciidoc, and that's not the only place keystrokes are defined. I think printing all the default bindings as well as whatever is currently dynamically loaded from kakrc/plugins would be really helpful.As for number 2, I understand why it happens. Here's my remapped movement (I use Colemak-DH layout):
I do not provide a
-docstring
. But what I have is a reasonable configuration, I think, because what's interesting about Kakoune's command language is thath
literally means "move left". It seems like there is enough information at runtime to recover the original docstring, or perhaps for this class of commands the docstring could be preserved somehow, since mapping a key toh
will always move left?For number 3, here's an example from my config that gets dynamically loaded for Go code
... and
:debug mappings
prints thisWhat if instead it printed something like this?
The text was updated successfully, but these errors were encountered: