Add prefixes/filters #26

Open
opened 2023-04-13 04:27:43 +01:00 by SuzanneSoy · 0 comments
SuzanneSoy commented 2023-04-13 04:27:43 +01:00 (Migrated from github.com)

Add a (hopefully flexible) mechanism for results providers to offer a prefix to narrow down results to only their results, e.g. #SomeObjectName, !SomeToolName, ?SomePreferenceName or verbose ones Object:SomeObjectName, Tool:SomeToolName, Preference:SomePreferenceName.

If flexible enough, add a mechanism for results providers to offer additional filters/narrowing options, e.g. search only children of the currently-selected object with Child:, search only objects of the current document with Opened:, search only boolean parameters with bool:

A first version could just leave the text as-is in the search bar, an improved version would replace it with a widget which takes the place of a character (probably will need to fake it by positioning the object relative to the search box, and adding enough padding to the left, or even replacing the search icon to e.g. a small cube icon & placeholder text to e.g. "Search objects…", and handling the backspace key gracefully to revert the filter).

Add a (hopefully flexible) mechanism for results providers to offer a prefix to narrow down results to only their results, e.g. `#SomeObjectName`, `!SomeToolName`, `?SomePreferenceName` or verbose ones `Object:SomeObjectName`, `Tool:SomeToolName`, `Preference:SomePreferenceName`. If flexible enough, add a mechanism for results providers to offer additional filters/narrowing options, e.g. search only children of the currently-selected object with `Child:`, search only objects of the current document with `Opened:`, search only boolean parameters with `bool:`… A first version could just leave the text as-is in the search bar, an improved version would replace it with a widget which takes the place of a character (probably will need to fake it by positioning the object relative to the search box, and adding enough padding to the left, or even replacing the search icon to e.g. a small cube icon & placeholder text to e.g. "Search objects…", and handling the backspace key gracefully to revert the filter).
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: suzanne.soy/SearchBar#26
No description provided.