FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

Future ideas

Open tonsky opened this issue 9 years ago • 42 comments

Markdown: ## ### #### URL: :// :/// Haskell: <* <+ <$ $> *> +>

tonsky avatar Aug 10 '15 09:08 tonsky

{{ }} (templates)

tonsky avatar Aug 11 '15 05:08 tonsky

{-# #-} (Haskell pragmas) <-> ?

tonsky avatar Aug 15 '15 14:08 tonsky

Probably return standard fi and fl but keep them double-width

tonsky avatar Aug 17 '15 07:08 tonsky

!!! is pretty common

tonsky avatar Aug 29 '15 12:08 tonsky

Hi, yesterday i wrote a script to collect common expressions on various projects scattered around my HD; these are the missing operators that I use the most:

  • ()
  • += (from +=, -=, /=, ...)
  • [] (from [], [&], [=])
  • {}

Also I made a repo that gathers expressions and operators across some big projects, https://github.com/ltlollo/S. I hope it' useful.

ltlollo avatar Aug 30 '15 15:08 ltlollo

Thanks! I considered these combinations, but didn’t end up with any meaningful visual ideas for them. Maybe you have ideas?

On Sun, Aug 30, 2015 at 9:19 PM ltlollo [email protected] wrote:

Hi, yesterday i wrote a script to collect common expressions on various projects scattered around my HD; these are the missing operators that I use the most:

  • ()
  • += (from +=, -=, /=, ...)
  • [](from [], [&], [=])
  • {}

Also I made a repo that gathers expressions and operators across some big projects, https://github.com/ltlollo/S. I hope it' useful.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/36#issuecomment-136153142.

tonsky avatar Aug 30 '15 15:08 tonsky

+= : sould probably just be + closer to = and aligned, as the other operation on self [], {}, [=] and [&] could have could have end point joined together, except maybe for [], that's also list in haskell

as a demo of my amazing gimp skills: example

ltlollo avatar Aug 30 '15 16:08 ltlollo

What’s [=] and [&] by the way?

On Sun, Aug 30, 2015 at 10:06 PM ltlollo [email protected] wrote:

+= : sould probably just be + closer to = and aligned, as the other operation on self [], {}, [=] and [&] could have could have end point joined together, except maybe for [], that's also list in haskell

as a demo of my amazing gimp skills: example http://imgur.com/1p2ODHB

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/36#issuecomment-136156166.

tonsky avatar Aug 30 '15 17:08 tonsky

they are lambda captures in c++, http://en.cppreference.com/w/cpp/language/lambda using [] in a lambda makes it a normal function auto fun = [](a) -> b { ... }; is the same as b fun(a){...} while with [&] and [=] means you can access variables declared outside of the lambda either by reference [&] or by copy [=]. ex: int i = 0; auto fun = [=](...){ return i; };

ltlollo avatar Aug 30 '15 17:08 ltlollo

they are lists of captured parameters, but [&]/[=] could be read as box the environment by reference/value

ltlollo avatar Aug 30 '15 17:08 ltlollo

The only other ligature I’ve found that would be useful for R is %>%, which is used for piping. Also, I believe ## is used for introducing comments.

tonsky avatar Sep 02 '15 13:09 tonsky

Clojure’s :>> (from condp)

tonsky avatar Sep 08 '15 16:09 tonsky

Scala’s ??? (http://alvinalexander.com/scala/what-does-three-question-marks-in-scala-mean)

tonsky avatar Sep 08 '15 17:09 tonsky

I'd like to throw in support for all the rest of the assignment operators in C (and &&= for symmetry).

*=, +=, -=, &=, &&=, %=

I'd also add my support for the rest of the operators from Haskell's Prelude (and a few for symmetry):

^^, $!, <*, <$, <+, +>, $>, *>, [] and ().

I would advocate for () and [] to be similarly stylized to <>.

Haskellian Pragmas ({-# and #-}) would be much appreciated as well!

HalosGhost avatar Sep 11 '15 02:09 HalosGhost

+>

tonsky avatar Sep 19 '15 16:09 tonsky

Javascript !==

ghost avatar Oct 17 '15 19:10 ghost

+1 to !== in js

gusaiani avatar Oct 17 '15 20:10 gusaiani

Hey, it's already there guys

-----Original Message----- From: "Gustavo Saiani" [email protected] Sent: ‎18.‎10.‎2015 2:14 To: "tonsky/FiraCode" [email protected] Cc: "Nikita Prokopov" [email protected] Subject: Re: [FiraCode] Future ideas (#36)

+1 to !== in js — Reply to this email directly or view it on GitHub.

tonsky avatar Oct 18 '15 03:10 tonsky

@tonsky Thanks for pointing it out. I don’t know. It may just be Atom. I'm using 1.2, which does render a lot of glyphs perfectly. I reinstalled FiraCode .6 but still no !== in Atom, or |=. Anyway...seems like it’s not the font's problem. Thanks again. It’s so great to use your ligatures.

gusaiani avatar Oct 18 '15 11:10 gusaiani

Yep. It’s probably tokenization issue. It can’t apply ligature if != and second = are in different spans

On Sun, Oct 18, 2015 at 5:45 PM Gustavo Saiani [email protected] wrote:

@tonsky https://github.com/tonsky Thanks for pointing it out. I don’t know. It may just be Atom. I'm using 1.2, which does render a lot of glyphs perfectly. I reinstalled FiraCode .6 but still no !== in Atom, or |=. Anyway...seems like it’s not the font's problem. Thanks again. It’s so great to use your ligatures.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/36#issuecomment-149005401.

tonsky avatar Oct 18 '15 14:10 tonsky

@tonsky thanks for the tip. Turns out it is a problem with Atom's javascript highlighter. Using the language-javascript-jsx package works much better.

ghost avatar Oct 18 '15 19:10 ghost

Thanks @johnmuhl. Got it to work. Installed language-javascript-jsx and file-types packages. This last one allowed me to set a grammar(?) package to all files of a certain extension, etc. Then in atom's confg.cson, I added:

"file-types":
  "source.js": "language-javascript-jsx"

and that did it.

Hope this helps someone and thanks again.

gusaiani avatar Oct 18 '15 23:10 gusaiani

;;;

tonsky avatar Oct 31 '15 22:10 tonsky

A ligature for Clojure's .- syntax for attributes might be useful. The ligature could look like ·-.

weavejester avatar Oct 31 '15 22:10 weavejester

~>

ghost avatar Nov 01 '15 09:11 ghost

For Scala: |@|, |+|, and \/ would be good to have, also ~> but that's already been mentioned a few times!

Also, is there a way to contribute without having to purchase a copy of Glyphs?

ianp avatar Nov 23 '15 16:11 ianp

Also there are <:, >: and <% in scala

13h3r avatar Mar 22 '16 09:03 13h3r

I wonder if Scala contributes more to ligatures than Haskell. Perl definitely hold third place

On Tue, Mar 22, 2016 at 11:46 AM Alexey Romanchuk [email protected] wrote:

Also there are <:, >: and <% in scala

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/tonsky/FiraCode/issues/36#issuecomment-199722490

tonsky avatar Mar 22 '16 11:03 tonsky

JS's lodash/underscore/ERB use <% %> for templates. https://lodash.com/docs#template

tomByrer avatar Mar 22 '16 14:03 tomByrer

I'd love to see lambda as λ, particularly for Python.

I'd be in favour of the other greek letters as well, although I figure they'd be more controversial.

honnibal avatar Sep 01 '16 10:09 honnibal