Browse current file on corresponding Git management website.
- Quickly navigate to the current file and line on Git management websites.
- Supports popular Git management platforms like GitHub and GitLab.
Add the following to your Emacs configuration:
(use-package git-browse
:ensure t
:config
(global-set-key (kbd "C-c g") 'git-browse-current-line))-
Clone the repository:
git clone https://github.com/rails-to-cosmos/git-browse.git
-
Add the following to your Emacs configuration:
(add-to-list 'load-path "/path/to/git-browse") (require 'git-browse) (global-set-key (kbd "C-c g") 'git-browse-current-line)
- Open a file that is part of a Git repository in Emacs.
- Move the cursor to the line you want to browse on the Git management website.
- Run the command
git-browse-current-line(default keybinding:C-c g). - Your default web browser will open the corresponding file and line on the Git management website.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.