emacs-which-key icon indicating copy to clipboard operation
emacs-which-key copied to clipboard

add which-key-description-abbreviations

Open hans-d opened this issue 2 years ago • 2 comments

A list of abbreviations to use when the key description is too long. Will be applied before the text is truncated. Replacements are done in sequence, until all replacements are applied or if the text is below `which-key-max-description-length'

(C) assignment process has been completed, this PR will be submitted as update.

hans-d avatar Dec 24 '21 22:12 hans-d

Can you give an example config for this? It's not immediately clear to me why this is necessary.

justbur avatar Jan 02 '22 04:01 justbur

Example:

  (customize-set-variable 'which-key-description-abbreviations
			  '(("window" . "wnd")))

which-key lives at the bottom of my screen. In case of columns that get truncated, the most interesting bits of the command live in the parts that get truncated. And sometimes I work on a laptop with a smaller screen Eg With max-descriptive-length and min-column-description-width bot set to 20:

  • shrink-window-if-lar..., is now `shrink-wnd-if-larger...'
  • balance-windows remanins still balance-windows

hans-d avatar Jan 02 '22 08:01 hans-d