(Emacs)~rg binding "sr"->"sR"
I use counsel-rg usually as it provides instant results. At the point where I'll need a compilation-like buffer of results I'll just use one of the *grep functions, which work regardless of ripgrep being installed (essentially just learn one tool, well, rather than multiple tools, badly.)
This commit is contained in:
@@ -1296,11 +1296,9 @@ most repositories nowadays.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package rg
|
||||
:after grep
|
||||
:commands (rg +rg/search-in-new-frame)
|
||||
:general
|
||||
(leader
|
||||
"sr" #'rg
|
||||
"sR" #'+rg/search-in-new-frame)
|
||||
"sR" #'rg)
|
||||
(:keymaps 'rg-mode-map
|
||||
"]]" #'rg-next-file
|
||||
"[[" #'rg-prev-file
|
||||
@@ -1312,13 +1310,8 @@ most repositories nowadays.
|
||||
rg-show-header t
|
||||
rg-custom-type-aliases nil
|
||||
rg-default-alias-fallback "all"
|
||||
rg-buffer-name "*ripgrep*")
|
||||
:config
|
||||
(defun +rg/search-in-new-frame ()
|
||||
(interactive)
|
||||
(let ((frame (make-frame)))
|
||||
(select-frame frame)
|
||||
(call-interactively #'rg))))
|
||||
rg-buffer-name "*ripgrep*"))
|
||||
#+end_src
|
||||
#+end_src
|
||||
* Applications
|
||||
** Dashboard
|
||||
|
||||
Reference in New Issue
Block a user