• 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: October 11th, 2023

help-circle
  • my solution: switch to any non-ripgrep buffer and navigate with next-error

       (defun bss/next-error-in-same-window ()
         (interactive)
         (let ((display-buffer-overriding-action '(display-buffer-same-window (inhibit-same-window . nil)))) (next-error)))
       (defun bss/previous-error-in-same-window ()
         (interactive)
         (let ((display-buffer-overriding-action '(display-buffer-same-window (inhibit-same-window . nil)))) (previous-error)))
       (global-set-key (kbd "s-[") 'bss/previous-error-in-same-window)
       (global-set-key (kbd "s-]") 'bss/next-error-in-same-window)