spacemacs

Epidiah Ravachol 2023-04-06T01:15:28.267619Z

So, SPC x R has the very tantalizing label +Randomize in the which-key menu, but from there "There are no keys to show." Which is fine. I was just excited to randomize my text. But it did leave me with a question: Is there a convenient way to discover what added this (or things like it) to the which-key menu?

practicalli-johnny 2023-04-06T08:42:12.380209Z

SPC h d menu has commands for describing key bindings, variables, functions, etc The description should say which file something was described in

Epidiah Ravachol 2023-04-06T12:25:20.331189Z

Thank you! That's a very helpful menu to have!

Epidiah Ravachol 2023-04-06T13:38:24.088009Z

Ah, but in this case, I may have spoken too soon. It seems that since SPC x R is a prefix awaiting another key, I can't ask Spacemacs to describe the key directly.

practicalli-johnny 2023-04-06T14:54:04.864819Z

Curious. I did a search through the Spacemacs code and SPC x R is set a s a prefix (a which-key sub-menu) in layers/+spacemacs/spacemacs-defaults/keybindings.el but I have not found any commands that reside under that prefix (sub-menu) The SPC x R binding is also defined in the https://develop.spacemacs.org/layers/+tools/xclipboard/README.html, but I think the prefix is taking preceedence (or the xclipboard layer is not included by default) There are some default functions for randomising words and lines defined in layers/+spacemacs/spacemacs-defaults/funcs.el which should be available by default SPC SPC spacemacs/randomize-lines SPC SPC spacemacs/randomize-words

Epidiah Ravachol 2023-04-06T15:41:15.899949Z

Thank you, again. There's nothing pressing about the solution to the actual mystery. But these tools should help me solve future mysteries when they arise.