1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-23 16:30:46 -08:00
Commit graph

722 commits

Author SHA1 Message Date
Daniel Mendler
3908719ff2
simplify pseudo key 2020-12-15 23:58:39 +01:00
BlaCk_Void
ca268fd313
REAMDE code's Number of parentheses pairs (#270) 2020-11-12 20:22:08 -05:00
Justin Burkett
c011b26819 Add tests for keymap-based-bindings 2020-10-19 11:15:35 -04:00
Justin Burkett
427c3f4a53 Clarify README's description of keymap-based replacement 2020-10-18 15:34:53 -04:00
Justin Burkett
ae59b7edb0 Version 3.5.0 2020-09-08 19:01:44 -04:00
Justin Burkett
5b37abcbe7 Fix which-key--next-page-hint
prefix-keys might be a vector.

Fixes #265
2020-09-08 18:59:30 -04:00
Justin Burkett
a70fc16adc Hide paging hint when prefix is help-char
We can't do paging in this case.
2020-09-08 14:18:21 -04:00
Justin Burkett
d794c4a0af Improve keymap-based-replacement description in README
Ref #263
2020-09-04 16:07:31 -04:00
Justin Burkett
2b10b8e77d Remove use of focus-{in,out}-hook
Fix #259 #260 #262
2020-09-01 21:35:43 -04:00
Justin Burkett
e5543269fc Remove testing badge from README
Github integrates the results into the interface already, and it doesn't seem to
work.
2020-08-28 10:27:24 -04:00
Justin Burkett
e048b2ae6b Stop testing against v24.5
It's old enough now
2020-08-28 10:24:31 -04:00
Justin Burkett
ebb4e92b3c Add which-key-add-keymap-based-replacements
This is an alternative to advising define-key using
which-key-enable-extended-define-key, but functions the same beneath the
surface.

Ref #226 #261
2020-08-28 10:17:40 -04:00
Rudi Grinberg
e48e190a75
Fix #257 (#258)
* Add test for #257

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

* Fix #257

Explicitly distinguish between replacing with `nil` and not replacing at
all.

I'm also simplifying the code by making all the branches more explicit.
This is a little longer, but makes all the clauses obvious.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-08-17 19:58:31 -04:00
Rudi Grinberg
3642c11d5e Speed up which-key--maybe-replace
The first optimization is avoiding the intermediate list created by
append. Instead we just iterate over the two lists in turn

The second opimitization occurs where
which-key-allow-multiple-replacements is nil, in which case we can stop
the iteration once we've found a replacement

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-07-21 15:27:24 -04:00
Justin Burkett
ce25fb2600 Add basic PR template 2020-07-21 10:18:05 -04:00
N V
8f2427a69b
Fix which-key--propertize-description use make-text-button return value (#249)
As of:

7ac79872ae

make-text-button no longer modifies a string when it is passed as the
first argument. which-key--propertize-description relied on the mutation
of the string argument. Using the return value of make-text-button will
return the propertized string with both the new and old behavior.

Fixes #248
2020-07-01 22:19:37 -04:00
Justin Burkett
8b49ae978c Fix last commit 2020-02-16 18:22:45 -05:00
Justin Burkett
7bc87e0f93 Test once a month 2020-02-16 13:54:20 -05:00
Justin Burkett
9550707d52 Merge remote-tracking branch 'hlissner/patch-1' 2020-02-16 13:50:34 -05:00
Yunhao Zhao
f9d8d49d1f
Fix prefix argument for which-key-show-major-mode (#239) 2020-02-16 08:50:11 -05:00
Justin Burkett
7b068f3e95 Fix case sorting in alpha sort functions 2020-02-12 09:23:18 -05:00
Justin Burkett
9ff54fffbb Fix short windows being resized
fit-window-to-buffer defaults to a min height of 4. For some reason, the order
in which fit-window-to-buffer is called in display-buffer-in-side-window seems
to have changed. This makes the order not matter.
2020-02-11 21:48:57 -05:00
Justin Burkett
6e4b4c5419 Simplify last commit 2020-02-07 22:40:28 -05:00
Justin Burkett
d5a42732a6 Replace use of xor
Apparently this is a recent function
2020-02-07 22:34:41 -05:00
Justin Burkett
a135e6f2c8 Change name of workflow 2020-02-07 22:32:41 -05:00
Justin Burkett
90d10a8fb3 Fix sorting of keys and add test
Fixes #233
2020-02-07 22:29:40 -05:00
Justin Burkett
c4b7aaefc1 Revive Cask file 2020-02-07 10:02:52 -05:00
Justin Burkett
cf44641485 Replace travis badge with github workflow badge 2020-02-06 21:57:18 -05:00
Justin Burkett
190310d59e Disable travis and cask 2020-02-06 21:54:34 -05:00
Justin Burkett
12310164a4 More workflow fixes 2020-02-06 21:50:04 -05:00
Justin Burkett
3401440714 Fix workflow 2020-02-06 21:48:04 -05:00
Justin Burkett
da1abb4d9f Fix previous commit 2020-02-06 21:46:12 -05:00
Justin Burkett
a66bf9336a Try purcell's workflow action 2020-02-06 21:44:46 -05:00
Justin Burkett
fcc509f493 Update travis versions 2020-02-06 21:31:18 -05:00
Henrik Lissner
d1dfddcd1e Refactor regexp & fix incompatibility + error 2020-02-06 21:21:01 -05:00
Henrik Lissner
b11227b24b Strip out advice in command docstrings 2020-02-06 21:21:01 -05:00
Justin Burkett
45bfcd3041 Make which-key-show prefix mode-line work like top and bottom
Fixes #234
2020-02-03 20:57:53 -05:00
Justin Burkett
db3d003e90 Add full keymap versions of show-{major,minor}-mode
Fixes #236
2020-01-19 15:10:12 -05:00
Henrik Lissner
9d1de2f127
Refactor regexp & fix incompatibility + error 2020-01-02 16:41:11 -05:00
Henrik Lissner
0d0af8a0a2
Strip out advice in command docstrings 2019-12-25 20:27:17 -05:00
Justin Burkett
1e3640e48c Make next page hint more consistent 2019-12-21 13:57:34 -05:00
Justin Burkett
8554a9f171 Generalize C-h commands to use help-char
help-char defaults to C-h. This removes the assumption that help-char is set to
C-h.

See #228
2019-12-21 13:47:54 -05:00
Justin Burkett
dcb9820c2d Default to imprecise window fitting on terminal
See #225.
2019-11-27 12:00:57 -05:00
Jonas Bernoulli
a916c9ae28 Fix typos (#222) 2019-11-11 14:51:32 -05:00
Justin Burkett
42a2505516 Rework implementation of manual updating
Instead of having people mess with prefix-help-command, use a new variable
which-key-show-early-on-C-h and control everything through
which-key-C-h-dispatch.
2019-08-01 22:40:30 -04:00
Justin Burkett
a256c4bce6 Use which-key-idle-secondary-delay value in manual updates 2019-08-01 15:32:55 -04:00
Justin Burkett
2cb5ceba55 Fix paging in which-key-manual-update 2019-07-31 13:59:11 -04:00
Justin Burkett
c47c72d1fe Cleanup whitespace in README 2019-07-31 12:31:57 -04:00
Justin Burkett
5cec1133cf Announce which-key-manual-update 2019-07-31 12:31:37 -04:00
Justin Burkett
5cbfccd5fe Add which-key-manual-update
Intended to be used for prefix-help-command

Ref #66
2019-07-31 12:15:26 -04:00