blenderskool / untab

🔍 A productivity tool to boost your browser workflow!
https://getuntab.now.sh
MIT License
347 stars 27 forks source link

Improved plugin searching #20

Closed blenderskool closed 4 years ago

blenderskool commented 4 years ago

Current problem

The plugins are currently shown only if their regex is matched. While this covers many use cases, there are already some plugins that only match when the query beings with / and then matches some pattern. Examples:

As the number of plugins increases, there will be cases where multiple plugins match similar patterns (if they are small). To resolve this plugin searching can be added for these special types of plugins that begin with /.

Proposed solution :sparkles:


But doesn't this seem like increasing the steps to search for something? :thinking: It initially did feel as if the number of steps would increase. But thinking about it more, it actually doesn't! When regex was used for matching patterns, the user had to be careful about what they are typing (so that it matches the pattern and shows the results). Whereas in this approach, after typing / plugins would be fuzzy searched against the query thus decreasing the scope of errors. Selecting the plugin might feel like an extra step but selecting a plugin would just be Enter which technically replaces Space usually needed after /g or /d right now.

What would the plugins be searched against? :thinking: Plugins would be searched against their display name (which is shown to the user) and a set of keys defined for the plugin. Example: for Google search plugin, it could be [ 'g', 'google' ].