Replies: 7 comments 10 replies
-
It was an aesthetic choice, to go with the Quick example: https://support.microsoft.com/en-us/office/keyboard-shortcuts-in-word-95ef89dd-7142-4b50-afb2-f762f663ceb2 |
Beta Was this translation helpful? Give feedback.
-
Please re-open. The MS resource is consistent, visidata resources are not. On Visidata, case is sensitive when distinguishing between It should be:
or
|
Beta Was this translation helpful? Give feedback.
-
BTW @anjakefala, I'm trying to create an Anki deck for visidata keyboard shortcuts. |
Beta Was this translation helpful? Give feedback.
-
I might be able help. Yesterday, I tested converting the cheat sheet into an Anki deck, and based on the experience worked on the manpage today. I _think_ I have the shortcuts:
- in unambiguous comma-delimited sequences with special keys spelled out:
<kbd>z,Shift+Y</kbd> yank
- they are tagged with their type
visidata::row::editing
- they are broken into "basic" and "advanced" TSVs.
https://reagle.org/joseph/2023/03/visidata-commands-mnemonics-basic.tsv
https://reagle.org/joseph/2023/03/visidata-commands-mnemonics-advanced.tsv
This format could be convert to "unix style" (e.g., `zY`) programmatically, for use in the manpage if that's desired. (Though I'm obviously missing subsection and other comments, and no doubt have bugs and such.)
Ideally, this data would be extractable from the source code and used to generate documentation programmatically. Or perhaps in a TSV/markdown/RestructureText document that can generate a manpage or other documentation? I use markdown/pandoc, but I'm not familiar with any of this app/docs toolchain stuff.
—Joseph
|
Beta Was this translation helpful? Give feedback.
-
My help strings are from the man page. My time was spent on organizing and translating the key sequences into standard format. (Also, adding a few mnemonics.) I think that’ll suffice for the SRL deck. Could you point me to the code with the help strings and shortcuts? Or are they spread throughout the code? |
Beta Was this translation helpful? Give feedback.
-
I was looking around at style guides and see lots of variations, and then lots of inconsistencies in implementation. (And I find little about how to do key sequences in Windows-style.) I was also looking at the visidata source for guidance, but I'm confused there too. In this example I think
I'm most familiar with Sublime Text's keybinding syntax, which is fairly well specified and I use weekly. I decided that's what I'm going to use for the Anki deck for now. I'm going to work through the deck this week, add mnemonics and tweaks where apt. If it becomes possible to have a TSV of extracted specifications from the code, I might be of help on a documentation workflow (I'm somewhat familiar with |
Beta Was this translation helpful? Give feedback.
-
Emacs keybinding style for docs and tutorials would be |
Beta Was this translation helpful? Give feedback.
-
The Quick Reference Guide has inconsistent casing. Ordinary keys are case sensitive, but control keys are always capitalized? For example: 'g^C' . Not sure why?
Beta Was this translation helpful? Give feedback.
All reactions