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

736 commits

Author SHA1 Message Date
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
Justin Burkett
a6a9f352e7 Merge pull request #149 from rdotdk/patch-1
fix link
2016-10-17 21:35:49 -04:00
Hariharan R
431f29aee4 fix link 2016-10-16 02:18:23 -04:00
Justin Burkett
5b3614643e Fix test for recent prefix-name change 2016-10-05 16:32:29 -04:00
Justin Burkett
fe73d0849c Make 458c8d9 backwards compatible
The prefix titles need to be in cons cells to stay consistent with how
they were used before.
2016-10-05 14:54:49 -04:00
Justin Burkett
94b2c7b884 Move a function for the compiler 2016-10-05 14:42:10 -04:00
Justin Burkett
458c8d97fb Consolidate prefix names and key-based replacements
Make obsolete several redundant functions, the most important of which
is which-key-declare-prefixes. This is just an alias for
which-key-add-key-based-replacements now. The additional functionality
that declare-prefixes had (for declaring prefix titles) is now rolled
into the add-key-based-replacements function. See that functions doc
string.
2016-10-05 14:24:11 -04:00
Justin Burkett
d939e06fda Fix -maybe-get-prefix-title use of key-binding
key-binding doesn't work with all forms of key strings.

See #143
2016-10-04 16:48:40 -04:00