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

Search that spans both repos and AUR #88

Closed
fosskers opened this issue Apr 8, 2013 · 17 comments
Closed

Search that spans both repos and AUR #88

fosskers opened this issue Apr 8, 2013 · 17 comments

Comments

@fosskers
Copy link
Owner

fosskers commented Apr 8, 2013

A new long suboption? aura -As --wide?

@Bubu
Copy link

Bubu commented Apr 9, 2013

Just as a random thought, what about aura -ASs <name>? That's what I actually tried if it already worked. But I don't know if this makes actually any sense. The --wide option would fine work of course.

@fosskers
Copy link
Owner Author

fosskers commented Apr 9, 2013

I actually thought of that too, but for technically reasons it would be a terrible mess to implement it that way.

@Bubu
Copy link

Bubu commented Apr 9, 2013

Alright, I'll just make an alias then I guess :-).

@fosskers
Copy link
Owner Author

fosskers commented Apr 9, 2013

--wide is kind of ambiguous though. Any better names?
Or perhaps just aura -Ass? Double-up the s? But then it spells a naughty word... Not that letter order matters. You could do it -ssA or -sAs and it would work the same way. Note that this would be pretty easy to do.

@rmarquis
Copy link

rmarquis commented Apr 9, 2013

--all?

aura -Ass isn't a good idea, really :P

@Bubu
Copy link

Bubu commented Apr 9, 2013

What about -Asr with -r for repositories?
(That would hog another letter of course...)

Otherwise, if you'd rather want to implement a long option I'd say --search-all or --search-repos should work? with command line completion the length doesn't matter and it's more descriptive that way.

@Jiehong
Copy link
Contributor

Jiehong commented Apr 9, 2013

What about -Fs? (for full search (AUR & repos))

@fosskers
Copy link
Owner Author

fosskers commented Apr 9, 2013

Capital letters usually represent a whole family of operations, and I'm not about to fuse the AUR and the Repos on any other fronts.

@dkasak
Copy link
Contributor

dkasak commented Apr 10, 2013

Any choice is necessarily going to be a bit silly since it's asymmetric (why is -A, an AUR flag, searching the repos?). It would be really nice if we could get -SAs to work, but I know it'd be a mess. :\

@fosskers
Copy link
Owner Author

Once again the power of taking a shower has bestowed the solution upon me: I won't implement this after all. The desired output can easily be obtained with a simple shell function (here's a fish example):

function search
  aura -Ss $argv; aura -As $argv
end

@Bubu
Copy link

Bubu commented Apr 11, 2013

That was too easy, and works exactly as it should :-).
I'd add the bash version of that to the wiki page if you don't mind?

@fosskers
Copy link
Owner Author

Sure, please.

@dkasak
Copy link
Contributor

dkasak commented Apr 11, 2013

@fosskers, excellent choice, I was hoping you'd say that!

@fosskers
Copy link
Owner Author

I swear man, taking a shower works every time.

@flamusdiu
Copy link

Nice @fosskers ; as a side note, might want to integrate this more easily with the the install of aura ... maybe adding another binary such as "aura_search" or something. May make it easier for new people to Aura to know this exists and make it more friendly without having to create a separate shell function.

@fosskers
Copy link
Owner Author

I'll add it to the man page. We're Arch users, remember.

@flamusdiu
Copy link

True. =)

Adding to the man page would be great as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants