Modify

Opened 4 years ago

Closed 4 years ago

#3061 closed enhancement (fixed)

[PATCH] Add search to plugin preferences

Reported by: avar Owned by: avar
Priority: major Component: Core
Version: latest Keywords: patch
Cc:

Description

The plugin preferences should have a search dialog like Advanced Preferences.

It should search in plugin names & descriptions and narrow down the list when it gets partial matches somewhere (like Advanced Preferences).

Attachments (4)

add-search-to-plugin-preferences.patch (6.3 KB) - added by avar 4 years ago.
A patch to add search to plugin preferences
plugin-search.png (92.6 KB) - added by avar 4 years ago.
Screenshot showing how this works
add-search-to-plugin-preferences-2.patch (5.1 KB) - added by avar 4 years ago.
An improved patch to add search to plugin preferences. Gives PluginSelection a copy of PluginPreference's txtField
add-search-to-plugin-preferences-3.patch (5.8 KB) - added by avar 4 years ago.
Final (hopefully) patch. Now search in local/remote versions too and code cleanup

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by avar

A patch to add search to plugin preferences

Changed 4 years ago by avar

Screenshot showing how this works

comment:1 Changed 4 years ago by avar

  • Owner changed from team to avar
  • Summary changed from Add search to plugin preferences to [PATCH] Add search to plugin preferences

I've implemented this. See attached patch & screenshot.

It works, but it could probably be optimized more. The drawPanel() function that's now being called every time a character is put into the search box was only designed to be called when plugins were updated or a new list of them downloaded. Hence it calls loadPlugins() which is expensive.

But I'm too lazy to implement this & optimize it today. And waiting a few milliseconds for the list to update is still a whole lot faster than manually scanning the whole thing with your eyeballs in search of a plugin.

Changed 4 years ago by avar

An improved patch to add search to plugin preferences. Gives PluginSelection a copy of PluginPreference's txtField

Changed 4 years ago by avar

Final (hopefully) patch. Now search in local/remote versions too and code cleanup

comment:2 Changed 4 years ago by avar

  • Keywords patch added

I consider attachment:add-search-to-plugin-preferences-3.patch a patch ready to be applied. It works.

comment:3 Changed 4 years ago by stoecker

  • Resolution set to fixed
  • Status changed from new to closed

(In [2147]) applied #3061 - patch by avar - search in plugin list

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.