junegunn / fzf-git.sh

bash and zsh key bindings for Git objects, powered by fzf
612 stars 53 forks source link

Ensure 'open in browser' contains file path #20

Closed stoyandimov closed 1 year ago

stoyandimov commented 1 year ago

When opening a file in a browser from a repository sub-folder (CTRL-G CTRL-F and CTRL-O) the browser shows GitHub's 404 page because the file path is not included.

This PR will prefix the file path relative to the root of the repo.

Fixes https://github.com/junegunn/fzf-git.sh/issues/19

junegunn commented 1 year ago

Nice catch, thanks!