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

Problem with multiline search #294

Open
carljohnson93 opened this issue Aug 10, 2020 · 1 comment
Open

Problem with multiline search #294

carljohnson93 opened this issue Aug 10, 2020 · 1 comment

Comments

@carljohnson93
Copy link

test.txt

a line

// bellow is a line
a line

a line

:CtrlSF 'a line' works fine:

4 matched lines across 1 files. Done!

a line

// bellow is a line
a line

a line


However :CtrlSF -R '//.*a line'.*\n.*a line.* prints file with match, but doesn't count it nor highlight:

0 matched lines across 1 files. Done!

a line

// bellow is a line
a line

a line


Also, rg --multiline flag is not supported. Tho I was able to test it with let g:ctrlsf_extra_backend_args={ 'rg': '--multiline' }, it worked the same way as simulated above.


field value
os Ubuntu 20.04
vim Vim 8.2
backend ag 2.2.0
locale en_US.UTF-8
  • vimrc:

    let g:ctrlsf_ackprg = 'ag'
@dyng
Copy link
Owner

dyng commented Aug 12, 2020

There is a fundamental problem that the line number in result pane is solid characters, which makes it difficult to match multiline objects (for highlighting) without interfering with line numbers.

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