Skip to content

mihai-dinu/bitbucket-server.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Bitbucket Server integration

The plugin provides some handy functions for interacting with a Bitbucket Server git server:

  • M-x bitbucket-server-open-pr will open a browser webpage to your Bitbucket Server pull request creation page
  • M-x bitbucket-server-open-file will open a browser webpage to your Bitbucket Server pointing to the current buffer where the command was ran
  • M-x bitbucket-server-open-file-at-point will open a browser webpage to your Bitbucket Server pointing to the current buffer and the current line number
  • M-x bitbucket-server-copy-file-url will add the Bitbucket Server current buffer URL to the kill-ring (clipboard).
  • M-x bitbucket-server-copy-file-url-with-line-number will add the Bitbucket Server current buffer URL, with line number, to the kill-ring (clipboard).

Caution: This plugin does not work with Bitbucket Cloud (https://bitbucket.org)

When running a command for the first time, you will be prompted to add the Bitbucket Server URL (e.g. https://mybitbucket.com). This is stored in the bitbucket-server-url variable, but it will be cleared once you exit Emacs. To avoid being prompted every time, set the variable in your init.el file.

(setq bitbucket-server-url "https://mybitbucket.com")

More functionality to come...

Prerequisites

  • magit
  • projectile

Install

Doom Emacs

  1. Download the bitbucket-server.el file to ~/.doom.d/lisp

    wget https://raw.githubusercontent.com/mihai-dinu/bitbucket-server.el/master/bitbucket-server.el -O ~/.doom.d/lisp/bitbucket-server.el
  2. Add (load! "lisp/bitbucket-server") to ~/.doom.d/config.el

Vanilla Emacs

  1. Download the bitbucket-server.el file to ~/.emacs.d/lisp

    wget https://raw.githubusercontent.com/mihai-dinu/bitbucket-server.el/master/bitbucket-server.el -O ~/.emacs.d/lisp/bitbucket-server.el
  2. Add (load "lisp/bitbucket-server") to your Emacs init file

Tested with Emacs 26.3 and Bitbucket Server 5.8.0

About

Some basic Bitbucket Server functionality for Emacs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published