ukyouz / SublimeText-SimpleFuzzy

Fuzzy search line-based jump for the current file and project files.
MIT License
5 stars 0 forks source link

highlight matched text #3

Open basaran opened 3 years ago

basaran commented 3 years ago

Hi, it's me again :)

Do you think it's okay to have some sort of highlighting on the matched text inside the editor? Something like a poor man's LSP:

image

I found this inside the LSP source code for LSP_DOCUMENT_SYMBOLS:

self.view.add_regions(self.REGIONS_KEY, [region], self.scope(index), '', sublime.DRAW_NO_FILL)

ukyouz commented 3 years ago

It turns out that the current implementation (ListItemHandler) now allows me getting the user input text string from the prompt, so I cannot use it as a source to match and highlight text inside editor, but I will keep researching and do other tries for this neat feature :)

basaran commented 3 years ago

That will be great, I'm not familiar too much with python and sublime's api. But their LSP seems to be using quickpanel. Not sure if it's helpful to you but here it is:

https://github.com/sublimelsp/LSP/blob/main/plugin/symbols.py

image

basaran commented 2 years ago

hello, just following up :)