Conveniently searching GitLab

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Conveniently searching GitLab

Ben Gamari-2
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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

signature.asc (497 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Conveniently searching GitLab

Ben Gamari-2
Ben Gamari <[hidden email]> writes:

> 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

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

signature.asc (497 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Conveniently searching GitLab

Brandon Allbery
In reply to this post by Ben Gamari-2
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 <[hidden email]> wrote:
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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


--
brandon s allbery kf8nh

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs