Closed jrkong closed 5 years ago
I can work on this one
Go for it! I want to link this issue to issue #11 as I would love to have a discussion on the delimiter we'll use for this. However don't let issue #11 block you, a temp delimiter is fine for this issue. The main goal is to implement multiple searches.
Well I found two different ways to implement multiple searches.
putting searches into quotes:
pySearch -s "Search one" "Search two"
or Using the same -s
option multiple times
pySearch -s Search one -s search two
I've gotten both methods to work but the first one makes quotes necessary even when searching one thing so i think the second one is better since it still works without quotes
@Mera-Gangapersaud I made a mistake with the PR, I didn't do enough testing. Your changes as they are creates a bit of a regression. This really makes me wish we had tests right now. Sorry about closing and merging prematurely hopefully you don't mind amending the PR(assuming it's still possible) or creating a new PR.
If a delimiter is found, pySearch should open a new tab for each subsequent search. Take a look at the webbrowser module to get started with this.