Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation via n/p M-n/p should conform to Emacs's standard of displaying instead of visiting result buffer #152

Open
nordlow opened this issue Aug 29, 2024 · 0 comments

Comments

@nordlow
Copy link

nordlow commented Aug 29, 2024

This configuration currently works for me

(defun deadgrep-display-result-other-window ()
  (interactive)
  (let ((window (selected-window)))
	(deadgrep--visit-result #'find-file-other-window)
	(select-window window)))

;;;###autoload
(defun deadgrep-forward-match-and-display-result-other-window ()
  (interactive)
  (deadgrep-forward-match)
  (deadgrep-display-result-other-window))
;;;###autoload
(defun deadgrep-backward-match-and-display-result-other-window ()
  (interactive)
  (deadgrep-backward-match)
  (deadgrep-display-result-other-window))

(use-package deadgrep					;https://github.com/Wilfred/deadgrep
  :ensure t :defer t
  :bind (:map deadgrep-mode-map
              ("n" . deadgrep-forward-match-and-display-result-other-window)
              ("p" . deadgrep-backward-match-and-display-result-other-window)))

.

@nordlow nordlow changed the title Navigation via n/p M-n/p should conform to Emacs's standard of displaying not visiting buffer Navigation via n/p M-n/p should conform to Emacs's standard of displaying instead of visiting result buffer Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant