1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-24 08:51:10 -08:00
Commit graph

661 commits

Author SHA1 Message Date
Justin Burkett
2f5661646b Version 3.3.1 2018-11-14 09:34:39 -05:00
Justin Burkett
43e3e3d764 Fix use of describe-prefix-bindings in which-key-show-standard-help
Use describe-prefix-bindings directly if we do not enter through
which-key-C-h-dispatch.

Fixes #198
2018-11-14 09:32:27 -05:00
Justin Burkett
ace569b65f Check for existence of buffer in which-key--popup-showing-p
Fixes #197
2018-11-08 10:21:07 -05:00
Justin Burkett
c938bbf8d4 Mention #130 in README 2018-08-28 11:44:32 -04:00
Justin Burkett
013cdb7259 Make Travis test on v26.1 2018-06-27 10:28:44 -04:00
Justin Burkett
ff79dfff66 Version 3.3.0 2018-06-21 15:38:47 -04:00
Justin Burkett
a4095e8ee6 Fix handling of duplicate (evil) bindings in show keymap 2018-06-08 08:51:48 -04:00
Justin Burkett
0dc4e84722 Use window-size-change-functions for detecting size changes
Fixes #193
2018-06-01 09:46:35 -04:00
Justin Burkett
2c915407e1 Add support for evil's auxiliary maps in show-keymap functions 2018-05-30 22:02:11 -04:00
Justin Burkett
4042f06564 Fix prefix bindings in which-key-show-major-mode 2018-05-30 21:45:26 -04:00
Justin Burkett
206be7a42b Fix behavior of f and t in evil operator map
f and t (also F and T) read characters manually, so the popup should not be
shown after these commands. This only applies if
which-key-show-operator-state-maps is non-nil.

Fixes #191
2018-05-22 10:11:15 -04:00
Justin Burkett
8a878de16d Version 3.2.0 2018-04-26 10:33:36 -04:00
Michał K
bc97659029 Fix and improve defcustoms 2018-03-21 11:31:52 +01:00
Justin Burkett
d19fe4e037 Fix switching to top-level from which-key-undo-key 2018-03-01 13:18:43 -05:00
Justin Burkett
437065886d Factor out which-key--this-command-keys function 2018-02-28 21:29:52 -05:00
Justin Burkett
013681a1e3 Fixes related to removal of which-key--current-prefix 2018-02-28 21:19:23 -05:00
Justin Burkett
0b2739a2be Fix display of meta bindings in which-key-show-keymap 2018-02-28 11:20:20 -05:00
Justin Burkett
3c05294dc6 Fix which-key--create-pages 2018-02-28 08:07:27 -05:00
Justin Burkett
ded908ec0b Remove which-key--current-prefix 2018-02-28 08:07:27 -05:00
Justin Burkett
e97253b052 Add prefix arg to which-key--get-current-bindings and ..
which-key--get-bindings
2018-02-28 08:07:27 -05:00
Justin Burkett
ed7aa66aad Remove a bunch of global variables
Remove need for which-key--using-top-level. Add prefix-title slot to
which-key--pages object.  Remove which-key--using-show-keymap. Remove
which-key--current-show-keymap-name. Remove
which-key--using-show-operator-keymap.
2018-02-28 08:06:30 -05:00
Justin Burkett
61e399f75f Add and use which-key--automatic-display 2018-02-27 20:30:07 -05:00
Justin Burkett
ab60391873 Use cl-struct to hold which-key pages 2018-02-27 09:06:30 -05:00
Justin Burkett
9dc8d3233b Add which-key-toggle-docstrings 2018-02-26 13:24:52 -05:00
Justin Burkett
f77d4210f6 Consolidate key binding collection into which-key--get-bindings 2018-02-26 13:21:17 -05:00
Justin Burkett
f251541021 Refactor show keymap functions 2018-02-26 11:52:49 -05:00
Justin Burkett
0f80d0f95c Use symbol at point in whow keymap functions 2018-02-25 22:51:11 -05:00
Justin Burkett
7da9f8caf3 Fix which-key--show-keymap when no bidnings found
which-key--get-formatted-key-bindings takes a nil argument to mean look for
global bindings which is not what we want here.
2018-02-25 22:36:10 -05:00
Justin Burkett
b5f706398e Detect menu-items in which-key--get-keymap-bindings 2018-02-25 22:35:38 -05:00
Justin Burkett
2e53187307 Fix typo in previous commit 2018-02-24 16:35:16 -05:00
Justin Burkett
fd714bca14 Fix docstring of which-key--get-keymap-bindings 2018-02-24 16:33:13 -05:00
Justin Burkett
caa18b2086 Fix descriptions of keys involving meta when showing keymaps 2018-02-24 16:29:33 -05:00
Justin Burkett
ca991b0d3a Autoload the show keymap functions 2018-02-23 13:48:51 -05:00
Justin Burkett
506c34829c Add which-key-show-full-keymap
Command to show all bindings in a keymap recursively.

Add test for new which-key--get-keymap-bindings functionality.
2018-02-23 13:46:08 -05:00
Justin Burkett
6a4d2c2cc0 Extract which-key--ignore-keys-regexp and which-key-show-keymap-1 2018-02-23 13:32:19 -05:00
Justin Burkett
fce520f8af Improve which-key--format-and-replace
Do a better job with nil descriptions
2018-01-31 09:06:19 -05:00
Justin Burkett
e5db4b6256 Handle null description in which-key--propertize-description
Fixes #186
2018-01-31 09:02:55 -05:00
Justin Burkett
adc0d660ad Use safe version of propertize
Should fix #186
2018-01-31 08:58:15 -05:00
Justin Burkett
5493d22489 Fix description truncation when showing docstrings 2018-01-31 08:04:24 -05:00
Justin Burkett
0aae4c8634 Improve which-key-show-docstrings option
Add setting docstring-only to omit command names. Add which-key-docstring-face.

See #185
2018-01-31 07:46:17 -05:00
Justin Burkett
c71fbbbc3e Add option to show docstrings in which-key buffer
Implements a simple version of the suggestion in #185
2018-01-30 20:29:51 -05:00
Justin Burkett
1219622b75 Remove debugging message 2018-01-08 22:30:21 -05:00
Justin Burkett
1dd91df436 Implement #182
Allow single digit arg to be set after C-h
2018-01-08 22:26:05 -05:00
Justin Burkett
7559a79e95 Version 3.1.0 2018-01-08 20:19:10 -05:00
Justin Burkett
ef384e781e Fix and improve define-key based replacements
Check for equality of definition as well as the key sequence. Unless it's a
prefix binding, in which case only check the key sequence.

Make sure we apply kbd when looking up pseudo bindings.

Move the logic into which-key--get-pseudo-binding.
2017-12-17 22:16:24 -05:00
Justin Burkett
c7e5f766d1
Merge pull request #183 from tarsiiformes/silencio
Define which-key--current-key-list before using it
2017-12-17 13:17:13 -05:00
Jonas Bernoulli
cd8d24d024 Define which-key--current-key-list before using it
Actually move the definition of the caller which-key--pseudo-key
instead.
2017-12-17 18:57:03 +01:00
Justin Burkett
6247cb5e28 Simplify implementation of define-key based replacements
When a description is provided through define-key using a definition
like ("description" . def) place a additional binding in the map to a "pseudo
key" making it easy for which-key to find these descriptions on the fly and at
the right time (i.e., when the binding is active).

which-key-enable-extended-define-key must be enabled for this to have an
effect.
2017-12-16 22:11:59 -05:00
Justin Burkett
1694c6d179 Improve which-key--process-define-key-args
Specify Prefix Command as an explicit match string to cut down on false
positives.
2017-12-15 14:18:30 -05:00
Justin Burkett
7150aa9795 Announce which-key-enable-extended-define-key in README 2017-12-13 21:12:50 -05:00