dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
471 stars 38 forks source link

How to focuses rg search buffer when finaily search #75

Closed glepnir closed 4 years ago

glepnir commented 4 years ago

when i used the rg-dwim-project-dir,i want focuses the buffer *rg* ,now when searched , i also on current widnow.

dajva commented 4 years ago

Maybe add this to your config? (add-hook 'rg-mode-hook (lambda () (switch-to-buffer (current-buffer))))

glepnir commented 4 years ago

no . when use command it will generate a buffer rg on split . so i want focuses in but keep the file buffer. image

dajva commented 4 years ago

Then you can use switch-to-buffer-other-window instead of switch-to-buffer.

glepnir commented 4 years ago

@dajva it works well .thanks.