linuxmint / nemo

File browser for Cinnamon
GNU General Public License v2.0
1.2k stars 298 forks source link

Show the content hits instead of just number of hits in nemo search in content #3169

Open KyleBroflowski opened 1 year ago

KyleBroflowski commented 1 year ago
 * Nemo version (nemo --version) 5.6.1
 * Distribution - Manjaro-Gnome
 * Graphics hardware *and* driver used
 *  64 bit

Issue An option to view the content matches in nemo. When nemo parses pdfs and text files to show the content, it is a great option to be able to view the content matches and a few more words around the match(left and right) to actually figure out the file which is required. Currently ,nemo search-visible-columns options include ['name', 'search_result_count', 'where', 'size', 'detailed_type', 'date_modified', 'type'] (from dconf editor /org/nemo/search/search-visible-columns

This includes the number of hits but not the context of hits which is more important. So please include this option too

mtwebster commented 1 year ago

The tooltip for each result shows the first hit in that file, with context.

mtwebster commented 1 year ago

It's not really feasible at the moment to show multiple results for the same file, as the view cannot show the same file more than once. The same would go for an additional pane or view to show a hit list for the selected file.

It would require quite a bit of work to make this possible, and up until this point, the tooltip has been sufficient.

KyleBroflowski commented 1 year ago

I Just realised that the tooltip(what appears when hovering over) results would show the context! Thanks

In old versions of nautilus it used to have larger height results which showcased the same matches by deafult(in a smaller font size) . It was really helpful to compare when searching a common word for the real match without having to click/hover over each result individually. I'd love to see this very usefuul feature adopted unto this great project in the future in the future