- 07 Nov, 2021 4 commits
-
-
Gabriel Lisaca authored
-
Gabriel Lisaca authored
Original merge request at !13, and re-applied to current master.
-
Gabriel Lisaca authored
The previous code never had it for some reason.
-
Gabriel Lisaca authored
Completes !13 Commands of the form `exec COMMAND1 || COMMAND2 &` don't replace the process with the browser, presumably because the `&` operator backgrounds the whole `||` compound list. Furthermore, since `exec COMMAND1 || COMMAND2` is equivalent to `{ exec COMMAND1; } || { COMMAND2; }`, `COMMAND2` will never run even if `COMMAND1` fails. Therefore, the fallback wouldn't work anyway. Graphical remotes are off by default (see surfraw.conf.IN), so it should be okay to trust the user that their current browser supports remotes.
-
- 13 Aug, 2021 15 commits
-
-
Gabriel Lisaca authored
Updating because of !25.
-
Gabriel Lisaca authored
Allow elvi to specify their own completions. Also includes some miscellaneous cleanup and updates to elvi. See merge request !15
-
Gabriel Lisaca authored
-
Gabriel Lisaca authored
-
Gabriel Lisaca authored
This also removes a duplicate of the "tag" value in the help text for -search=
-
Gabriel Lisaca authored
Maybe the values of -dist= were that limited back then. But why weren't versions before 10.4 shown?
-
Gabriel Lisaca authored
According to Jason, category was removed as part of an upgrade to the AUR. See #14.
-
Gabriel Lisaca authored
So it appears that "freedb" was duplicated in the help because there are two FreeDB search categories--the normal one and one for IDs.
-
Gabriel Lisaca authored
It's a bit hacky, but it should do for the usecases I can think of: 1. quickly getting to the homepage of a package just thought of; or 2. getting to the homepage of a package you've downloaded. (1) is just a plain package name, and (2) is the `.dsc` and `control` file completion. It's pretty likely for the files to be close by, so the limits I've placed on (2) shouldn't interfere *too* much.
-
Gabriel Lisaca authored
Gentoo's package management confuses me, from what I could find from research on the internet. Package completions for Gentoo systems are for another time.
-
Gabriel Lisaca authored
Its args seem to be used for the "summary" field, which is more than just for a package name.
-
Gabriel Lisaca authored
Now the completions for these elvi can have the same behaviour they had before this branch. It's a bit unwieldy to do this for *every* elvis that needs it. Oh well. Customisability is good.
-
Gabriel Lisaca authored
This works on Debian-based systems like before, but also systems with `pacman`, `yum`, or `fink`. I don't actually have any of these systems though. I just used online documentation. The `pacman` support queries the remote repos for its completions. So, I wonder if completing on Arch has to make network requests every time. They also support hyphen-prefixed inputs, such as `sr $elvis -gcc<TAB>`. It's unlikely, but completing shouldn't spit out errors because of bad input. Hopefully yum and fink support the end-of-options convention.
-
Gabriel Lisaca authored
I tended to follow the options documented in the help output. Some were so big that I didn't want to do them fully, others were outdated, and some diverged from what the code actually did. As for `scpan`, I wonder why the env var for `-search=` is `SURFRAW_scpan_opts` instead of `SURFRAW_scpan_search`, which would be the usual. There's no semantic difference since nothing special is done to that value. Maybe for ease of remembering? The `W` elvis uses the default bash completer since it shouldn't complete random words. It's essentially an alias for `$SURFRAW_browser $some_url`. As for `aur`, its completions for `-language=` were taken from the languages mentioned explicitly by the code. I don't know what any of the other supported languages are, if any. The values of `-distro=` for `debcontents` and `debpackages` are outdated, but it's better to have completions than none at all. See #15 for updating this.
-
Gabriel Lisaca authored
Each elvis can now specify its completions. This should be agnostic to shells--it just needs to have a completion script written for it. This sources surfraw, so it needs to handle being run in a login shell. Otherwise, `w3_argv0` would execute `basename -bash` after expansion, and `basename` would try to parse `-bash` as the options `-b`, `-a`, etc.
-
- 21 Jun, 2021 2 commits
-
-
Jason Ryan authored
add Local option for archlinux.jp. See merge request !25
-
Takuro Onoue authored
-
- 12 Jun, 2021 2 commits
-
-
Gabriel Lisaca authored
Update AUTHORS and ChangeLog See merge request !23
-
Gabriel Lisaca authored
This is mostly for my contributions, since I neglected to do this at the time. Could some of my entries in the ChangeLog be merged? I don't know how they're typically put together. If I've missed anyone or this is inaccurate, let me know.
-
- 06 Apr, 2021 2 commits
-
-
sirdidymus authored
- 24 Feb, 2021 3 commits
-
-
Gabriel Lisaca authored
The website redirects to HTTPS but the search URL gets mangled and an empty page is returned.
-
Gabriel Lisaca authored
Support HTTPS in OpenSearch helpers Closes #9 See merge request !22
-
Gabriel Lisaca authored
Fixes #9. If there's no protocol in the input URL, it checks in this order: 1. HTTPS; then 2. HTTP. My Perl is very bad. If there are any glaring errors or bad style, please let me know.
-
- 16 Feb, 2021 2 commits
-
-
Gabriel Lisaca authored
Fixes #8. I've also removed an unusual use of `sv` (El Salvador). It was never documented in `--local-help` and was only used once, which was alongside `se` (Sweden). I also removed the `in` (India) argument for `-country=`. It just redirects to https://sellglobal.ebay.in/seller-central/seller-benefits/ I tried to make the code neater (at least to my tastes). It reads much easier now IMO.
- 27 Dec, 2020 1 commit
-
- 24 Dec, 2020 1 commit
-
-
Sascha authored
This commit will fix following error: .../bin/surfraw: line 487: test: too many arguments when surfraw is called with multiple browser arguments as seen in following command. SURFRAW_graphical=no \ SURFRAW_text_browser=w3m \ SURFRAW_text_browser_args="-dump -cols 2" \ surfraw duckduckgo hello --- Update AUTHORS and ChangeLog - Add change to ChangeLog - Add myself to AUTHORS
-
- 20 Nov, 2020 3 commits
-
-
oleskiewicz authored
-
oleskiewicz authored
- 12 Oct, 2020 1 commit
-
-
Gabriel Lisaca authored
Extraneous 'to' See merge request !18
-
- 11 Oct, 2020 1 commit
-
-
Stoned Elipot authored
-
- 29 Sep, 2020 2 commits
-
-
Anthony Cornehl authored
- 15 Aug, 2020 1 commit
-
-
Gabriel Lisaca authored
debbugs: add support for usertags search See merge request !6
-