-
-
Notifications
You must be signed in to change notification settings - Fork 379
Enhancement: Support Untrimmed query for Flow Launcher's Query #2605
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
Comments
query.Search should return query without any action keyword, and raw should return with action keyword if exists. This is intentional. Sorry not 100% clear on what you are asking, are you asking why they don't include a space at the end? |
yeah they don't include white spaces |
Is it possible to know if query contains spaces at the end? |
Unfortunately no, we never came across a scenario where whitespaces were needed to be kept for a plugin. What's your use case? |
I see it before in some alfred workspaces. it's used frequently if user types space show available commands if not use default one. The current behavior after split by exclamation mark show property names after user select one show pages. I prefer to skip step one if no spaces, i hope if could explain my point. |
Yeah that makes sense. I thought both search and rawquery only trim the whitespaces at the start of the query string? |
I thought this too, technically turns out it's trimming the end as well, i tried Search and RawQuery and SearchTerm also and they all return trimmed string. and i couldn't figure why it is trimmed. |
I thought I fixed this in a PR sometime ago. 🤔 Edit: #1121 |
Please double check it, I used this plugin to check whether is contain spaces or not.
Action keyword |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh |
Just wanted to add: This breaks the |
I wonder if this can help. In #3502, I added |
I noticed that Flow launcher consistently provides a trimmed query when using
query.Search
or evenquery.RawQuery
, returning a value without white spaces. This seems unusual to me compared to other launcher apps. Therefore, my question is: is this intentional for some specific reason, or is it something that can be fixed?The text was updated successfully, but these errors were encountered: