Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants