Support incomplete usernames #6

Open
opened 2024-04-07 16:33:56 +02:00 by cake · 4 comments

When trying to install fxsdk, I have the following:

giteapc install fxsdk
error: multiple remote repositories match 'fxsdk': Lephenixnoir/fxsdk, Slyvtt/fxsdk

This is great, but "Lephenixnoir" is long to type and I, like a lot of developers, am lazy, so I tried:

$ giteapc install L/fxsdk
error: no such local or remote repository: 'L/fxsdk'

This is canonical, but is not currently supported by giteapc. Maybe it should? :)

When trying to install fxsdk, I have the following: ``` giteapc install fxsdk error: multiple remote repositories match 'fxsdk': Lephenixnoir/fxsdk, Slyvtt/fxsdk ``` This is great, but "Lephenixnoir" is long to type and I, like a lot of developers, am lazy, so I tried: ``` $ giteapc install L/fxsdk error: no such local or remote repository: 'L/fxsdk' ``` This is canonical, but is not currently supported by giteapc. Maybe it should? :)
Owner

It's a tad annoying because normally with this syntax giteapc just queries the appropriate URL from the forge, while this requires a full search every time. I'd consider doing something like yay, but because I already use keywords as subcommands (compared to e.g. -S) I'm not sure the interface would be clean

It's a tad annoying because normally with this syntax giteapc just queries the appropriate URL from the forge, while this requires a full search every time. I'd consider doing something like yay, but because I already use keywords as subcommands (compared to e.g. `-S`) I'm not sure the interface would be clean
Author

You already do a full query with local filtering when one types <repo> instead of <username>/<repo> I think? Plus, since there isn't a lot of repositories with the giteapc tag, this shouldn't cause performance issues, and make the tool a lot more user-friendly.

You already do a full query with local filtering when one types `<repo>` instead of `<username>/<repo>` I think? Plus, since there isn't a lot of repositories with the `giteapc` tag, this shouldn't cause performance issues, and make the tool a lot more user-friendly.
Owner

Yeaah I kinda think that'd be a useful thing too. Let's just take 3 seconds to see if there's a variation where you explicitly say you want some fuzzy matching, cause I'm not super fond of the fact that creating an account named L changes the matching.

  • */fxsdk?
  • fxsdk alone without a / (which cannot be a full repo name) does the search and interactively prompts you to select one if there's more than one?
  • Other options?
Yeaah I kinda think that'd be a useful thing too. Let's just take 3 seconds to see if there's a variation where you explicitly say you want some fuzzy matching, cause I'm not super fond of the fact that creating an account named L changes the matching. - `*/fxsdk`? - `fxsdk` alone without a / (which cannot be a full repo name) does the search and interactively prompts you to select one if there's more than one? - Other options?
Author
  • The wildcard * is more difficult to achieve on certain keyboards, such as Mac keyboards, where you need to use Shift. (I use one professionally, and while it's not the most annoying character I have to type (backslash is), it's still one)
  • Indeed, but le/gint would not have you pick a choice in most cases (unless Lenainnoir comes back and forks gint)
  • I don't really see other options as of today, but maybe I'll have more later :)
- The wildcard `*` is more difficult to achieve on certain keyboards, such as Mac keyboards, where you need to use Shift. (*I use one professionally, and while it's not the most annoying character I have to type (backslash is), it's still one*) - Indeed, but `le/gint` would not have you pick a choice in most cases (unless `Lenainnoir` comes back and forks gint) - I don't really see other options as of today, but maybe I'll have more later :)
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Lephenixnoir/GiteaPC#6
No description provided.