drl990114 / MarkFlowy

Modern markdown editor application, Build fast and efficient workflows.
https://markflowy.vercel.app
GNU Affero General Public License v3.0
765 stars 39 forks source link

[FEATURE]: a feature to have a concise result while searching the entire folder #299

Open yu2chuan opened 1 year ago

yu2chuan commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently, searching a phrase or a word in the whole folder looks good. I expect the search result can be concise. I mean the software may just provide the 5 words before and after the phrase peopole are looking for. Show the whole paragraph may occupy too much space.

Describe the solution you'd like

show the 5 words before and after the looking-for phrase. For example, I'm looking for "word" in a md file. (X) I mean the software may just provide the 5 words before and after the phrase peopole are looking for. (O) . . . may just provide the 5 words before and after the phrase . . .

Describe alternatives you've considered

Additional context

drl990114 commented 1 year ago

Thank you for your feedback. The current design is to display a complete row. We will consider optimizing it later.

yu2chuan commented 1 year ago

Maybe you can keep both. I mean that an additional option called concise. Users can choose what they prefer.

yu2chuan commented 1 year ago

When the searching phrase exists in the \\\\, the seach result will become super long. the concise option is also beneficial when the content includes \\\\