FiraCode
FiraCode copied to clipboard
Future ideas
Markdown: ##
###
####
URL: ://
:///
Haskell: <*
<+
<$
$>
*>
+>
{{
}}
(templates)
{-#
#-}
(Haskell pragmas)
<->
?
Probably return standard fi
and fl
but keep them double-width
!!!
is pretty common
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.
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.
+= : 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
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.
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; };
they are lists of captured parameters, but [&]/[=] could be read as box the environment by reference/value
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.
Clojure’s :>>
(from condp)
Scala’s ???
(http://alvinalexander.com/scala/what-does-three-question-marks-in-scala-mean)
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!
+>
Javascript !==
+1 to !== in js
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 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.
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 thanks for the tip. Turns out it is a problem with Atom's javascript highlighter. Using the language-javascript-jsx
package works much better.
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.
;;;
A ligature for Clojure's .-
syntax for attributes might be useful. The ligature could look like ·-
.
~>
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?
Also there are <:
, >:
and <%
in scala
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
JS's lodash/underscore/ERB use <% %>
for templates.
https://lodash.com/docs#template
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.