]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el (counsel-git): Add "j" action
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 4 Apr 2016 14:59:58 +0000 (16:59 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 4 Apr 2016 14:59:58 +0000 (16:59 +0200)
To open the file in other window.

counsel.el

index f4d9df6829585e0f5223bda168ec2701cf26050c..c4f6c3cbbe1d6225eee1a09b3981cc251faa45b3 100644 (file)
@@ -707,6 +707,12 @@ Describe the selected candidate."
 (defvar counsel--git-dir nil
   "Store the base git directory.")
 
+(ivy-set-actions
+ 'counsel-git
+ '(("j"
+    find-file-other-window
+    "other")))
+
 ;;;###autoload
 (defun counsel-git ()
   "Find file in the current Git repository."