1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-01 11:20:41 -08:00
Commit graph

765 commits

Author SHA1 Message Date
Justin Burkett
cd0c48cda2 Clarify usage of keymap replacements in docstrings and README 2021-06-22 11:36:27 -04:00
Justin Burkett
eb5a2e3de1 Clean up some docstrings 2021-06-22 11:26:11 -04:00
Justin Burkett
b83c0deca6 Clean up which-key--maybe-replace 2021-06-22 11:22:32 -04:00
Justin Burkett
6290c9e217 Improve which-key-add-keymap-based-bindings
Add a test
2021-06-22 07:37:04 -04:00
Justin Burkett
28f386cc4a Fix key sort order functions
We now always get the full key description (prefix + binding)
2021-06-21 23:34:18 -04:00
Justin Burkett
d8445fd80e Try again to fix tests 2021-06-21 23:10:22 -04:00
Justin Burkett
7cfbf8cee7 Turn off fail-fast in github action 2021-06-21 23:03:20 -04:00
Justin Burkett
6ae80f50af Try without cask 2021-06-21 22:55:33 -04:00
Justin Burkett
11471fb738 Add install python step to github action 2021-06-21 22:40:54 -04:00
Justin Burkett
3f76f5178d Fix which-key--group-p
length> is a new function maybe
2021-06-21 22:33:43 -04:00
Justin Burkett
d621634eb6 Try with cask again 2021-06-21 22:33:43 -04:00
Justin Burkett
063b867030 Fix github action 2021-06-21 22:15:34 -04:00
Justin Burkett
7d344ce966 Fix test 2021-06-21 16:02:45 -04:00
Justin Burkett
300c098be5 Update README 2021-06-21 15:57:40 -04:00
Justin Burkett
8b707ef6c5 Make enable-extended-define-key obsolete 2021-06-21 15:51:22 -04:00
Justin Burkett
e236920b23 Merge branch 'alt-get-bindings' 2021-06-21 15:47:10 -04:00
Justin Burkett
d6b56f3e0c Fix detection of named prefix bindings 2021-06-21 15:44:07 -04:00
Justin Burkett
2444833340 Fix menu-item bidning retrieval 2021-06-21 15:10:37 -04:00
Justin Burkett
e42d946cd9 Fix prefix sorting 2021-06-21 14:55:05 -04:00
Justin Burkett
465d2fb2e4 Fix add-keymap-based-bindings and associated test 2021-06-21 14:46:51 -04:00
Justin Burkett
8d6d81da4c Expand get-keymap-bindings test 2021-06-21 14:35:04 -04:00
Justin Burkett
4e592ed7b9 Fix type usage and arglists for new functions 2021-06-21 14:29:29 -04:00
Justin Burkett
fffd3e5ebf Fix default of which-key-replacement-alist 2021-06-21 14:00:54 -04:00
Justin Burkett
8a558e6a79 Update tests 2021-06-21 13:59:56 -04:00
Justin Burkett
fc8855187f Remove pseudo binding stuff
It's not necessary anymore with manual parsing of the keymaps
2021-06-21 13:36:25 -04:00
Justin Burkett
a55b90844c Alternative approach to retrieving bindings (WIP) 2021-06-21 12:15:22 -04:00
Justin Burkett
1f9c37d50f
Merge pull request #305 from tarsiiformes/first-line
Improve first doc-string line in trivial cases
2021-06-19 18:22:42 -04:00
Jonas Bernoulli
0f6bda622e
Improve first doc-string line in trivial cases
The first line of a doc-string should form a complete sentence.
Many doc-strings in this package do not follow that convention
but fixing them all would be difficult and is beyond the scope
of this commit.  However, in a few cases the fix is trivial and
this commit tackles those instances.
2021-06-17 01:24:17 +02:00
Jonas Bernoulli
12f743c695
Fix whitespace 2021-06-15 19:19:44 +02:00
Justin Burkett
fc29864395 Fix whitespace 2021-05-31 22:52:43 -04:00
Justin Burkett
7e854d0203 Fix recent commit 2021-05-31 22:48:53 -04:00
Justin Burkett
81d93952af Fix README links 2021-05-31 22:34:08 -04:00
Justin Burkett
ef1fc43fcb Reference issues #93 and #175 in README
Fixes #291
2021-05-31 22:30:32 -04:00
Justin Burkett
fa1b4c9b38
Merge pull request #303 from tarsiiformes/posframe
Support packages that use another frame to display bindings
2021-05-31 22:21:44 -04:00
Jonas Bernoulli
f6ce67d705
Get which-key--buffer's window from any frame
Previously we assumed the buffer was being displayed in a window
of the current frame, which isn't the case if e.g. a child frame
is being used.

We also cannot assume that the third-party code that sets up such
a child frame also deletes it.  `which-key-posframe' for example
merely hides it.
2021-05-30 21:32:50 +02:00
Jonas Bernoulli
016b9bbf86 Cosmetics 2021-05-30 21:10:04 +02:00
Jonas Bernoulli
1f5e532852
Avoid code-duplication in which-key--hide-popup 2021-05-30 20:17:49 +02:00
Jonas Bernoulli
aa91a7cd83
Fix nesting-level of "God-mode" section 2021-05-30 20:16:53 +02:00
Jiangbin Zhao
7927209c1b fix which-key--show-keymap for which-key-enable-extended-define-key
With which-key-enable-extended-define-key set to 't, given the keymap
and bindings below:

  (setq a-map (make-sparse-keymap))
  (bind-keys :map a-map
             ("a" . ("key 1" . command-1))
             ("b" . ("key b" . command-2)))

The output of (which-key--get-keymap-bindings a-map) was having
"unknown" as the key descriptions.

This change fixes it therefore allows the following to work as
expected:

(which-key--show-keymap "A map" a-map)
2021-05-23 14:48:29 -07:00
Frank Terbeck
5fb30301cb Unset header-line-format format in " *which-key*" buffer
Similarly to mode-line-format, header-line-format just takes up space and
currently also breaks window size calculations for the buffer. This sets
it to nil in order to suppress its display.

Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2021-04-06 20:28:00 -04:00
Celestial Nebula
c632dbf27a
Update reference to obsolete variable in DOCSTRING (#285) 2021-03-24 14:21:16 -04:00
Justin Burkett
c0608e812a Version 3.5.1 2021-01-31 13:37:08 -05:00
Justin Burkett
428aedfce0 Further simplify which-key--pseudo-key 2020-12-16 12:20:14 -05:00
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