-
Notifications
You must be signed in to change notification settings - Fork 86
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
Syntax Highlighting in the Result Panel #26
Comments
It's might be a bit hard to determine the file types among the search results. |
That's what I figured. This seems like a difficult ask, but it would be a fantastic addition. |
It is not impossible (by using I'll try to do it sometime, thank you for your suggestion. |
+1 |
1 similar comment
+1 |
Ah ha! You can customise the match colour with the Trailing space issue still stands. |
If you are using let g:extra_whitespace_ignored_filetypes = ['ctrlsf'] |
Ah! Thanks.
I think I'm using a hand-rolled solution, but I'm happy to switch to using
a plugin.
Thanks!
…On Wed, 11 Mar 2020, 15:00 Ye Ding, ***@***.***> wrote:
If you are using vim-trailing-whitespace to highlight trailing spaces,
please add ctrlsf to its ignoring files.
let g:extra_whitespace_ignored_filetypes = ['ctrlsf']
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAETWG4ABFSP3B2UZNSSLVDRG6RPPANCNFSM4A4W7QAQ>
.
|
As a workaround, you can maybe try adding something like this to your vimrc: " Use syntax of current buffer in CtrlSF output
function CtrlSF_syntax_hi()
let s:syntx = &syntax
execute ':CtrlSF'
windo if &ft == 'ctrlsf' | execute 'set syntax='.s:syntx | endif
endfunction
nnoremap <silent> <leader>sf :call CtrlSF_syntax_hi()<CR> It's not useful if you're trying to grep over many different kinds of files or looking for a specific term, but for use cases where, e.g. you're trying to find all lines in a code base that invoke the function at the cursor, it's fairly handy since it's most likely that results returned will be in the same language as the file you're grepping from. |
Syntax highlighting in result pane would be awesome, anyway thanks for this wonderful plugin. Congratulations, so so useful |
It would be great to be able to toggle syntax highlighting in the results pane. Right now the results are printed out in only one color.
The text was updated successfully, but these errors were encountered: