dajva / rg.el

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

When copying from buffer `*rg*`, some internal text is included #161

Open doublep opened 12 months ago

doublep commented 12 months ago

To reproduce:

Result: some internal invisible text that probably means "highlight from this column" is copied.

Example (searching for "defun" in this project's source code), this is what I see:

File: rg-isearch.el
  39  (defun rg-get-isearch-string ()

This is what I get if copy the match line anywhere:

  39   2 (defun rg-get-isearch-string ()

As a user, I don't need this and it is very annoying to delete this every time. It must remain internal details and not get in my way.

dajva commented 10 months ago

Yes, this is an internal implementation detail. I don't plan to fix it though since I think this is a minor issue. Could do a real skip column setting possibly but if you want this (with the drawbacks it entails) you would have to submit a PR.