Comments (5)
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.
Maybe the best output would be to dump the mappings as valid kakscript? Just a thought.
from kakoune.
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.
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.
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)
- [QUESTION] Remote Events aync ?
- [BUG][CRASH] ctags-search crashes kakoune after trying to browse autocomplete options. HOT 2
- [BUG] %val{buflist} does not produce quoted output by default HOT 1
- [BUG] :w write paste wl-clipboard contents HOT 4
- [BUG] mv operation should not interfere with HOT 3
- [QUESTION] Text file busy make: *** [Makefile:181: install] Error 1 HOT 1
- [QUESTION] Cursor up/down navigation in soft-wrapped text (gj/gk in Vim) HOT 7
- Adding keybinding for `<c-/>` does not work HOT 2
- [BUG] Command completion stops to work when command is invoked in user-mode HOT 2
- [BUG] markdown highlighting cannot parse `` correctly
- [BUG] cannot use <ret> in *lint-output* buffer HOT 2
- [REQUEST] `close-daemonized-session` command HOT 4
- [BUG] Receiving `'vfork' is deprecated:` warnings while compiling Kakoune from source HOT 2
- [BUG] 2024.05.09 tests failing on Alpine Linux HOT 16
- [BUG] Tests failing on OpenBSD HOT 10
- [BUG] Files getting created when using autocomplete HOT 3
- [BUG] HOT 1
- [REQUEST] revert f26d4ea4 for putting tmux into background again HOT 7
- [BUG] Viewport motion no longer takes scrolloff into account
- [BUG] WhitespaceIndent face overridden by language highlighting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kakoune.