[ ProjectSearch ] Collapse results output in multiple lines even for same line of same file . #8043
Comments
|
/claim |
|
Thanks for claiming the issue! Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to |
|
I read the whole code and ohh my gawdd...., We should Use Now, Step 3 is worse (currently): Should I proceed with modifying the code? |
|
Hi @charanjit-singh, can you edit this issue's title to make it clearer what specific UX issue you're trying to improve? Maybe something like "[ProjectSearch] Collapse results when they occur on the same line of same file"? Two things to keep in mind:
Displaying each match as a single result works around that second issue. It seems to be what VS Code search does, too. |
|
I got it. We can provide a toggle button to users to choose modes, either single line results or multiple results. |
I would rather avoid creating new preferences. :/ Can we come up with a robust default for the "collapsing" scenario? |
|
Yeah! If search result on same line are close to each other, then show them on same line, Should I start working on this? |


I think search results for same line should come in same line.
But currently It is showing every match case in different line.
And Also, The Highlighted text is shown with some additional internal padding, which'll confuse users because It'll look like a space. For eg:
Currently: For match 'a' in "yaahoo"
Results are:
But expected results are:
Highlighter needs to be updated as the results,( if we fix the separate line bug ), will be:
^. ^..........|` Spaces around |
`````````````|. search result . |
Current Scenario:

Expected Results:
The text was updated successfully, but these errors were encountered: