Skip to content

Conversation

@844196
Copy link
Owner

@844196 844196 commented Jul 21, 2025

% wk init -h

Usage:   wk init
Version: unknown

Description:

  Render the widget for zsh.

Options:

  -h, --help                - Show this help.                                                                       
  --leader        <KEY>     - Key to trigger the wk.                                                                
  --major-leader  <KEY>     - Key to trigger the wk major-prefix menu.                                              
  --major-prefix  <PREFIX>  - Prefix used for entries shown when major-leader is pressed.             (Default: "m")
  --bind-global             - Bind leader and major-leader even when the prompt buffer is not empty.                

Examples:

  eval "$(wk init)"                                                    Register the which-key widget without any key bindings.        
  eval "$(wk init --leader '^G')"                                      Bind the Ctrl+G as the leader key.                             
  eval "$(wk init --leader ' ' --major-leader ',' --major-prefix 'm')" Bind space as the leader key and comma as the major-leader key.
                                                                       The major-prefix "m" is used for the major menu.               

@844196 844196 self-assigned this Jul 21, 2025
@844196 844196 force-pushed the 844196/main/change-init-options branch from 708c641 to 35da574 Compare July 21, 2025 16:42
@844196 844196 merged commit c42edd9 into main Jul 21, 2025
2 checks passed
@844196 844196 deleted the 844196/main/change-init-options branch July 21, 2025 16:43
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.

1 participant