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

408 commits

Author SHA1 Message Date
justbur
7a30f4d443 Fix return value problem for make-text-button
Apparently in versions before 24.5 the return value was not always the
button itself when a string was used as the argument
2015-11-30 18:43:09 -05:00
justbur
d4b4bad88a Merge branch 'grammati' 2015-11-30 13:47:27 -05:00
justbur
70a4716879 Use safe version of string-width 2015-11-30 13:30:37 -05:00
justbur
2f4c5d8609 Use key-description for canonical keys
This takes the idea in the previous commit and translates the
representations of keys in the alists to be the output of
key-description. The issue is that `M-x` for example has two
representations with listify-key-sequence, but only one (it seems) from
key-description.
2015-11-30 11:23:50 -05:00
Chris Perkins
ead6b70fd0 Display prefix names in terminal-mode
When running emacs in a terminal (or at least, in iTerm), keys are not
passed through to emacs the same way that they are in graphical mode.

For example, M-m (important in spacemacs) is the key-sequence
`[134217837]` in graphical emacs, but `[27 109]` ("ESC m") in terminal.

The variable `which-key-prefix-name-alst` only has a mapping for the
former (the 134217837), and so the names of submenus all show up as
"+prefix", limiting discoverability.

This commit converts the key sequence into a canonical form (eg:
converts `[27 109]` into `[134217837]`) in
`which-key--maybe-replace-prefix-name`, so that the prefixes are found.

I think some work is probably needed for
`which-key-prefix-title-alist` too, but I'm not entirely sure what
that's used for, so I didn't mess with it.
2015-11-28 11:15:21 -07:00
justbur
2d0b1463ad Add README note about last commit 2015-11-20 15:40:16 -05:00
justbur
55384945c7 Show docstring on hover in echo area for commands 2015-11-20 15:28:24 -05:00
justbur
3fceb99ee4 Fix mistake in reverting defaults
Ref 9dd0ceaaab

Accidentally changed the side window location instead of the show-prefix
one.
2015-11-20 06:35:49 -05:00
Justin Burkett
b61c7ad564 Merge pull request #87 from cute-jumper/master
Fix the value of `which-key-side-window-location'
2015-11-20 06:31:17 -05:00
Junpeng Qiu
62344270c5 Fix the value of `which-key-side-window-location' 2015-11-19 22:52:43 -05:00
justbur
cd6b3c5e99 Check for nil as a binding in previous commit 2015-11-18 22:04:29 -05:00
justbur
c6abc78b58 Provide alternate prefix-title for echo area 2015-11-18 22:00:14 -05:00
justbur
6b5ca75b64 Forgot line in last commit 2015-11-18 21:48:27 -05:00
justbur
9dd0ceaaab Revert change in default of side-window-bottom
Not happy with the look of it yet, even though it's probably better to
avoid the echo area
2015-11-18 21:44:11 -05:00
justbur
841f461b22 Automatically close popup when prefix goes away
It was necessary to hit C-g twice to close the popup before this change.
2015-11-18 20:57:51 -05:00
justbur
279b318cc6 Provide alternative for prefix-title
If echo-keystrokes is non nil, we're showing in the bottom window, and
the prefix is shown in the top or bottom line, there's not much reason
to show the prefix again since it's so close to the echo area.
2015-11-18 20:24:23 -05:00
justbur
24839e665d Fix spacing in last commit 2015-11-18 14:58:35 -05:00
justbur
8f9bd782f7 Mention new show-prefix option and format README 2015-11-18 14:57:01 -05:00
justbur
cf8052d6ca Add show-prfx 'bottom and change top-level msg
'bottom is a "safer" default because it's impossible to control the echo
area completely, so the message gets wiped out occasionally.

