-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I would like to request the following command for Yantra Launcher:
Command name:
which [app name]
Description:
Lists all installed apps with the specified app name.
Example 1:
which Messages
Fetching apps...
Found 2 apps
- Messages (com.samsung.android.messaging)
- Messages (com.google.android.apps.messaging)
Example 2:
which Authenticator
Fetching apps...
Found 2 apps
- Authenticator (com.google.android.apps.authenticator2)
- Authenticator (com.azure.authenticator)
Extra Information:
This would be really useful for people, like me, who have multiple apps with common names, want to look for its package name, and don't want to search though their massive app list to find it.
Implementation shouldn't be too difficult as well, as most code should be able to be taken from the list command. However, I have a suspicion that the list command does not have a failsafe for a phone with zero apps installed. This "which" command will need that failsafe in the event the user types an app name they do not have installed / misspells an app name.
Failsafe reccomendation:
which abc xyz
Fetching apps...
'abc xyz' not found. Check your spelling, or use 'list apps' to get list of all app names.
Thank you for considering my command request.
- Thomas
Edit: I just found out that the proper linux command is actually "find [app name]".
With that in mind, either one works with me.