Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[popup] Add flag that determines if given search string must appear at beginning or anywhere inside a suggestion #10

Open
peta opened this issue Mar 20, 2013 · 2 comments

Comments

@peta
Copy link

peta commented Mar 20, 2013

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.

@sorbits
Copy link
Member

sorbits commented Mar 21, 2013

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 prefix abc
but 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:
#10

@peta
Copy link
Author

peta commented Mar 24, 2013

Please help fund-raising to make this feature-suggestion become true: http://www.indiegogo.com/projects/textmate-dialog2-sprint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants