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

593 commits

Author SHA1 Message Date
Justin Burkett
32dad608ab Merge pull request #171 from wyuenho/patch-1
Customize which-key-sort-order with list
2017-05-21 08:49:54 -04:00
Jimmy Yuen Ho Wong
1c280772c3 Customize which-key-sort-order with list
This will display a list the user can choose from in customize instead of having them to type
2017-05-20 23:46:12 +01:00
Justin Burkett
c61e63e971 Adhere to 80 chars per column 2017-05-19 17:55:13 -04:00
Justin Burkett
5dcf5d9b06 Use regexp-opt for regexps
* which-key.el (which-key--get-keymap-bindings): Update
2017-05-19 17:53:43 -04:00
Justin Burkett
23ca489988 Fixup previous commit
* which-key.el (which-key--compute-binding): Need to copy name of remapped
  command

Fixes #170
2017-05-19 17:38:02 -04:00
Justin Burkett
e8db06ec42 Add which-key-compute-remaps option
* which-key.el (which-key--compute-binding): Add
(which-key--get-current-bindings): Modify to use prev function
(which-key-compute-remaps): Add option

Fixes #169
2017-05-19 15:48:56 -04:00
Justin Burkett
bd20f56ad9 Version 3.0 2017-05-16 08:37:06 -04:00
Justin Burkett
20146731c2 Prepare for ELPA release
Update min emacs version to 24.4 to remove backported functions. Remove outdated
comments.
2017-05-16 08:34:44 -04:00
Justin Burkett
806ef24390 Add .cask to gitignore 2017-05-16 08:34:13 -04:00
Justin Burkett
9a97df02c2 Update emacs versions for Travis 2017-05-16 07:35:36 -04:00
Justin Burkett
9d2ba1bcba Make -init-buffer-hook a custom var 2017-05-01 08:44:32 -04:00
Justin Burkett
cd43104579 Add option to show transient maps
Set which-key-show-transient-maps to a non-nil value to use this feature.

When a transient map is active and it is not a hydra, show the keys from the
map.

Fixes #164
2017-04-26 20:57:49 -04:00
Justin Burkett
2e855196c7 Improve which-key--any-match-p 2017-04-18 08:01:40 -04:00
Justin Burkett
bb30f56868 Fix customize type for replacement-alist
Ref #165
2017-04-07 09:05:10 -04:00
Justin Burkett
3c7ecc69d4 Fix replacement of keys when prefix is nil
The prefix is nil at the top-level keymap

Fixes #163
2017-03-15 13:55:01 -04:00
Justin Burkett
0d56e4369b Fix handling of key ranges ("a .. d")
When the last key in the key sequence is a range, extract the whole range
instead of just the final key.

Fixes #161
2017-02-09 10:29:30 -05:00
Justin Burkett
ea6f1dc5aa Version 2.0
Increased major version for replacement list changes
2017-02-07 10:55:14 -05:00
Justin Burkett
49ab7afd93 Add which-key-show-prefix 'mode-line option
See #157
2016-12-22 15:21:37 -05:00
Justin Burkett
a3a989e804 Update README 2016-12-20 16:03:21 -05:00
Justin Burkett
47c6f914c3 Add which-key-max-display-columns
See #157
2016-12-20 15:56:35 -05:00
Justin Burkett
07ff661a0b Remove unused variable 2016-12-15 09:58:32 -05:00
Justin Burkett
3cd9457f96 Fix #156 by allowing multiple replacements
Add which-key-allow-multiple-replacements which can be set to allow multiple
replacements from which-key-replacement-alist to apply to a key binding.

Switch from using assoc-default to find replacements to
which-key--get-replacements.

