forked from linuxmint/nemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify existing search ui and non-tracker engine to: - Allow toggling folder recursion, case sensitivity (for both file and content search). - Content search can be plain text or a regular expression, if toggle is enabled - If visible, the 'Hits' list view column will display of how many matches are in each file. - Initial Support for text/plain files, pdf, ps, OpenDocument, exif (photo metadata) and id3 (mpeg metadata). - text/plain support is native, the others are provided via 'search helpers, and additional formats are easily added. A search helper is defined by a desktop file (in a similar manner to thumbnailers) - it only needs to be able to parse a given file type and print the text to stdout. - Multiple helpers can be defined for the same mimetype, and given priorities. If a helper is missing its executable, it is skipped, or a lower priority helper can be chosen. - The tracker engine is unchanged, but can be made to take advantage of these changes to provide content search as well. - Previous saved search functionality has been removed.
- Loading branch information
Showing
55 changed files
with
2,832 additions
and
1,869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
203 changes: 203 additions & 0 deletions
203
data/icons/hicolor/actions/scalable/nemo-recursive-search-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Nemo Search Cat Helper] | ||
TryExec=exif | ||
Exec=exif -m %s | ||
MimeType=image/jpeg;image/png;image/gif;image/bmp;image/tiff | ||
Priority=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Nemo Search Cat Helper] | ||
TryExec=id3 | ||
Exec=id3 -l %s | ||
MimeType=audio/mpeg | ||
Priority=100 |
5 changes: 5 additions & 0 deletions
5
files/usr/share/nemo/search-helpers/libreoffice.nemo_search_helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Nemo Search Cat Helper] | ||
TryExec=odt2txt | ||
Exec=odt2txt %s | ||
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.graphics; | ||
priority=100 |
5 changes: 5 additions & 0 deletions
5
files/usr/share/nemo/search-helpers/pdf2txt.nemo_search_helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Nemo Search Cat Helper] | ||
TryExec=pdf2txt | ||
Exec=pdf2txt %s | ||
MimeType=application/pdf; | ||
Priority=100 |
5 changes: 5 additions & 0 deletions
5
files/usr/share/nemo/search-helpers/pdftotext.nemo_search_helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Nemo Search Cat Helper] | ||
TryExec=pdftotext | ||
Exec=pdftotext %s - | ||
MimeType=application/pdf; | ||
Priority=200 |
5 changes: 5 additions & 0 deletions
5
files/usr/share/nemo/search-helpers/ps2txt.nemo_search_helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Nemo Search Cat Helper] | ||
TryExec=ps2txt | ||
Exec=ps2txt %s | ||
MimeType=application/ps; | ||
Priority=100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.