Skip to content

wpoch/hyperlinks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperlinks

Extension for Hyper that automatically links URLs.

Demo

Usage

Install Hyper and add hyperlinks to plugins in ~/.hyper.js.

  • Focus on the Hyper window and Ctrl + C to abort opening url.
  • Hold Command key and click a link to open it within Hyper (instead of in your default browser).

Customizing styles

Add custom styles to termCSS in your ~/.hyper.js.

termCSS: `
  x-screen a {
    color: blue;
  }

  x-screen a.hover {
    text-decoration: none;
  }
`

Configuration

Change link target

defaultBrowser (boolean) Sets the location to open a clicked link. Holding the meta key while clicking will use the alternate target.

  • true - open links in the default browser
  • false - opens link in the current Hyper pane

Change click action

clickAction (string) Changes the action performed when clicking on a link If set, holding the meta key while clicking will open the link based on the defaultBrowser value.

  • 'open' - opens the link
  • 'copy' - pastes the link to your clipboard
  • 'ignore' - ignore non-Meta clicks on links
module.exports = {
  ...
  config: {
    ...
    hyperlinks: {
      clickAction: 'ignore',
      defaultBrowser: false
    }
    ...
  }
  ...
}

About

HyperTerm autolink extension

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%