Conveniently searching GitLab

Hello everyone, I've long found GitLab's search interface to be rather clunky. Several of the issues I've noted have been reported upstream but progress in resolving them seems to be slow. Consequently, I have implemented a workaround [1] which addresses most of my typical use-cases. This is essentially a thin wrapper around GitLab's various search facilities which intelligently routes requests according to a simple (and hopefully intuitive) query syntax. For instance, to * navigate to GHC issue #123: search for `#123` * search for GHC issues related to unboxed tuples: search for `# unboxed tuples` * navigate to the `ghc/head.hackage` project: search for `ghc/head.hackage>` * navigate to merge request !3 of the `ghc/head.hackage` project: search for `ghc/head.hackage!3` * navigate to commit e130fb57f7991575d848612abafe9ad10129131c of the `ghc/ghc` project: search for `ghc/ghc@e130fb57f7991575d848612abafe9ad10129131c` * search for merge requests of `haskell/ghcup` pertaining to Darwin: search for `haskell/ghcup! Darwin` Note that, as seen in the first two examples, the project name defaults to `ghc/ghc` if omitted. This interface is best used via your browser's search keywords feature [2]. To add a search keyword in Firefox you can right click on the search query input field and select "Add search keyword". To my surprise I didn't find a similarly convenient shortcut in Chromium. If you can think of any way in which the service can be improved, feel free to open a pull request against the upstream repository [3]. Cheers, - Ben [1] https://search.gitlab.haskell.org/ [2] http://kb.mozillazine.org/Using_keyword_searches [3] https://gitlab.haskell.org/bgamari/gitlab-search-service

Ben Gamari
Hello everyone,
...
* search for merge requests of `haskell/ghcup` pertaining to Darwin: search for `haskell/ghcup! Darwin`
Unfortunately this example doesn't quite work as I haven't implemented the necessary logic to lookup project IDs from project names. I likely won't get to it in the near future. Perhaps this would be a nice project for someone with a few free minutes. Cheers, - Ben

You can define them in the settings; what's odd about them is that it's
part of "Manage search engines". Which is at the bottom of the right click
menu in the location bar (with "edit" instead of "manage", so it should be
just as easy to do.
On Tue, Aug 6, 2019 at 12:41 PM Ben Gamari
Hello everyone,
I've long found GitLab's search interface to be rather clunky. Several of the issues I've noted have been reported upstream but progress in resolving them seems to be slow.
Consequently, I have implemented a workaround [1] which addresses most of my typical use-cases. This is essentially a thin wrapper around GitLab's various search facilities which intelligently routes requests according to a simple (and hopefully intuitive) query syntax. For instance, to
* navigate to GHC issue #123: search for `#123`
* search for GHC issues related to unboxed tuples: search for `# unboxed tuples`
* navigate to the `ghc/head.hackage` project: search for `ghc/head.hackage>`
* navigate to merge request !3 of the `ghc/head.hackage` project: search for `ghc/head.hackage!3`
* navigate to commit e130fb57f7991575d848612abafe9ad10129131c of the `ghc/ghc` project: search for `ghc/ghc@e130fb57f7991575d848612abafe9ad10129131c`
* search for merge requests of `haskell/ghcup` pertaining to Darwin: search for `haskell/ghcup! Darwin`
Note that, as seen in the first two examples, the project name defaults to `ghc/ghc` if omitted.
This interface is best used via your browser's search keywords feature [2]. To add a search keyword in Firefox you can right click on the search query input field and select "Add search keyword". To my surprise I didn't find a similarly convenient shortcut in Chromium.
If you can think of any way in which the service can be improved, feel free to open a pull request against the upstream repository [3].
Cheers,
- Ben
[1] https://search.gitlab.haskell.org/ [2] http://kb.mozillazine.org/Using_keyword_searches [3] https://gitlab.haskell.org/bgamari/gitlab-search-service _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-- brandon s allbery kf8nh allbery.b@gmail.com
participants (2)
-
Ben Gamari
-
Brandon Allbery