GNOME Bugzilla – Bug 606029
gnome-search-tool should allow queries to be saved
Last modified: 2019-02-23 02:44:24 UTC
The gnome-search-tool is a great utility to give the power of commandline searching to non-techie users. However, what you typically want to give them is not just the utility, but the search itself. Therefore, the gnome-search-tool should allow a search query to be saved and assigned an alias. That way, the end user can just click on the name and get the results they need without having to construct the search from scratch every time. As it turns out, this tool already supports this feature, in a way. The gnome-search-tool command provides commandline flags for every field in the user interface. This allows me to create a .desktop file that calls gnome-search-tool using my prepared query. So all the user interface needs to do is offer a way to generate a .desktop file from the current search and prompt the user for a name. The file can be saved to the desktop and the search can be run by clicking (or double-clicking) on it. Here's an example .desktop file that searches for songs less than a month old. [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Icon[en_US]=/usr/share/icons/Humanity/actions/48/search.svg Name[en_US]=Find New Songs Exec=gnome-search-tool --path /home/username/Music --regex ".(mp3|ogg)$" --mtimeless=30 --sortby date --start Comment[en_US]=Search for songs less than 30 days old Name=Find New Songs Comment=Search for songs less than 30 days old Icon=/usr/share/icons/Humanity/actions/48/search.svg
This bug was originally submitted to launchpad (Ubuntu): https://bugs.launchpad.net/ubuntu/+source/gnome-utils/+bug/502535
gnome-search-tool is not under active development anymore. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-search-tool/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather reactivate the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.