Coder Social home page Coder Social logo

Comments (5)

Screwtapello avatar Screwtapello commented on June 12, 2024 1

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).

It only seems to show mappings that have been modified from the defaults

Technically, that's what a mapping is: a modification from the defaults. h isn't mapped to the "move left" command, it is the "move left" command.

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.

from kakoune.

dontlaugh avatar dontlaugh commented on June 12, 2024 1

Maybe the best output would be to dump the mappings as valid kakscript? Just a thought.

from kakoune.

krobelus avatar krobelus commented on June 12, 2024 1

for learning default mappings I used this command though it leaves some things to be desired (only works for normal mode).
I imagine it would be nice if there was a mechanical way to find out the meaning of a single key (whether mapped or not), something like Emacs' C-h k but it's not clear how it should work. I don't think :debug mappings is necessarily something for everyday use.
I agree the rhs should probably be included, should be easy to do

from kakoune.

dontlaugh avatar dontlaugh commented on June 12, 2024

h isn't mapped to the "move left" command, it is the "move left" command.

Indeed, this is what I was trying to express. It's one of the more mind-bending strokes of genius of this editor.

Technically, that's what a mapping is: a modification from the defaults.

True. And :debug mappings is already useful enough to show what's been modified. There should be a way to do that, come to think of it.

So maybe showing all the bindings might be best accomplished as an additional debug command called :debug all-keys or similar.

The display of the right hand side of the mapping is another little enhancement that would apply in either case.

from kakoune.

dontlaugh avatar dontlaugh commented on June 12, 2024

I agree the rhs should probably be included, should be easy to do

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).

I imagine it would be nice if there was a mechanical way to find out the meaning of a single key (whether mapped or not), something like Emacs' C-h k

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 :debug mappings. This issue can remain open and we can keep brainstorming on improvements to interactive feedback on current key mappings. #5152

from kakoune.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.