All Projects → tyru → Open Browser Github.vim

tyru / Open Browser Github.vim

Licence: bsd-3-clause
Open GitHub URL of current file, etc. from Vim editor (supported GitHub Enterprise)

Projects that are alternatives of or similar to Open Browser Github.vim

Vertical Tabs Reloaded
Firefox add-on for arranging tabs vertically
Stars: ✭ 115 (-8.73%)
Mutual labels:  browser
Container Query
A PostCSS plugin and Javascript runtime combination, which allows you to write container queries in your CSS the same way you would write media queries.
Stars: ✭ 119 (-5.56%)
Mutual labels:  browser
Queue Microtask
fast, tiny `queueMicrotask` shim for modern engines
Stars: ✭ 124 (-1.59%)
Mutual labels:  browser
Cyb Archeology
🌎 Personal immortal robot for the The Great Web
Stars: ✭ 117 (-7.14%)
Mutual labels:  browser
Onionbrowser
An open-source, privacy-enhancing web browser for iOS, utilizing the Tor anonymity network
Stars: ✭ 1,702 (+1250.79%)
Mutual labels:  browser
Rpg
Online Role Playing Game (based on Laravel)
Stars: ✭ 121 (-3.97%)
Mutual labels:  browser
Sushi Browser
Sushi Browser is the next generation browser which mounts the multi-panel and the video support function and so on. Its goal is to be as fantastic as sushi. 🍣
Stars: ✭ 116 (-7.94%)
Mutual labels:  browser
Firefox Ios
Firefox for iOS
Stars: ✭ 10,638 (+8342.86%)
Mutual labels:  browser
Librefox
License: Mozilla Public License 2.0
Stars: ✭ 1,574 (+1149.21%)
Mutual labels:  browser
Marinara
Pomodoro® time management assistant for Chrome
Stars: ✭ 1,806 (+1333.33%)
Mutual labels:  browser
Node Blockly
Blockly for Node.js and Browser via CommonJS module
Stars: ✭ 117 (-7.14%)
Mutual labels:  browser
Marionette
Selenium alternative for Crystal. Browser manipulation without the Java overhead.
Stars: ✭ 119 (-5.56%)
Mutual labels:  browser
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+1606.35%)
Mutual labels:  browser
Kosmonaut
A web browser engine for the space age 🚀
Stars: ✭ 1,531 (+1115.08%)
Mutual labels:  browser
Kdeconnect Chrome Extension
A browser extension to send pages and content from your browser to connected KDE Connect devices.
Stars: ✭ 124 (-1.59%)
Mutual labels:  browser
Mylittledom
High-level DOM-like terminal interface library
Stars: ✭ 116 (-7.94%)
Mutual labels:  browser
Wendigo
A proper monster for front-end automated testing
Stars: ✭ 121 (-3.97%)
Mutual labels:  browser
Cyb
Immortal robot for the Great Web
Stars: ✭ 126 (+0%)
Mutual labels:  browser
Swift Selection Search
Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
Stars: ✭ 125 (-0.79%)
Mutual labels:  browser
Foot traffic
Pure Ruby DSL for Chrome scripting based on Ferrum. No Selenium required. Works from any script. Simulate web app usage scenarios in production or locally.
Stars: ✭ 123 (-2.38%)
Mutual labels:  browser

open-browser-github.vim

About

Opens GitHub URL of current file, etc. from Vim. Also supports GitHub Enterprise.

Install

This plugin requires:

Usage

There are 4 commands.

:OpenGithubFile

Opens a specific file in github.com repository(it also opens in the current branch by default).

" Opens current files URL in github.com
:OpenGithubFile
" Opens current files highlighted place in github.com 
:'<,'>OpenGithubFile
" Opens a specific file in github.com
:OpenGithubFile PATH/TO/FILE

:OpenGithubIssue

Opens a specific Issue.

" Opens current repositories Issue #1
:OpenGithubIssue 1
" Opens a specific repositories Issue #1
:OpenGithubIssue 1 tyru/open-browser.vim
" Opens current repositories Issue List
:OpenGithubIssue
" Opens a specific repositories Issue list
:OpenGithubIssue tyru/open-browser.vim

:OpenGithubPullReq

This command opens /pulls page when it has no argument. Otherwise, it does entirely the same thing as :OpenGithubIssue since GitHub redirects /issues/1 to /pull/1 if #1 is a Pull Request.

:OpenGithubProject

Opens a project page.

" Opens current opening file's repository.
" ex) https://{hostname}/{user}/{name}
:OpenGithubProject

" Opens current opening file's repository.
" ex) https://{hostname}/tyru/open-browser.vim
:OpenGithubProject tyru/open-browser.vim

GitHub Enterprise setting

If you have hub command

If you have hub command in your PATH, openbrowser-github executes the following command:

hub browse -u -- {path}

And it will open the returned (output) URL.

If you don't have hub command

If you don't have hub command in your PATH, openbrowser-github tries to get each part of URL from the following gitconfig key:

  • hub.host

You can specify GitHub Enterprise repository URL by setting above keys in gitconfig.

For example, you can set hub.host by executing the following command in your git repository which you want to specify GitHub Enterprise repository URL.

git config --local hub.host my.git.org
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].