;; {{ @see http://oremacs.com/2015/04/19/git-grep-ivy/ (defun counsel-git-grep-or-find-api (fn git-cmd hint open-another-window) "Apply FN on the output lines of GIT-CMD. HINT is hint when user input. IF OPEN-ANOTHER-WINDOW is true, open the file in another window." (let ((default-directory (locate-dominating-file default-directory ".git")) (keyword (if (region-active-p) (buffer-substring-no-prope