Git Product home page Git Product logo

Comments (10)

jjw24 avatar jjw24 commented on May 26, 2024

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?

from flow.launcher.

AminSallah avatar AminSallah commented on May 26, 2024

yeah they don't include white spaces

from flow.launcher.

AminSallah avatar AminSallah commented on May 26, 2024

Is it possible to know if query contains spaces at the end?

from flow.launcher.

jjw24 avatar jjw24 commented on May 26, 2024

Unfortunately no, we never came across a scenario where whitespaces were needed to be kept for a plugin. What's your use case?

from flow.launcher.

AminSallah avatar AminSallah commented on May 26, 2024

I see it before in some alfred workspaces. it's used frequently if user types space show available commands if not use default one.
In my case, with the Notion plugin I wanna implement a similar scenario. i split query by char ! then i wanna check if what after ! mark is whitespace show available properties names else use first index and start recording the page name. this gonna be more faster.

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.

spaces

from flow.launcher.

jjw24 avatar jjw24 commented on May 26, 2024

Yeah that makes sense.

I thought both search and rawquery only trim the whitespaces at the start of the query string?

from flow.launcher.

AminSallah avatar AminSallah commented on May 26, 2024

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.

from flow.launcher.

Garulf avatar Garulf commented on May 26, 2024

I thought I fixed this in a PR sometime ago. 🤔

Edit: #1121

from flow.launcher.

AminSallah avatar AminSallah commented on May 26, 2024

Please double check it, I used this plugin to check whether is contain spaces or not.
Release link

https://github.com/AminSallah/Flow.Launcher.Plugin.whitespaces/releases/download/v1.0.0/Flow.Launcher.Plugin.whitespaces.zip

Action keyword s

from flow.launcher.

github-actions avatar github-actions commented on May 26, 2024

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

from flow.launcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.