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

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

Open
doublep opened this issue Jul 20, 2023 · 1 comment
Open

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

doublep opened this issue Jul 20, 2023 · 1 comment

Comments

@doublep
Copy link

doublep commented Jul 20, 2023

To reproduce:

  • Search for anything.
  • Go to buffer *rg*, select a whole result line and copy it.
  • Yank anywhere.

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
Copy link
Owner

dajva commented Aug 30, 2023

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.

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

2 participants