You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I press "Enter" key on rg result buffer to open target file. When opening target file, the displayed content is at the beginning of the entire file. Doesn't it show the location of the file where the search keyword is located?
Is there any solution?
Mac , Org mode version 9.6.7, emacs-plus@29, rg-20230430.721
My configuration is as follows: (use-package rg :bind* (("C-c C-s" . my-grep-vc-or-dir)) :bind (:map rg-mode-map ("f" . next-error-follow-minor-mode) ("s" . my-rg-save-search-as-name) ("n" . next-line) ("p" . previous-line) ("C-n" . next-line) ("C-p" . previous-line) ("M-n" . rg-next-file) ("M-p" . rg-prev-file)) :config (with-eval-after-load 'rg (require 'wgrep) (setq rg-group-result t) (setq rg-hide-command t) (setq rg-show-columns nil) (setq rg-show-header t) (setq rg-custom-type-aliases nil) (setq rg-default-alias-fallback "all") (rg-enable-menu) (setq rg-executable "rg") (rg-define-search my-grep-vc-or-dir :query ask :format regexp :files "everything" :case-fold-search smart :dir (let ((vc (vc-root-dir))) (if vc vc default-directory)) :confirm prefix :flags ("--hidden -g !.git")) (defun my-rg-save-search-as-name () "Save rg' buffer, naming it after the current search query.
This function is meant to be mapped to a key in `rg-mode-map'."
(interactive)
(let ((pattern (car rg-pattern-history)))
(rg-save-search-as-name
(concat "«" pattern "»"))))
When I press "Enter" key on rg result buffer to open target file. When opening target file, the displayed content is at the beginning of the entire file. Doesn't it show the location of the file where the search keyword is located?
Is there any solution?
Mac , Org mode version 9.6.7, emacs-plus@29, rg-20230430.721
My configuration is as follows:
(use-package rg :bind* (("C-c C-s" . my-grep-vc-or-dir)) :bind (:map rg-mode-map ("f" . next-error-follow-minor-mode) ("s" . my-rg-save-search-as-name) ("n" . next-line) ("p" . previous-line) ("C-n" . next-line) ("C-p" . previous-line) ("M-n" . rg-next-file) ("M-p" . rg-prev-file)) :config (with-eval-after-load 'rg (require 'wgrep) (setq rg-group-result t) (setq rg-hide-command t) (setq rg-show-columns nil) (setq rg-show-header t) (setq rg-custom-type-aliases nil) (setq rg-default-alias-fallback "all") (rg-enable-menu) (setq rg-executable "rg") (rg-define-search my-grep-vc-or-dir :query ask :format regexp :files "everything" :case-fold-search smart :dir (let ((vc (vc-root-dir))) (if vc vc default-directory)) :confirm prefix :flags ("--hidden -g !.git")) (defun my-rg-save-search-as-name () "Save
rg' buffer, naming it after the current search query.This function is meant to be mapped to a key in `rg-mode-map'."
(interactive)
(let ((pattern (car rg-pattern-history)))
(rg-save-search-as-name
(concat "«" pattern "»"))))
`
The text was updated successfully, but these errors were encountered: