rg.el icon indicating copy to clipboard operation
rg.el copied to clipboard

Potentially enable outline-minor-mode

Open hmelman opened this issue 3 years ago • 4 comments

Not sure about this, but enabling outline-minor-mode in rg-mode seems to be pretty nice, at least when rg-group-result is t. I'm sure it could be improved.

(defun hrm-rg-mode-hook ()
  "My rg-mode-hook.  Setup outline-minor-mode."
  (setq-local outline-regexp "File:")
  (outline-minor-mode 1))

(add-hook 'rg-mode-hook #'hrm-rg-mode-hook)

hmelman avatar Feb 18 '22 05:02 hmelman

Thanks for the suggestion. Yeah looks nice with a quick try.

dajva avatar Mar 12 '22 15:03 dajva

@dajva So I see that imenu support was added, but I don't see that outline-minor-mode support was added, so I don't know why this bug was closed.

hmelman avatar Oct 12 '22 01:10 hmelman

It's not closed.

dajva avatar Oct 16 '22 17:10 dajva

Ah, my mistake.

hmelman avatar Oct 16 '22 21:10 hmelman