mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
X.Prompt: Alias C-m to RET in Emacs/Vim bindings
Both programs interpret C-m as RET, so the prompt should reflect this as well.
This commit is contained in:
parent
fb63987ac8
commit
f127f71c91
@ -210,6 +210,11 @@
|
||||
- Changed `addDescrKeys` and `addDescrKeys'` to not discard the
|
||||
keybindings in the current config.
|
||||
|
||||
* `XMonad.Prompt`
|
||||
|
||||
- The `emacsLikeXPKeymap` and `vimLikeXPKeymap` keymaps now treat
|
||||
`C-m` the same as `Return`.
|
||||
|
||||
### Other changes
|
||||
|
||||
## 0.17.1 (September 3, 2022)
|
||||
|
@ -1009,6 +1009,7 @@ emacsLikeXPKeymap' p = M.fromList $
|
||||
, (xK_g, quit)
|
||||
, (xK_bracketleft, quit)
|
||||
, (xK_t, transposeChars)
|
||||
, (xK_m, acceptSelection)
|
||||
] ++
|
||||
map (first $ (,) mod1Mask) -- meta key + <key>
|
||||
[ (xK_BackSpace, killWord' p Prev)
|
||||
@ -1058,6 +1059,9 @@ vimLikeXPKeymap' :: (XPColor -> XPColor)
|
||||
-- alternates.
|
||||
-> M.Map (KeyMask,KeySym) (XP ())
|
||||
vimLikeXPKeymap' fromColor promptF pasteFilter notWord = M.fromList $
|
||||
map (first $ (,) controlMask) -- control + <key>
|
||||
[ (xK_m, acceptSelection)
|
||||
] ++
|
||||
map (first $ (,) 0)
|
||||
[ (xK_Return, acceptSelection)
|
||||
, (xK_KP_Enter, acceptSelection)
|
||||
|
Loading…
x
Reference in New Issue
Block a user