helix
helix copied to clipboard
Added missing static commands to documentation
Working on it.
Did everything as it's supposed to be. Sorry for the inconvenience.
You think it would be better to create a separate doc page 2.4 for static commands? (i added a new section here)
Yeah the page will be quite long with static and typable commands together. Let's use separate pages
Done.
Hi @the-mikedavis I just wanted to check in on the pull request. If you have any more feedback, please let me know. Whenever you have a moment, could you please take a look and consider merging? I would really appreciate it.
Code-wise this looks good, just a note about the layout
Done.
(The CI failure is from master, not related to these changes)
Hey, just checking on again. Will this PR be merged?
Implementation looks good. I do wonder if we should emulate the command picker and also show default bindings here. While we already have a handwritten keymap docs it can be useful to see wether default bindings exist (and what they are) right away after finding a command here.One challenge with that is that bindings would be mode dependent I guess. I guess for now one putting the mode a command is mapped for in parenthesis could work. For example c-z (normal,select,insert),j (normal)
This would also cover some things missing from the keymaps docs (like c-z for suspend). I think often users can be familiar with a keybinding but may nit understand/know the bame/description (c-z is widely know, but the suspend command noch so much).
Thoughts @the-mikedavis
@pascalkuthe I could open another PR for that
Hmm yeah that's a good idea. See the reverse_map function in keymap.rs and the command_palette implementation in commands.rs for examples of how to that display is working in the command palette (<space>?). It would be better to introduce that change in one go (i.e. this PR): any new PRs that add commands between merging this PR and a follow-up would cause conflicts and CI failures.
@pascalkuthe @the-mikedavis Done.
I noticed an issue with special characters like ` or <> in keybinds. It's messing up the markdown. Is this a thing with generating webpages too? If that's the case, I really think not adding the keybinds is a better idea.
I could make docgen put a \ before them.
Added your suggestions, @the-mikedavis. I don't understand one thing though. Why are there duplicates? This one for example.
Can't reopen the PR for some reason. I'll open a new one