githubnext / githubnext/monaspace

More granular options to ss01 and alternatives for (== and != and === and !==)

Open
#375 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
19.6k
Forks
322
PR merge metrics
No merged PRs in 30d

Description

The `ss01` option includes these ligatures seemingly inspired by Fira Code's `liga`:
- `==` becomes a wide equal sign with no visible gap
- `!=` adds a slash across this `==`
- `===` becomes a stack of three dashes
- `!==` adds a slash across this `===`

I was never fond of this, as it makes `=` and `==` less distinguishable and obfuscates the meaning of `===`. Thankfully, Fira Code offers an alternative via `ss08`:
- `==` merges somewhat but retains a small gap
- `!=` adds a slash across this `==` but the gap remains noticeable
- `===` merges somewhat but retains small gaps
- `!==` adds a slash across the middle `=` of this `===`

It would be nice if these were also available in Monaspace.

That said, this draws attention to a bigger issue: `ss01` includes many unrelated ligatures that you wouldn't want enabled in all contexts. For instance, the substitutions for `!~`, `~~`, `=~` and `~~` would make no sense in languages where `~` is the binary inverse operator, yet you can't leave them out if you want to enable the substitutions for `!=` and `!==`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.