Use prefix-titles for the top-level bindings message, since top-level is
not really a key
2015-11-18 13:58:23 -05:00
justbur
6cb95565d6 Ignore key translations only at top-level
C-x 8 is a valid place to put translations for example
2015-11-18 10:52:59 -05:00
justbur
fe5be11e6e Option to remove default unicode characters 2015-11-18 10:21:49 -05:00
Justin Burkett
d694bbe4c1 Merge pull request #86 from syohex/byte-compile-warnings
Fix byte compile warnings
2015-11-18 05:26:06 -05:00
Syohei YOSHIDA
3af2f25803 Use bound-and-true-p for byte compile warning 2015-11-18 12:55:56 +09:00
Syohei YOSHIDA
e888ee885a Move definition position for byte-compile warning 2015-11-18 12:54:31 +09:00
justbur
ef44d0771a Sort character ranges properly
Fix #85
2015-11-17 21:50:55 -05:00
justbur
aa60a2364e Make special-key matching case sensitive 2015-11-16 22:31:10 -05:00
justbur
25bd62aa49 Refactor sorting functions and move fn keys up 2015-11-16 22:13:16 -05:00
justbur
0bddd2db10 Silence warnings for obsolete function 2015-11-16 22:02:18 -05:00
justbur
39fb658dbf Turn on case-sensitivity in replacements
Should avoid situations like #84
2015-11-16 21:57:59 -05:00
justbur
b0991a8a91 Satisfy compiler 2015-11-16 20:13:58 -05:00
justbur
7068ebd224 Bring in new describe-buffer-bindings parsing func
based on similar function in helm-descbinds. This parses the output of
describe-buffer-bindings line by line, and is easier to follow and
manipulate than the previous one that uses complicated regexp
expressions.
2015-11-16 20:04:13 -05:00
justbur
b0f9f580f3 Mention show-top-level in the README 2015-11-15 21:39:33 -05:00
justbur
b2c7d25dde Minor stylistic changes to previous pr 2015-11-13 13:09:37 -05:00
Iqbal Ansari
d3fe7b2e2a Ignore self-insert-command bindings 2015-11-13 22:40:05 +05:30
Iqbal Ansari
25d006eac1 Include keybindings of the form 'a .. z' in which key popup 2015-11-13 22:40:05 +05:30
Iqbal Ansari
6aec4bd9f4 Use set-temporary-overlay-map to setup paging keys for toplevel popup 2015-11-13 22:40:05 +05:30
Iqbal Ansari
26ca465bd1 Manually flush headings for keybindings 2015-11-13 22:40:05 +05:30
Iqbal Ansari
cdd2934d0d Allow function key bindings to be displayed in toplevel help 2015-11-13 22:40:05 +05:30
Iqbal Ansari
95788e94c1 Add a command to popup toplevel bindings 2015-11-13 22:40:05 +05:30
Iqbal Ansari
09aff8b342 Fix some minor bugs 2015-11-13 22:40:05 +05:30
Iqbal Ansari
652af436e8 Improve regexp to match toplevel bindings 2015-11-13 22:40:05 +05:30
Iqbal Ansari
bbe4817313 Change code to handle nil which-key--current-prefix
This would happen when viewing toplevel bindings
2015-11-13 22:40:05 +05:30
justbur
65f0755dd8 Fix sort order of function keys 2015-11-13 12:03:26 -05:00
justbur
fd8681828e Don't use face for prefix if using echo area
With some themes the switch from the text from echo-keystrokes with no
face to the which-key text with a face is annoying.
2015-11-13 09:00:33 -05:00
justbur
b0a13d88df Bump minor version 2015-11-12 13:29:42 -05:00
justbur
51044ea80b Add option to pad key columns on the left
Allows you to make more space between the columns if you think the
layout is too tight.
2015-11-12 13:28:33 -05:00
justbur
e447eaf944 Fix #79
Explicitly set word-wrap in which-key buffer. Fix unicode correction
2015-11-03 20:26:48 -05:00
justbur
864218b307 Add example of adding Unicode replacements in README
Thanks @epitzer for the suggestion.
https://github.com/justbur/emacs-which-key/issues/52
2015-11-03 20:03:29 -05:00
justbur
d777bb50fd Don't show help hint for evil operators
Paging and help doesn't work for these, so don't offer
2015-10-29 21:10:37 -04:00
justbur
8740f0f4e6 Add option to show popup for evil operators
Default is to enable if evil is loaded before which-key. Otherwise, it
is disabled.
2015-10-29 20:51:09 -04:00