stefankueng / grepWin

A powerful and fast search tool using regular expressions
https://tools.stefankueng.com/grepWin.html
GNU General Public License v3.0
1.72k stars 179 forks source link

Improve Files view to allow content-per-file #469

Open jez9999 opened 4 months ago

jez9999 commented 4 months ago

It would be nice to be able to see a list of the files where grep has matched content, then click on the entry in the files list and see a side-pane or something listing the matches for that file (line and text), rather than just having all matches together with the Content view. Could we add that UI?

lifenjoiner commented 4 months ago

Configure your own Settings --> Editor, and then you can double click the file in result list to open it using that editor.

I think it is a better solution:

  1. configurable
  2. reduced the burden of Dev to maintain an internal editor component
jez9999 commented 4 months ago

That would just open the file in the editor without highlighting the matches for that file, rather defeating the purpose.

TooMuchBlue commented 4 weeks ago

I think this could work better without creating a new view.

I never thought about it before, but it is kind of annoying that switching views always jumps back to the top of the list -- might as well keep their place in the list if possible. This might be good as a feature that can be turned on and off in case not everybody agrees -- but then again, getting to the top or bottom of the list is not terribly hard using Home or End.

Follow-on request for us keyboard junkies: an easy keystroke to toggle between Files and Content view. Suggested candidates: Shift-Enter, numpad-plus, back-tick, backslash.

lifenjoiner commented 4 weeks ago

@jez9999

defeating the purpose

grepWin is neither an editor nor a reader. Now, we have %column% together with %line% for external editors, which will help to locate the position. Highlight marking is fancy, but not essential, comparing to syntax highlighting. I can feel your eager of feature request. In fact, it's always easier said than done. Hoping there would be elegant solutions, but no promises.

@TooMuchBlue

us keyboard junkies

Taste quick locating immediately: typing the file name in the list view works, like in Explorer.