All Projects → rmuslimov → Browse At Remote

rmuslimov / Browse At Remote

Browse target page on github/bitbucket from emacs buffers

Projects that are alternatives of or similar to Browse At Remote

Github Updater
This WP plugin will update GitHub, Bitbucket, GitLab, and Gitea hosted plugins and themes
Stars: ✭ 2,893 (+1766.45%)
Mutual labels:  gist, gitlab, bitbucket
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+427.74%)
Mutual labels:  gist, gitlab, bitbucket
Trackdown
TrackDown - Issue Tracking with plain Markdown. If you are missing the "git clone" for your tickets from github.com or bitbucket.org, then this is for you. A lightweight Ticketing System for distributed and unconnected small Teams.
Stars: ✭ 10 (-93.55%)
Mutual labels:  gitlab, bitbucket
Scm Backup
Makes offline backups of your cloud hosted source code repositories
Stars: ✭ 38 (-75.48%)
Mutual labels:  gitlab, bitbucket
Git Copy History
Copy commit history from another repository
Stars: ✭ 84 (-45.81%)
Mutual labels:  gitlab, bitbucket
Git Touch
An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Stars: ✭ 663 (+327.74%)
Mutual labels:  gitlab, bitbucket
Scala Steward
🤖 A bot that helps you keep your Scala projects up-to-date
Stars: ✭ 812 (+423.87%)
Mutual labels:  gitlab, bitbucket
Notes
Some public notes
Stars: ✭ 1,248 (+705.16%)
Mutual labels:  gitlab, bitbucket
Git Deploy
Php Script for Auto-Pull in server (Using WebHook from GitLab, GitHub and Bitbucket)
Stars: ✭ 495 (+219.35%)
Mutual labels:  gitlab, bitbucket
Integram
Integrate Telegram into your workflow – Trello, Gitlab, Bitbucket and other bots
Stars: ✭ 1,365 (+780.65%)
Mutual labels:  gitlab, bitbucket
Gittar
🎸 Download and/or Extract git repositories (GitHub, GitLab, BitBucket). Cross-platform and Offline-first!
Stars: ✭ 87 (-43.87%)
Mutual labels:  gitlab, bitbucket
Gitmails
An information gathering tool to collect git commit emails in version control host services
Stars: ✭ 142 (-8.39%)
Mutual labels:  gitlab, bitbucket
Webhooks
🎣 Webhook receiver for GitHub, Bitbucket, GitLab, Gogs
Stars: ✭ 601 (+287.74%)
Mutual labels:  gitlab, bitbucket
Renovate
Universal dependency update tool that fits into your workflows.
Stars: ✭ 6,700 (+4222.58%)
Mutual labels:  gitlab, bitbucket
Vssue
📫 A Vue-powered Issue-based Comment Plugin
Stars: ✭ 496 (+220%)
Mutual labels:  gitlab, bitbucket
Export Pull Requests
Export pull requests and/or issues to a CSV file. Supports GitHub, GitLab, and Bitbucket
Stars: ✭ 68 (-56.13%)
Mutual labels:  gitlab, bitbucket
Android Ci
A docker image for building Android apps. Supports multiple SDK Build Tools.
Stars: ✭ 101 (-34.84%)
Mutual labels:  gitlab, bitbucket
Codestream
The Code Collaboration Tool Built for Remote Teams
Stars: ✭ 459 (+196.13%)
Mutual labels:  gitlab, bitbucket
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+2926.45%)
Mutual labels:  gitlab, bitbucket
Git History Browser Extension
Agrega un botón a la interfáz de archivos de github para ver su historial / Add a button to the github file interface to see its history
Stars: ✭ 87 (-43.87%)
Mutual labels:  gitlab, bitbucket

.. image:: http://melpa.org/packages/browse-at-remote-badge.svg :target: http://melpa.org/#/browse-at-remote

browse-at-remote.el

This package is easiest way to open particular link on github/gitlab/bitbucket/stash/git.savannah.gnu.org/sourcehut from Emacs. It supports various kind of emacs buffer, like:

  • file buffer
  • dired buffer
  • magit-mode buffers representing code
  • vc-annotate mode (use get there by pressing C-x v g by default)

Installation:

Add browse-at-remote to your Cask file:::

(depends-on "browse-at-remote")

Manual


Simply add this package to your emacs path, and add to .emacs,::

