Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

add which-key-description-abbreviations #330

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hans-d
Copy link
Contributor

@hans-d hans-d commented Dec 24, 2021

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
Copy link
Owner

justbur commented Jan 2, 2022

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

@hans-d
Copy link
Contributor Author

hans-d commented Jan 2, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants