Bug 2810 - "QuickSearch Button Bar" plugin
Summary: "QuickSearch Button Bar" plugin
Status: NEW
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.9.1
Hardware: PC All
: P3 enhancement
Assignee: users
URL:
: 4091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-20 15:09 UTC by Abhay S. Kushwaha
Modified: 2018-09-20 09:13 UTC (History)
1 user (show)

See Also:


Attachments

Description Abhay S. Kushwaha 2012-11-20 15:09:20 UTC
In more ideas on how to get things done even quicker, what would be nice if the quicksearch bar can be enhanced with a plugin to add a tool bar above or below it which stores "global" or "folder-specific" quicksearch rules assigned to buttons. So shifting from different "views" of a message list is as simple as clicking on buttons when this bar is displayed.
Comment 1 Holger Berndt 2012-11-21 15:01:07 UTC
You can use the python plugin to script some shortcuts. Creating a global quicksearch rule is quite easy:

1. Load the Python plugin
2. Choose Tools -> Python scripts -> Browse 
   (or navigate your file browser to ~/.claws-mail/python-scripts manually)
3. Go into the "main" subdirectory
4. Create a file called "qs-from-me" with the following line as content:
   clawsmail.quicksearch_search("clawsmail@kushwaha.com", clawsmail.QUICK_SEARCH_FROM)
5. Back in Claws Mail, choose Tools -> Python scripts -> Refresh
   (or restart Claws Mail)

Now, you have a menu item under Tools -> Python scripts that triggers a specific quicksearch. You can assign a shortcut to it, or put it into the main toolbar at your liking.

If required, the script could be extended to e.g. pop up a list of quicksearch rules specific to the currently selected folder, or whatever. But that would require some scripting knowledge.
Comment 2 Abhay S. Kushwaha 2012-11-27 09:16:42 UTC
Thanks Holger. That's definitely a possible workaround, but it would still be nice to have this in the app that is easier for users to configure without requiring python or learning scripting. I'm sure this enhancement, once implemented, will prove to be a very user-friendly way of achieving faster switching between quicksearch filters.
Comment 3 Abhay S. Kushwaha 2018-09-20 09:13:58 UTC
*** Bug 4091 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.