Hyper: Method to enable font ligatures in the 2.0.0 series

Created on 30 Mar 2018  路  6Comments  路  Source: vercel/hyper

  • [ ] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate

All of the methods I've found for enabling font ligatures do not work in the 2.0.0 series of releases. Is there an example of the correct CSS for 2.0.0?

Plugin Request

Most helpful comment

@BenMcH you can use https://www.npmjs.com/package/hyper-font-ligatures which adds the xterm plugin for you 馃帀

Installation

Using the built-in Hyper plugin manager

$ hyper i hyper-font-ligatures

Using the .hyper.js file

Open the ~/.hyper.js file using your favorite text editor and edit the
plugins array to include hyper-font-ligatures:

plugins: ['hyper-font-ligatures'],

In both cases, a 'Full Reload' (View -> Full Reload) is required.

All 6 comments

@mapitman - Hi Mark - according to comments on #914, hyper does not support ligatures due to current limitations with xterm3. That project still has ligatures as an open feature request according to the link below

Thanks @chaseleinart . I'll go ahead and close this issue then.

Looks like they published an official addon to enable font ligatures support: https://github.com/xtermjs/xterm-addon-ligatures

@SirWindfield Great catch! I just built hyper locally with that addon. I had to precompile the library (because it's typescript) and I ended up throwing it in the lib directory, but I was able to get ligatures working.

If I can figure out a better way to include this change and get it building, I'll submit a PR!

@mapitman We may want to reopen this now that it's been shown to work with the addon from xterm.

@BenMcH you can use https://www.npmjs.com/package/hyper-font-ligatures which adds the xterm plugin for you 馃帀

Installation

Using the built-in Hyper plugin manager

$ hyper i hyper-font-ligatures

Using the .hyper.js file

Open the ~/.hyper.js file using your favorite text editor and edit the
plugins array to include hyper-font-ligatures:

plugins: ['hyper-font-ligatures'],

In both cases, a 'Full Reload' (View -> Full Reload) is required.

Keep in mind this is very much in the early stages as it's using a beta build of the ligatures addon. We're still finalized on the API exposed in xterm.js, which means this might break at one point (and need xterm-addon-ligatures updated).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

silvenon picture silvenon  路  94Comments

0x80 picture 0x80  路  45Comments

mofux picture mofux  路  68Comments

rofazayn picture rofazayn  路  65Comments

glockjt picture glockjt  路  50Comments