Adjusts tests and add a new one for multiple replacements.
2016-12-15 09:53:20 -05:00
Justin Burkett
f0eb183af6 Tweak TOC in README and fix a link 2016-12-12 09:04:44 -05:00
Justin Burkett
c34cfd69a9 Add a missing type declaration 2016-12-07 10:14:08 -05:00
Justin Burkett
786d800f61 Prevent display from occurring twice in a row
Found some cases where this could happen with a secondary idle delay.
2016-12-05 14:29:22 -05:00
Justin Burkett
cf698ea25e Add basic timing facility for debugging. 2016-12-05 13:55:25 -05:00
Justin Burkett
22928eeffa Remove old obsolete variables/functions 2016-12-01 07:42:32 -05:00
Justin Burkett
474d5bfaa6 Add some docstrings 2016-12-01 07:39:19 -05:00
Justin Burkett
0724e62ce5 Remove some unused functions 2016-12-01 07:39:03 -05:00
Justin Burkett
73dd5ad882 Fixup last commit part 2 2016-11-30 19:09:20 -05:00
Justin Burkett
1b8c1e5490 Fixup last commit 2016-11-30 19:03:56 -05:00
Justin Burkett
8f4a21855f Support functions in -add-key-based-replacements 2016-11-30 19:01:07 -05:00
Justin Burkett
0498eeab1f Fix links to users in README 2016-11-30 08:58:53 -05:00
Justin Burkett
b3f686dd6c Add @pdcawley's example to README 2016-11-30 08:56:05 -05:00
Justin Burkett
b57b3cb342 Add test for #155 2016-11-30 08:40:19 -05:00
Justin Burkett
880a38ef92 Fix bug in last commit
The regexp-quote docstring is misleading since (regexp-quote "SPC x") will match
"SPC x c". Added back the beginning and end markers in the regexp.
2016-11-30 07:03:52 -05:00
Justin Burkett
a2b3383f49 Quote regexp in -add-key-based-replacements
Should fix #154
2016-11-29 21:29:32 -05:00
Justin Burkett
9110eebc36 Fix a README link 2016-11-29 13:20:00 -05:00
Justin Burkett
2b78bdd26d Normalize key sequences from -add-key-based-replacements 2016-11-29 08:38:21 -05:00
Justin Burkett
a32ec0c45a Simplify --format-and-replace 2016-11-28 10:10:18 -05:00
Justin Burkett
0ac09351c4 Fix use of function in -replacement-alist
Wasn't actually deleting nil results
2016-11-25 09:00:25 -05:00
Justin Burkett
3c4ca65395 Don't use case-fold-search in --maybe-replace
See https://github.com/syl20bnr/spacemacs/issues/7837#issuecomment-262938480
2016-11-25 07:56:06 -05:00
Justin Burkett
b5a9d7d1ce Update test 2016-11-22 07:01:09 -05:00
Justin Burkett
19186917eb Consolidate replacements into one alist
New list is which-key-replacement-alist. See docstring.

The following lists are deprecated. Some basic backwards compatibility is
attempted, but more complicated configs will likely break.

which-key-key-replacement-alist
which-key-key-based-description-replacement-alist
which-key-description-replacement-alist

which-key-binding-filter-function was removed, since it's functionality is
mostly replaced by which-key-replacement-alist

Updated README
2016-11-21 23:03:12 -05:00
Justin Burkett
17f4b00692 Move sort after filter op in --get-formatted-key-bindings 2016-11-06 12:50:55 -05:00
Justin Burkett
4b01b44c67 Update comment in --show-buffer-side-window for prior change 2016-10-31 13:56:57 -04:00
Justin Burkett
fc7482e4a2 Remove use of display-buffer-in-major-side-window
According to emacs bug #24828, this is an internal function and should
not be used. Following the advice from that report, switch to
display-buffer-in-side-window and add an option for the user to specify
the slot value for that function.

Fixes #146
2016-10-31 13:48:14 -04:00
Justin Burkett
ee121d08bf Add which-key-binding-filter-function
Can be used to arbitrarily manipulate key bindings, including deleting
them, before they are processed by which-key. See docstring for usage.

Fixes #152
https://github.com/syl20bnr/spacemacs/issues/7582
2016-10-29 09:18:51 -04:00
Justin Burkett
5abc8cfd33 Add sort option -prefix-then-key-order-reverse
Fixes #145
2016-10-29 08:35:54 -04:00
Justin Burkett
c678b93706 Add global option for how to sort case
which-key-sort-uppercase-first (default t)

See #145
2016-10-29 08:35:54 -04:00