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

[feature] option to only have one search result per line #305

Open
brumm opened this issue Aug 3, 2018 · 5 comments
Open

[feature] option to only have one search result per line #305

brumm opened this issue Aug 3, 2018 · 5 comments

Comments

@brumm
Copy link

brumm commented Aug 3, 2018

Currently, a result line is shown for each term found on a given buffer line of text. I found this confusing sometimes, especially when trying to direct-edit the searched term across many lines.

This also maps more clearly to "narrowing" the file, as in filtering the lines.

I'd like to be able to only show one result for each line in the buffer, regardless of how many results are.

Example of how this looks today, the last six results are actually just three lines in the buffer.

image

@slavaGanzin
Copy link
Contributor

+1

It's very annoying when you do inline update of a file(using ex-mode for example) and get notification about multiple changes in one line.

@t9md
Copy link
Owner

t9md commented Aug 4, 2018

First, I think the current behavior is better than the suggested one.
I can recognize the number of matches by the number of lines.
And I don't have to do extra work for the truncated very very long line.

But I understand an annoyance you guys mentioned when making inline(or direct) edit on the items list.

My assumed workflow is to use ctrl-cmd-g to place selections, then edit.
Or if you are vim-mode-plus's user, you can use occurrence feature to edit multiple words.

@slavaGanzin
Copy link
Contributor

We are talking about option(turned off by default), and not a permanent change in behavior.

As I said current behavior creates trouble when you use ex-mode(or sed).

@t9md
Copy link
Owner

t9md commented Aug 7, 2018

Hmmm, I basically don't want to.
Why can't you apply the same operation to multiple same lines?
Could you give me a practical scenario with a sample and ex-mode operation? (I'm no ex-mode user)
And using ctrl-cmd-g or occurrence operator doesn't work for you?

@slavaGanzin
Copy link
Contributor

I tried to create STR, but accidentally it just works for me. If I find something, I'll add here.

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

3 participants