emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 15f89f7 295/348: ivy.el (ivy-minibuffer-map): Bind "C-v" a


From: Oleh Krehel
Subject: [elpa] master 15f89f7 295/348: ivy.el (ivy-minibuffer-map): Bind "C-v" and scroll-up-command
Date: Sat, 8 Apr 2017 11:04:18 -0400 (EDT)

branch: master
commit 15f89f7702f11be7f3c41806c39cfebf83a97f51
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-minibuffer-map): Bind "C-v" and scroll-up-command
    
    The ultimate solution to have PgUp and PgDown and whatever else was
    mapped to `scroll-up-command' bound in `ivy-minibuffer-map'. While still
    having the standard "C-v" and "M-v" bindings.
    
    In my config, I have "C-v" globally bound to hydra-vi. This means "C-v"
    isn't bound in `ivy-minibuffer-map' if only [remap scroll-up-command] is
    used.
    
    Re #797
    Re #798
    Re #535
---
 ivy.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivy.el b/ivy.el
index 8e42efa..774a276 100644
--- a/ivy.el
+++ b/ivy.el
@@ -286,6 +286,8 @@ action functions.")
     (define-key map (kbd "C-g") 'minibuffer-keyboard-quit)
     (define-key map [remap scroll-up-command] 'ivy-scroll-up-command)
     (define-key map [remap scroll-down-command] 'ivy-scroll-down-command)
+    (define-key map (kbd "C-v") 'ivy-scroll-up-command)
+    (define-key map (kbd "M-v") 'ivy-scroll-down-command)
     (define-key map (kbd "C-M-n") 'ivy-next-line-and-call)
     (define-key map (kbd "C-M-p") 'ivy-previous-line-and-call)
     (define-key map (kbd "M-r") 'ivy-toggle-regexp-quote)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]