dialog
dialog copied to clipboard
[popup] Add flag that determines if given search string must appear at beginning or anywhere inside a suggestion
By default, suggestions are only filtered based on whether they begin with the given search string or not. However, it would be more useful and flexible when there would a CLI option "--fulltext" which, when given, determines that a suggestion item does even "match" when the given search string appears anywhere inside it.
Example: In the Turtle bundle, there is also an auto-completion for so called "prefix directives". They look like this @prefix abc: <http://example.com/a/b/c#>.. When making use of auto-completion, it might be not only relevant to filter suggestions by the prefix abc but also by the URI it stands for. That's a perfect use-case for such a filter flag.
This isn’t compatible with how the menu currently works (and technically not really possible to change), as when the user types, the text goes into the document, and the menu is to insert additional text.
On 20 Mar 2013, at 19:14, Peter Geil wrote:
By default, suggestions are only filtered based on whether they begin with the given search string or not. However, it would be more useful and flexible when there would a CLI option "--fulltext" which, when given, determines that a suggestion item does even "match" when the given search string appears anywhere inside it.
Example: In the Turtle bundle, there is also an auto-completion for so called "prefix directives". They look like this
@prefix abc: <http://example.com/a/b/c#>.. When making use of auto-completion, it might be not only relevant to filter suggestions by the prefixabcbut also by the URI it stands for. That's a perfect use-case for such a filter flag.
Reply to this email directly or view it on GitHub: https://github.com/textmate/dialog/issues/10
Please help fund-raising to make this feature-suggestion become true: http://www.indiegogo.com/projects/textmate-dialog2-sprint