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

[feature] snippets #88

Open
5ven5chuette opened this issue Dec 20, 2024 · 12 comments
Open

[feature] snippets #88

5ven5chuette opened this issue Dec 20, 2024 · 12 comments
Labels
enhancement New feature or request

Comments

@5ven5chuette
Copy link

Snippets instead of first unique name match in search bar

Example:

Instead of having to type until the launcher recognizes a unique name, make it so I can just type "gh" for GitHub or "dc" for Discord.

@5ven5chuette 5ven5chuette added the enhancement New feature or request label Dec 20, 2024
@jrpie
Copy link
Owner

jrpie commented Dec 20, 2024

Thanks for the suggestion!

You can already get a very similar behavior by renaming apps, e.g. rename github to something like "github (gc)" or "github - gh"

@wassupluke
Copy link

wassupluke commented Dec 20, 2024

Dude I fricken love this idea. It's like a bash alias. Game changer. 🙏🏻🙌🏻

Edit: just realized we can already kind of do this if you rename the app. Though, depending on the alias you rename it to, the search may still find other app matches. i.e., making sure someone can use an alias "gm" for some app doesn't preclude them from then being able to get to their Gmail app with the same first letter inputs of "gm" would be wise. I could see people getting frustrated by that.

@jrpie
Copy link
Owner

jrpie commented Dec 20, 2024

Though, depending on the alias you rename it to, the search may still find other app matches. i.e., making sure someone can use an alias "gm" for some app doesn't preclude them from then being able to get to their Gmail app with the same first letter inputs of "gm" would be wise. I could see people getting frustrated by that.

I'm not really sure how to solve this. For shortcuts to be useful they should be launched immediately (otherwise this feature would not add much over just renaming the app). On the other hand it might make the usual search really frustrating.

@5ven5chuette
Copy link
Author

Thanks for the suggestion!

You can already get a very similar behavior by renaming apps, e.g. rename github to something like "github (gc)" or "github - gh"

Thanks for pointing this out, haven't noticed, yet.

Theoretically this makes my request obsolete, practically it would still be neat to provide a functionality to add a snippet that gets stored in the background while the application name on the list still is verbose.

So when I type gh it immidiately opens GitHub while the app name remains original.

@jrpie
Copy link
Owner

jrpie commented Dec 21, 2024

Yes, so snippets have two benefits over renaming:

  • displayed names don't change
  • launch immediately even if there are other names matching the search (not sure whether this is a feature or an anti-feature ^^ one might argue that choosing sane snippet names is the responsibility of the user)

I'm not really sure whether that is worth the effort (implementing UI for managing snippets etc.) and added complexity.

@jrpie
Copy link
Owner

jrpie commented Dec 21, 2024

Somewhat unrelated: Thinking about this, I had the idea to let users launch a web search from the search list: Currently pressing the submit button on the keyboard launches the first matching app. Adding an option to launch a web search instead would be relatively straight forward.
(Doesn't work too well with auto-launch though)

@wassupluke
Copy link

Would it use a static search engine or a user preference engine? I'm thinking it could allow the user to pass "g cat pics" to use Google engine to search cat pics, or something like "d " or "b " for duckduckgo and bing, respectively. I think the version of Internet Explorer my old job used allowed this address bar functionality where "g search query" would let you Google for a search query (without the g it would try to resolve the input as a path on the LAN).

@5ven5chuette
Copy link
Author

5ven5chuette commented Dec 21, 2024

Yes, so snippets have two benefits over renaming:

  • displayed names don't change
  • launch immediately even if there are other names matching the search (not sure whether this is a feature or an anti-feature ^^ one might argue that choosing sane snippet names is the responsibility of the user)

I'm not really sure whether that is worth the effort (implementing UI for managing snippets etc.) and added complexity.

Well, yeah, there would be a responsibility given to the user, unless (but that adds even more work regarding implementation I guess) you restrict snippet names and make it so there can't be multiples of the same abbreviation. Maybe even restrict the length of the given name, since those are only snippets.

Maybe in form of "Advanced Settings".

@5ven5chuette
Copy link
Author

5ven5chuette commented Dec 21, 2024

Somewhat unrelated: Thinking about this, I had the idea to let users launch a web search from the search list: Currently pressing the submit button on the keyboard launches the first matching app. Adding an option to launch a web search instead would be relatively straight forward. (Doesn't work too well with auto-launch though)

Doesn't the first matching app gets launched directly as soon as the search bar identifies a unique name? At least thats the case with me.

Thats why I came up with the idea of snippets in the first place: you type in "gh" for GitHub for example and the app automatically launches.

@wassupluke
Copy link

the first matching app gets launched directly

Correct, if "Launch search results" is toggled on.

@jrpie
Copy link
Owner

jrpie commented Dec 21, 2024

Would it use a static search engine or a user preference engine?

The easiest way would be to use
Intent.ACTION_WEB_SEARCH.

Alternatively I could open a (user provided) URL like https://www.startpage.com/search?query=%s&language=auto

@wassupluke
Copy link

I'd say KISS for now with the intent and if enough users ask for the ability to use their own then you could tweak it down the road.

@jrpie jrpie changed the title [feature] Add snippets / ability to add snippets to quicker launch apps from the search bar. [feature] snippets Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants