Skip to content

Ligatures for <>, <->, <=> #346

Description

@Niels-NTG

Is your feature request related to a problem? Please describe.
Recursive currently doesn't have support for ligatures for the character combinations of <>, <-> and <=>.

Describe the solution you'd like
<>, also known as the diamond operator is common in Java and C# (eg. LinkedHashMap<String, String> newRow = new LinkedHashMap<>(); and apparently also in Perl and VBA.` Would be nice if Recursive could render this as an actual diamond shape.

While as far as I know <-> is not an operator in any programming language, a ligature for it would be a logical addition if Recursive would have a ligature for <=>, also known as the Spaceship Operator.

Here's how Fira Code (at the bottom) renders the aforementioned character combinations as compared to the latest release of Recursive with code ligatures (at the top):
Schermafbeelding 2020-05-11 om 11 04 32

Activity

  1. arrowtype commented on May 11, 2020

    @arrowtype
    Owner

    Hey @Niels-NTG, thanks for the good suggestions! I’ll add these when I get the chance.

  2. J3Rik0 commented on Jun 2, 2020

    @J3Rik0

    Was looking to post this suggestion as PHP also has the spaceship operator, I can add the bitwise shifting operators in java, that Fira Code shows nicely, and the Haskell negation, which is /= unlike != in other languages, this would expand the audience of the font a bit:
    image

    The font looks great btw, I just started using it and enjoying it so far. A world of thanks for this great font.

  3. duien commented on Oct 24, 2020

    @duien

    I'd definitely like to have that <=> ligature for Ruby as well. A few other language-specific ligatures that would be great to see are =~ and !~ regex-match operators, and <<- and <<~ heredoc symbols. I'd also love to see |> Elixir's pipeline operator.

    Really love Recursive! I didn't know you could do this much with a variable font, and I've been having a ton of fun playing around with it, both getting my terminal and editor set up, and in some design work as well. Thanks for making it!

  4. Niels-NTG commented on Dec 11, 2020

    @Niels-NTG
    Author

    These ligatures have been added in the latest release. They look lovely!

  5. arrowtype commented on Dec 16, 2020

    @arrowtype
    Owner

    Thanks, @Niels-NTG! I was glad I could add in some more useful glyphs. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions