justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.73k stars 87 forks source link

add which-key-description-abbreviations #330

Open hans-d opened 2 years ago

hans-d commented 2 years ago

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.

justbur commented 2 years ago

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

hans-d commented 2 years ago

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: