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

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

[elpa] master 6b612cf 093/167: Rebind ivy-occur to "C-c C-o" and "C-o u"


From: Oleh Krehel
Subject: [elpa] master 6b612cf 093/167: Rebind ivy-occur to "C-c C-o" and "C-o u"
Date: Tue, 08 Dec 2015 10:50:13 +0000

branch: master
commit 6b612cf5c4a31ae336aa4589175f4708b96be1d2
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Rebind ivy-occur to "C-c C-o" and "C-o u"
    
    * ivy.el (ivy-minibuffer-map): Update.
    
    * ivy-hydra.el (hydra-ivy): Update.
    
    Wouldn't want to violate the "C-c LETTER" convention.
---
 ivy-hydra.el |   13 +++++++------
 ivy.el       |    2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/ivy-hydra.el b/ivy-hydra.el
index 19deabb..63755da 100644
--- a/ivy-hydra.el
+++ b/ivy-hydra.el
@@ -53,11 +53,11 @@
 (defhydra hydra-ivy (:hint nil
                      :color pink)
   "
-^^^^^^          ^Yes^     ^No^     ^Maybe^            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Action^               ^
-^^^^^^^^^^^^^^----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------------------
-^ ^ _k_ ^ ^     _f_ollow  _i_nsert _c_: calling %-5s(if ivy-calling \"on\" 
\"off\") _w_/_s_/_a_: %-14s(ivy-action-name)
-_h_ ^+^ _l_     _d_one    _o_ops   _m_: matcher 
%-5s(ivy--matcher-desc)^^^^^^^^^^^^ _C_ase-fold: %-10`ivy-case-fold-search
-^ ^ _j_ ^ ^     _g_o      ^ ^      _<_/_>_: 
shrink/grow^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _t_runcate: %-11`truncate-lines
+^^^^^^          ^Yes^    ^^      ^No^     ^Maybe^            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Action^               ^
+^^^^^^^^^^^^^^^----------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------------------
+^ ^ _k_ ^ ^     _f_ollow occ_u_r _i_nsert _c_: calling %-5s(if ivy-calling 
\"on\" \"off\") _w_/_s_/_a_: %-14s(ivy-action-name)
+_h_ ^+^ _l_     _d_one      ^ ^  _o_ops   _m_: matcher 
%-5s(ivy--matcher-desc)^^^^^^^^^^^^ _C_ase-fold: %-10`ivy-case-fold-search
+^ ^ _j_ ^ ^     _g_o        ^ ^  ^ ^      _<_/_>_: 
shrink/grow^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _t_runcate: %-11`truncate-lines
 "
   ;; arrows
   ("h" ivy-beginning-of-buffer)
@@ -82,7 +82,8 @@ _h_ ^+^ _l_     _d_one    _o_ops   _m_: matcher 
%-5s(ivy--matcher-desc)^^^^^^^^^
   ("s" ivy-next-action)
   ("a" ivy-read-action)
   ("t" (setq truncate-lines (not truncate-lines)))
-  ("C" ivy-toggle-case-fold))
+  ("C" ivy-toggle-case-fold)
+  ("u" ivy-occur :exit t))
 
 (provide 'ivy-hydra)
 
diff --git a/ivy.el b/ivy.el
index f5dbd94..73d2f8a 100644
--- a/ivy.el
+++ b/ivy.el
@@ -171,7 +171,7 @@ Only \"./\" and \"../\" apply here. They appear in reverse 
order."
     (define-key map (kbd "M-w") 'ivy-kill-ring-save)
     (define-key map (kbd "C-'") 'ivy-avy)
     (define-key map (kbd "C-M-a") 'ivy-read-action)
-    (define-key map (kbd "C-c o") 'ivy-occur)
+    (define-key map (kbd "C-c C-o") 'ivy-occur)
     map)
   "Keymap used in the minibuffer.")
 (autoload 'hydra-ivy/body "ivy-hydra" "" t)



reply via email to

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