FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

Ligature request : +. *. -. /.

Open clembu opened this issue 8 years ago • 2 comments

Hello FiraCoders !

I just installed FiraCode on my linux machine and it all works greatly on my spacemacs config

(Well, I did had to add such a code in my init file...)

But while working on ocaml, I realized the float operators :

  a +. b
; a -. b
; a *. b
; a /. b

were not replaced.

I reactivated tuareg's prettify-symbol-mode, to see if it could make things better

but it did not (entirely) What I get is this:

  a +. b  (* fira's + *)
; a ∸ b (* prettified by tuareg *)
; a *. (* fira's * *)
; a ÷ b (* prettified by tuareg *)

So I would ask for the addition of these operators, ligatured.

As reference, Tuareg's prettify mode makes this mapping :

+. ---> ∔
-. ---> ∸
*. ---> ∙
/. ---> ÷

Though to keep spacing it would be nice to have new ligs, which is what you guys would go for I think.


bonus: (For now, if anybody has any idea how to make spacemacs bypass fira's + and - to allow tuareg to do his thing?)

clembu avatar Mar 17 '17 01:03 clembu

A big :+1: here — although personally, I much prefer the behaviour of “look like the ASCII characters concatenated and beautifully kerned”, as opposed to “transform to a perhaps-more-semantic, but-less-pragmatic, glyph” of tuareg. (Think about the differences of /= in Haskell vs. JavaScript, for instance. Converting it to something like is dangerous and unclear, whereas a PragmataPro-style ligature for /= is non-ambiguous, beautiful, and pragmatic.)

ELLIOTTCABLE avatar Dec 12 '17 19:12 ELLIOTTCABLE

Seconded but I feel like they should either be closer like ELLIOTTCABLE said or the period being underneath the operation. As in +̣ -̣ *̣ /̣ (but better).

oshaboy avatar Jun 02 '22 22:06 oshaboy