Skip to content

Open things that look like GitHub URLs (like "foo/bar") in your browser. Supports Ruby, Go, NPM and plain text.

Notifications You must be signed in to change notification settings

gabebw/vim-github-link-opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

vim-github-link-opener

Ever seen something like this?

gem "github/linguist"

Or this?

Check out gabebw/dotfiles for more.

Or what about this (in Go files):

import (
  "github.com/spf13/cobra"
  "github.com/stretchr/testify/assert"
)

Or npm packages (uses npm repo):

const jwt = require('jsonwebtoken');
import jwt from 'jsonwebtoken';

Wouldn't it be cool if you could quickly open https://github.com/github/linguist, https://github.com/gabebw/dotfiles, https://github.com/spf13/cobra, https://github.com/stretchr/testify or https://github.com/auth0/node-jsonwebtoken?

This plugin lets you do exactly that!

It's exactly like visiting other URLs in vim: type gx when your cursor is anywhere in the string, and this plugin will open the GitHub project in your browser.

It won't change how gx treats other URLs. They'll still work. And if you use @christoomey's excellent vim-quicklink, that will keep working too.

Installation

With vim-plug:

Plug 'gabebw/vim-github-link-opener', {'branch': 'main'}

Then run :PlugInstall.

About

Open things that look like GitHub URLs (like "foo/bar") in your browser. Supports Ruby, Go, NPM and plain text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •