Skip to content

Releases: folke/which-key.nvim

v3.11.0

20 Jul 22:31
c4689ab
Compare
Choose a tag to compare

3.11.0 (2024-07-20)

Features

  • icons: icon for grug-far (b2a2a0c)
  • state: detect recursion by users mapping wk manually. Closes #761 (55fa07f)
  • view: expand recursively. Closes #767 (5ae87af)

Bug Fixes

  • config: disable wk by default for insert/command mode (9d2b2e7)
  • config: more checks in validate (bdcc429)
  • mappings: preset descriptions should not override existing keymap descriptions. Fixes #769 (82d628f)
  • state: don't feed count in insert mode. Fixes #770 (63690ff)
  • util: better <nop> check. Fixes #766 (b7b3bd1)
  • view: dont set title when no border. Fixes #764 (6e61b09)

Performance Improvements

  • prevent expanding nodes when not needed (78cc92c)

v3.10.0

18 Jul 18:03
8600b00
Compare
Choose a tag to compare

3.10.0 (2024-07-18)

Features

  • view: expand all nodes by default when filter.global = false (c168905)

Bug Fixes

  • buf: always use nowait. Fixes #755 (ae1a235)
  • buf: early exit to determine if a trigger is safe to create. Fixes #754 (27e4716)
  • icons: added frontier pattern for ai (#760) (6fe0657)
  • list_contains doesn't exists in Neovim < 0.10. Fixes #758 (7e4eae8)
  • node: allow custom mappings to override proxy/plugin/expand mappings (9820900)
  • node: is_local check now also includes children (fdd27f9)
  • registers: don't try to get +* registers when no clipboard is available. Fixes #754 (ae4ec03)
  • state: always honor defer. Fixes #690 (c512d13)
  • state: redraw cursor before getchar (cf6cbf2)
  • triggers: prevent creating triggers for single upper-case alpha keys expect for Z. Fixes #756 (d19fa07)

v3.9.0

18 Jul 08:48
ef7046a
Compare
Choose a tag to compare

3.9.0 (2024-07-18)

Features

  • config: simplified config. Some options are now deprecated (8ddf2da)
  • view: show and expand localleader mappings with filter.global = false (ed5f762)

Bug Fixes

  • ui: remove deprecated opts.layout.align option. (wasn't used). Closes #752 (db32ac6)

v3.8.0

17 Jul 21:34
2af3dc5
Compare
Choose a tag to compare

3.8.0 (2024-07-17)

Features

  • mappings: added health check for invalid modes (640724a)

Bug Fixes

  • buf: never create proxy/plugin mappings when a keymap exists. Fixes #738 (b4c4e36)
  • registers: use x instead of v (#742) (5c3b3e8)
  • state: schedule redraw. Fixes #740 (09f21a1)
  • triggers: allow overriding keymaps with empty rhs or <Nop>. Fixes #748 (843a93f)
  • triggers: make sure no keymaps exists for triggers (e8b454f)
  • typo: replace 'exras' for 'extras' in README. (#745) (af48cdc)

v3.7.0

17 Jul 10:49
df77add
Compare
Choose a tag to compare

3.7.0 (2024-07-17)

Features

  • added expand property to create dynamic mappings. An example for buf and win is included (02f6e6f)
  • proxy mappings (c3cfc2b)
  • state: allow defering on certain operators. Closes #733 (984d930)

Bug Fixes

  • buf: create triggers for xo anyway. Fixes #728 (96b2e93)
  • icons: added frontier pattern for git. Fixes #727 (bb4e82b)
  • state: dont popup when switching between v and V mode. Fixes #729 (8ddb527)
  • view: always show a group as a group (96a9eb3)
  • view: empty icons (e2cacc6)

v3.6.0

16 Jul 16:41
a1770d2
Compare
Choose a tag to compare

3.6.0 (2024-07-16)

Features

  • added icons for <D mappings (aaf71ab)
  • added option to disable all mapping icons. Fixes #721 (33f6ac0)
  • make which-key work without setup or calling add/register (9ca5f4a)
  • presets: added some missing mappings (6e1b3f2)
  • state: improve trigger/mode logic. Fixes #715 (3617e47)

Bug Fixes

  • config: replacement for plug mappings (495f9d9)
  • icons: get icons from parent nodes when needed (3f0a7ed)
  • icons: use nerdfont symbol for BS. Fixes #722 (18c1ff5)
  • mode: never create triggers for xo mode (15d3a70)
  • presets: motions in normal mode (e2ffc26)
  • tmp fix for op mode (91641e2)
  • view: fix format for keymaps with 3+ keys (#723) (0db7896)

v3.5.0

15 Jul 21:28
b55a568
Compare
Choose a tag to compare

3.5.0 (2024-07-15)

Features

  • api: using wk.show() always assumes you want to see the group, and not the actual mapping in case of overlap. Fixes #714 (f5067d2)

Bug Fixes

  • state: attach on BufNew as well. Fixes #681 (0f58176)
  • state: make sure mode always exists even when not safe. See #681 (7915964)

Performance Improvements

  • plugin: only expand plugins when needed (1fcfc72)
  • view: set buf/win opts with eventignore (e81e55b)

v3.4.0

15 Jul 13:48
6e5b5b0
Compare
Choose a tag to compare

3.4.0 (2024-07-15)

Features

  • added icons for function keys (9222280)
  • mode: allow certain modes to start hidden and only show after keypress. See #690 (b4fa48f)
  • presets: added gw (09b80a6)
  • presets: better padding defaults for helix preset (4c36b9b)
  • presets: increase default height for helix (df0ad20)
  • simplified/documented/fixed mappings sorting. Closes #694 (eb73f7c)
  • state: skip mouse keys in debug (5f85b77)
  • ui: show keys/help in an overlay and added scrolling hint (50b2c43)
  • view: get parent icon if possible (b9de927)

Bug Fixes

  • buf: always detach " when executing keys. Fixes #689 (d36f722)
  • config: set expand=0 by default. Fixes #693 (89434aa)
  • config: warn when deprecated config options were used. Fixes #696 (81413ef)
  • health: move deprecated option check to health (af7a30f)
  • mappings: allow creating keymaps without desc. Fixes #695 (c442aaa)
  • plugins: add existing keymaps to plugin view. Fixes #681 (26f6fd2)
  • presets: don't override title setting for classic. See #649 (9a53c1f)
  • presets: shorter descriptions (20600e4)
  • state: always do full update on BufReadPost since buffer-local keymaps would be deleted. Fixes #709 (6068887)
  • state: don't show when coming from cmdline mode. Fixes #692 (8cba66b)
  • state: honor timeoutlen and nowait. Fixes #648. Closes #697 (80f20ee)
  • state: properly disable which-key when recording macros. Fixes #702 (b506275)
  • state: scrolling (dce9167)
  • tree: rawget for existing plugin node children (c77cda8)
  • util: when no clipboard provider exists, use the " register as default. Fixes #687 (d077a3f)
  • view: disable footer on Neovim < 0.10 (6d544a4)
  • view: ensure highlights get set for title padding (#684) (2e4f7af)
  • view: hide existing title/footer when no trail (4f589a1)
  • view: include group keymaps in expand results. See #682 (39e703c)
  • view: overlap protection should keep at least 4 lines (0d89475)
  • view: padding & column spacing. Fixes #704 (11eec49)
  • view: spacing when more than one box (89568f3)
  • view: special handling of &lt;NL&gt;/<C-J>. Fixes #706 (f8c91b2)

v3.3.0

14 Jul 05:51
4d5b895
Compare
Choose a tag to compare

3.3.0 (2024-07-14)

Features

  • expand: allow expand to be a function. Closes #670 (dfaa10c)
  • mappings: mapping desc and icon can now be a function that is evaluated when which-key is show. Fixes #666 (c634af1)
  • mappings: opts.filter to exclude certain mappings from showing up in which-key. (763ea00)
  • view: add operator to trail in op mode (5a6eaaa)
  • view: when in visual mode, propagate esc. See #656 (30ef44a)

Bug Fixes

  • default preset (38987d3)
  • mappings: don't show &lt;SNR&gt; mappings (d700244)
  • presets: max 1 column in helix mode. Fixes #665 (b2a6910)
  • presets: shorter descriptions (9a73d6a)
  • state: cooldown till next tick when not safe to open which-key. Fixes #672 (bdf3b27)
  • util: nt mode should map to n (969afc9)
  • view: set nowrap for the which-key window (6e1c098)
  • view: set winhl groups. Fixes #661 (baff8ea)

v3.2.0

13 Jul 16:23
b695114
Compare
Choose a tag to compare

3.2.0 (2024-07-13)

Features

  • added opts.debug that writes to wk.log in the current directory (c23df71)
  • hydra mode. will document later (65f2e72)
  • icons: add telescope icon (#643) (fca3d9e)

Bug Fixes

  • layout stuff (7423096)
  • mappings: always use mapping even when it's creating a keymap. Fixes #637 (2d744cb)
  • mappings: make replace_keycodes default to false in v1 spec (6ec0a1e)
  • state: dont start which-key during dot repeat. Fixes #636 (5971ecd)
  • state: dont start which-key more than once during the same tick in xo mode. Fixes #635 (0218fce)
  • state: dont start wk when chars are pending. Fixes #658. Fixes #655. Fixes #648 (877ce16)
  • state: only hide on focus lost when still hidden after 1s. Fixes #638 (649a51b)
  • types: spec field types (#645) (c6ffb1c)
  • util: set local window opts for notify. Fixes #641 (63f2112)
  • view: check for real overlap instead of just row overlap. See #649 (0427e91)
  • view: disable folds. Fixes #99 (6860e3b)