sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
801 stars 35 forks source link

Dedicated Search per View #6410

Open ryuukk opened 3 weeks ago

ryuukk commented 3 weeks ago

Problem description

I was comparing files, and wanted to check occurrence of specific keywords, since the search input is global, i had to constantly replace the keyword, wich is very painful to do, i had to use a different tool..

Preferred solution

I would like a new way to do search on the view, something that sticks per view

image

This could and perhaps should be done using a plugin, but for that to work, we need to be able to have sticky Phantoms

So this needs to be implemented: https://github.com/sublimehq/sublime_text/issues/6301

But will that be enough? perhaps also add a new way to render stuff before/after text view

Alternatives

I can't think of an alternative

Additional Information

No response

kaste commented 3 weeks ago

Well, you're free to upvote #6301 as it is the best thing since ... 😏 but sticky phantoms are read only, and the graphical mockup looks like "search here" would be maybe just an input panel per view and at the top instead of the bottom; also full-width to that view.

Not sure if you need two input panels, e.g. want to search different terms per view, or if you want to search as-you-type on the two views shown side-by-side. I think both can be done in a performant way already. Probably good looking too.