(require 'browse-at-remote)

Active keybindings for browse-at-remote function:::

(global-set-key (kbd "C-c g g") 'browse-at-remote)

GNU Guix


Run guix package -i emacs-browse-at-remote then load browse-at-remote from your Emacs init.

Customization

Remote types


By default browse-at-remote knows how to work with popular remote types (github/gitlab..). Knowledge how to work with certain remote-type comes from mapping browse-at-remote-remote-type-domains. It defines that github.com should be treat in github manner, bitbucket.org in bitbucket manner and so on. In your development you may have some specific git-url, and browse-at-remote will before confuse which remote-type map to your domain.

Two solution available:

  1. In that case you can to customize that. (M-x customize ... browse-at-remote-remote-type-domains). For now our package supports next remote-types:

    • bitbucket.com
    • gitlab.com
    • github.com
    • Stash
    • git.savannah.gnu.org
    • gist.github.com
    • Phabricator
    • git.sr.ht
    • pagure.io
  2. Set specific remote-type directly in git repo. For example, if your repository is hosted on GitHub enterprise, you should add following setting to its config::

    git config --add browseAtRemote.type "github"

    or for private Stash repository use command::

    git config --add browseAtRemote.type "stash"

Excluding line number if no region is selected


By default browse-at-remote add line number when region is not selected in file attached buffer. If you don't like that and what to see no line information URL, it's possible to disable that by adding:::

(setq browse-at-remote-add-line-number-if-no-region-selected nil)

Or setting via UI with M-x customize.

Adding new remote type

You can your own remote if you need - PRs are welcome! Please see good examples here: gnu-savannah-remote_, or stash-remote_.

Usage:

  1. Call function from emacs buffer::

    M-x browse-at-remote

    or::

    M-x bar-browse

    .. image:: http://i.imgur.com/rmAky8e.png

    or just call C-c g g if you've already added binding before. You can use this command in dired buffers too.

  2. Target page at github/bitbucket will be opened using your default browser:

    .. image:: http://i.imgur.com/wBW9Gov.png alt: screenshot of page at github

    or same here is folder view at bitbucket:

    .. image:: http://i.imgur.com/XuzLhcR.png alt: screenshot page tree at bibucket

  3. Opening github commit's page at magit-commit-mode, magit-log-mode:

    .. image:: http://i.imgur.com/NzlIHYr.png alt: screenshot of magit-log-mode

  4. Open last commit which added target line:

    .. image:: http://i.imgur.com/lpmOAz2.png alt: screen of vc-annotate-mode

    • Press C-x v g to call standard vc-annotate
    • Call browse-at-remote on target line

Contributors:

  • @rmuslimov_
  • @env0der_
  • @ben_
  • @duff_
  • @Wilfred_
  • @yauhen-l_
  • @ieure_
  • @wigust_
  • @CyberShadow_
  • @kuba-orlik_
  • @jwhitbeck_
  • @microamp_
  • @FrostyX_

Changelog:

0.14.0


New remote type added Pagure by @FrostyX_. New configuration option browse-at-remote-add-line-number-if-no-region-selected allowing add or not line number when target page open and region initially is not selected.

0.13.0


New remote type added Sourcehut by @microamp_.

0.12.0


New remote type added Phabricator by @kuba-orlik_.

0.11.0


New remote type added gist.github.com by @CyberShadow_.

0.10.0


New remote type added git.savannah.gnu.org by @wigust_.

0.9.0


Minor fixes, added Stash (bitbucket support) by @yauhen-l_.

0.8.0


Drop clojure-style function namings. Add abbrev methods like bar-browse and bar-to-clipoboard (where bar is browse-at-remote abbrev.)

0.7.0


Major refactorings by @ieure_. Main function renamed to browse-at-remote/browse. (renamed in 0.8.0 to bar-browse)

0.6.0


Added support of Gitlab by @env0der_. Thanks!

0.5.0


Added support of Github Enterprice. Special thanks for @env0der_ for this feature.

0.4.0


Function browse-at-remote/to-clipboard were added (renamed in 0.8.0 to bar-to-clibpoard)

TODO:

  • Add mercurial support

.. _@rmuslimov: https://github.com/rmuslimov .. _@env0der: https://github.com/env0der .. _@Wilfred: https://github.com/Wilfred .. _@ben: https://github.com/ben .. _@duff: https://github.com/duff .. _@ieure: https://github.com/ieure .. _@yauhen-l: https://github.com/yauhen-l .. _@wigust: https://github.com/wigust .. _@CyberShadow: https://github.com/CyberShadow .. _@kuba-orlik: https://github.com/kuba-orlik .. _@jwhitbeck: https://github.com/jwhitbeck .. _@microamp: https://github.com/microamp .. _@FrostyX: https://github.com/FrostyX .. _stash-remote: https://github.com/rmuslimov/browse-at-remote/pull/34/files .. _gnu-savannah-remote: https://github.com/rmuslimov/browse-at-remote/pull/46/files

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].