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

    Install

    npm i hyperlinks

    DownloadsWeekly Downloads

    69

    Version

    0.5.0

    License

    MIT

    Last publish

    Collaborators

    • javierbyte
    • kayernyc
    • janory
    • goncy
    • codyogden
    • feedthejim
    • tilly3g
    • wits
    • feugy
    • gbibeaulaviolette
    • megbird
    • dizzyup
    • vin-e
    • edgarcerecerezv
    • livcarman
    • segunadebayo
    • pm24601
    • sambecker
    • craigandrews
    • mjakobis
    • kale-stew
    • chloe.tedder
    • pbto
    • daniel.campbell
    • arian-vercel
    • nuta
    • almonk
    • samselikoff
    • dcartertwo
    • baruchadi
    • ejc
    • aaorris
    • doque
    • ryanto
    • nathanhammond
    • snokohn
    • johnphamous
    • tknickman
    • agadzik
    • thomcrowe
    • emeraldsanto
    • ecklf
    • timeyoutakeit
    • cramforce
    • balazs4
    • casey.gowrie
    • samuel.foster
    • swarnavasengupta
    • lydiahallie
    • ethan_arrowood
    • kwonoj
    • kakadiadarpan
    • amanhimself_
    • endangeredmassa
    • nick.tracey
    • reconbot
    • schlez
    • crowterli
    • gsoltis
    • epallerols
    • domysee
    • nwienert
    • arbw
    • stephdietz
    • gudmundur
    • marcgreenstock
    • vvo
    • falcoagustin
    • nabsul
    • bmealey
    • maedahbatool
    • brethudson
    • matt.straka
    • jasongullickson
    • f3d0r
    • gaspar09
    • jtaylor0196
    • pieparker
    • kelly
    • dferber90
    • healeycodes
    • broph123
    • codybrouwers
    • gdborton
    • jeffreyarneson
    • ebb-tide
    • msimulcik
    • domeccleston
    • nutlope
    • hungrybearstudio
    • codetaromiura
    • gkaragkiaouris
    • geovanisouza92
    • dglsparsons
    • lostinpatterns
    • vercel-release-bot
    • southpolesteve
    • matheuss
    • igorklopov
    • nkzawa
    • tootallnate
    • rauchg
    • timneutkens
    • javivelasco
    • iamevilrabbit
    • kdy1
    • quietshu
    • styfle
    • zeit-bot
    • lucleray
    • mglagola
    • andybitz
    • paulogdm
    • anatrajkovska
    • timer
    • arzafran
    • ijjk
    • lfades
    • msweeneydev
    • williamli
    • ragojose
    • guybedford
    • skllcrn
    • janicklas-ralph
    • atcastle
    • spanicker
    • housseindjirdeh
    • gmonaco
    • kikobeats
    • prateekbh
    • jkrems
    • jaredpalmer
    • gielcobben
    • chibicode
    • nazarenooviedo
    • samsisle
    • okbel
    • hankvercel
    • leerobinson
    • elsigh
    • julianbenegas
    • rizbizkits
    • sokra
    • cl3arglass
    • chriswdmr
    • ernestd
    • ismaelrumzan
    • jhoch
    • mitchellwright
    • mrmckeb
    • kuvos
    • creationix
    • huozhi
    • cmvnk
    • ktcarter
    • padmaia
    • delba
    • catsaremlg
    • steventey
    • gsandhu
    • dbredvick