hyperlinks

0.5.0 • Public • Published

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
    }
    ...
  }
  ...
}

Readme

Keywords

Package Sidebar

Install

npm i hyperlinks

Weekly Downloads

17

Version

0.5.0

License

MIT

Last publish

Collaborators

  • gdborton
  • matheuss
  • matt.straka
  • nick.tracey
  • zeit-bot
  • vercel-release-bot