rmuslimov / browse-at-remote

Browse target page on github/bitbucket from emacs buffers
233 stars 54 forks source link

Add defcustom to configure a path between host and filename #92

Open jvtrigueros opened 2 years ago

jvtrigueros commented 2 years ago

I ran into an issue where my remote type was using gitiles type, but between the host and the filename there was a custom path. At first, I tried to solve this with add-advice but it quickly became a mess, so it was much easier to provide this as an option.

browse-at-remote-append-path-to-host allows users of the package to customize the remote URL if needed:

<web-proto>://<host><path><filename>

This is my first PR to an emacs package so I'm not sure if this is the best way to go about it.

cpaulik commented 2 years ago

Could this be generalized to a full host replacement?

I'm looking into a fix for #70