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
justbur
c493e0b4bb
Resize popup when frame resized
...
Fixes #139
2016-09-11 16:02:46 -04:00
Justin Burkett
ad9b0e43bc
Merge pull request #137 from tarsius/outlines
...
Follow conventions for section headers
2016-08-31 19:55:26 -04:00
Justin Burkett
df90df61b3
Merge pull request #136 from tarsius/fixup
...
Move definition of which-key--local-binding-p
2016-08-31 19:55:03 -04:00
Jonas Bernoulli
1c4bea2d09
Follow conventions for section headers
...
Doing so allows the use of `outline-minor-mode' makes it possible
to navigate sections similarly to how that is done in `org-mode'.
2016-09-01 01:26:10 +02:00
Jonas Bernoulli
fe21ce6f0b
Move definition of which-key--local-binding-p
...
It has to be defined after the inline functions which it uses.
2016-08-31 14:41:41 +02:00
Justin Burkett
1eace34a1f
Version 1.1.15
2016-08-17 11:17:45 -04:00
Justin Burkett
b7cce2d0a7
Add note about setting delay to zero
2016-08-17 11:17:16 -04:00
Justin Burkett
06444f300e
Fix minibuffer echo not displaying
...
See #133
2016-08-17 11:11:56 -04:00
justbur
979b984290
Version 1.1.14
...
Tagged wrong commit
2016-07-28 09:21:32 -04:00
justbur
c03f179e25
Disable hack for echo area
...
Seems to cause more problems (like completion commands sometimes being
overwritten) than it solves.
2016-07-28 09:17:19 -04:00
justbur
b7e1906dd6
Fix Makefile
2016-07-27 09:22:38 -04:00
justbur
eb4a6f6e25
Add allow-imprecise-window-fit option
...
Possible fix for #130
When enabled this option avoids the use of fit-window-to-buffer to
resize the popup. My profiling suggested that emacs was spending a lot
of time in this function (and hanging sometimes) with different fonts. I
noticed this with Roboto Mono on MSWindows, which should explain #130 .
2016-07-09 15:25:50 -04:00
justbur
9ec4b6a258
Explicitly set tab-width when collecting bindings
...
For some reason indent-tabs-mode doesn't use tabs with strange
tab-widths.
See https://github.com/syl20bnr/spacemacs/issues/6497
2016-07-06 15:16:40 -04:00
justbur
71b0b83a27
Fix previous commit
2016-07-05 09:05:47 -04:00
justbur
adfcd0e73b
Add whitelist and blacklist options
...
which-key-allow-regexps is a list of regexps that allow the popup when
one is matched
which-key-inhibit-regexps inhibits the popup when one regexp matches
The string matched against is the current key sequence as produced by
key-description.
Fixes #129
2016-07-05 08:58:40 -04:00
justbur
9184b1bcbf
Remove setup code
...
It's no longer necessary and makes changing echo-keystrokes annoying.
2016-06-17 08:42:18 -04:00
justbur
ff66d8abc7
Make current-prefix nil when not showing popup
2016-06-16 11:01:53 -04:00
justbur
6adadec740
Use sit-for instead of timer for delay functions
2016-06-16 10:10:51 -04:00
justbur
c2fb61f2f8
Fix arg to which-key-delay-functions
2016-06-14 21:45:10 -04:00
justbur
e4d61490e8
Redesign delayed keys implementation
...
Everything is controlled through which-key-delay-functions now.
Ref #128
2016-06-14 21:42:34 -04:00
justbur
12d2266d9d
Fix bug in previous commit
2016-06-09 22:39:47 -04:00
justbur
322cda0e78
Introduce delayed prefixes
...
One version of idea in #128 . This design is subject to change.
2016-06-09 22:37:11 -04:00
justbur
13316578c8
Bump version
2016-05-27 09:35:27 -04:00
justbur
d031bad7b6
Fix performance issue with secondary timer
...
The secondary timer option was restarting the timer every time through
the update function, which caused the cpu to max out. Adds a flag so
that the timer is only restarted when necessary.
Fixes #126
2016-05-27 09:31:35 -04:00
justbur
169c1ad725
Bump version
2016-05-26 11:19:02 -04:00
justbur
8fee7c168e
Fix --echo when echo-keystrokes nil
2016-05-26 11:16:43 -04:00
justbur
3018a537f5
Remove some unused code in comments
2016-05-24 21:37:52 -04:00
justbur
e8a66637c7
Change name of arg in define-key-recursively
...
Also clarify docstring
2016-05-24 12:44:50 -04:00
justbur
c6ad06c03d
New screenshots
2016-05-16 21:25:05 -04:00
justbur
1b611e9947
More cleanup of README
2016-05-16 21:18:59 -04:00