Hacker News new | past | comments | ask | show | jobs | submit login

I bet ligatures would be unambiguously helpful in programing if they were limited to the presentation layer and controlled by the syntax highlighter.

For example, the author uses Fira Code[0] as an example of well-intentioned by problematic ligatures. The author says this is bad because (1) it contradicts unicode and (2) the substitutions will be inappropriate sometimes.

(2) is solved by applying substitutions in semantically relevant places with the syntax highlighter. This would be particularly useful when typing special sequences. If you get the ligature substitution, then you know you don't have a typo.

(1) is trickier. You want to save a unicode file, and you want to be able to copy text selections that end part way through a ligature. This requires some finesse.

[0] https://github.com/tonsky/FiraCode




In what sense does it require finesse? It seems to work fine in vim at least.

Agree that it may be nice if they were more syntax aware. Although, I'm not sure what I want to have happen if I comment out some code.


I guess? I've never really encountered problems with it, but I'm fine if people don't share my tastes.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: