Re:Sublime Text 3 now has font ligature support
by skytreader on Friday October 06, 2017 @12:11AM
(#15414362)
Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like,
modular_raft = 10
spam = 20
The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.
Re:Sublime Text 3 now has font ligature support
by apendleton on Friday October 06, 2017 @12:30AM
(#15414436)
Besides fancy programming fonts (which I have mixed feelings about), ligatures and other complex text shaping features can also be necessary for legibly rendering string literals in some non-Latin scripts, like Arabic script. Even if your code is all in Latin letters, you might have test data, UI text, etc., that's in something else.
Re:Sublime Text 3 now has font ligature support
by wcarss on Friday October 06, 2017 @01:02AM
(#15414546)
Thank you for providing this insight -- I'm one of the seemingly rare few who hates ligatures in my Latin-script fonts, and when I saw this submission my brain leapt to "augh, why!?" -- you've given at least one very clear use-case where ligature support is valuable, which I was totally unaware of.
Re:Sublime Text 3 now has font ligature support
by trumpeta on Friday October 06, 2017 @04:16AM
(#15415195)
The cool thing about ligatures is that they are a property of the font, not of the text, so I can have a font with ligatures and you can have one without.
Re:Sublime Text 3 now has font ligature support
by drivingmenuts on Friday October 06, 2017 @08:37AM
(#15416299)
I've been using Fira Code for a while and having ligatures does make code a bit easier for me to read. I certainly could live without the feature, but if it's there, I'm going to turn it on.
Which, ultimately, is what matters. You actually have to turn it on in Jetbrain's editors.
Re:Sublime Text 3 now has font ligature support
by usrusr on Friday October 06, 2017 @03:57AM
(#15415117)
That, or just don't apply ligatures to basic Latin characters. I suppose that people who like using international characters for their identifiers would not mind having ligatures applied to them. Solved by font selection.
Re:Sublime Text 3 now has font ligature support
by skytreader on Friday October 06, 2017 @12:21AM
(#15414397)
Nice example, thank you. I see how they managed to avoid my issues.
(To save people the click: LaTeX ligatures != Fira ligatures. Most Fira ligatures are for programming operators/comparators and they are made to take as much space as the non-ligature version.)
Re:Sublime Text 3 now has font ligature support
by matthewvincent on Friday October 06, 2017 @12:44AM
(#15414478)
I can only speak for me as someone who really loves the aesthetics of code, but there's something super enjoyable about things like arrow functions rendering as actual arrows in Java / JavaScript. It's so clean!
Re:Sublime Text 3 now has font ligature support
by mrighele on Friday October 06, 2017 @09:14AM
(#15416500)
I agree, for this reason I don't think it is right to do on a font level.
I prefer to use my editor's (emacs) capability to do visual substitutions depending on language that I am using.
Re:Sublime Text 3 now has font ligature support
by etatoby on Friday October 06, 2017 @04:39AM
(#15415302)
No decent editor or IDE supports "proper" elastic tabstops, except for a Visual Studio plugin, I believe.
The problem is that it needs the underlying text editor to support different non-uniform tab stops to be configured for every line of code. Few if any text editors support it.
Re:Sublime Text 3 now has font ligature support
by pvg on Friday October 06, 2017 @12:17AM
(#15414385)
It doesn't affect formatting spacing and is mostly for special symbols like arrows, greater than equal, double and triple equalities, etc. The ligatures in question are for programming languages, not stuff like 'ft'.
Re:Sublime Text 3 now has font ligature support
by giancarlostoro on Friday October 06, 2017 @05:24AM
(#15415460)
This is my understanding of it as well. The purpose is to DISPLAY two characters as one more clearer to view character, but on GitHub and other places it will still be two independent characters. The purpose is clarity whilst viewing code.
Re:Sublime Text 3 now has font ligature support
by ygra on Friday October 06, 2017 @01:43AM
(#15414673)
Even if monospaced fonts have that ligature, I'm sure they make it as wide as two characters, as the ligature is simply a single glyph representing two characters.
Re:Sublime Text 3 now has font ligature support
by TheRealPomax on Friday October 06, 2017 @10:17AM
(#15416943)
Just because it's "plain text" doesn't mean it has to be monospaced. There are too many other things you can write that aren't "code" for which a good text editor is infinitely preferable to a clunky dedicated GUI application.
Re:Sublime Text 3 now has font ligature support
by no_wizard on Friday October 06, 2017 @12:26AM
(#15414419)
Yes!!!!!!!!!!!!!! I nearly quit sublime after using an editor that supported this feature for a month. While sublime is vastly superior in my mind to most other editors (spacemacs and Vim in my book not withstanding) I make a lot of use of icons in the Nerd Fonts for custom icons so this is a huge plus for me.
Re:Sublime Text 3 now has font ligature support
by fastball on Friday October 06, 2017 @05:25AM
(#15415463)
Could you expand on what exactly you use Nerd Fonts for?
I downloaded a few fonts and was expecting using an icon code + a ligature supporting editor to result in the icon magically appearing in my editor but that does not seem to be the case.
Re:Sublime Text 3 now has font ligature support
by no_wizard on Friday October 06, 2017 @08:47AM
(#15416358)
I extract the icons and make my own folders and theme stuffs. It unfortunately only magically works in Vim with nerdtree or in SpaceMacs with their tree plugin. However I enjoy making my own folders and icons so I don’t mind. I should really publish this, there may be a hidden demand here I was unaware of
Re:Sublime Text 3 now has font ligature support
by fbnlsr on Friday October 06, 2017 @03:02AM
(#15414947)
I've spent the last six months trying out new fonts (m0n0, hack, monoid, hasklig, fira code, mononoki, fixedsys excelsior, iosevka, source code pro, input...)
Nothing cuts it, there's always that tiny thing that bothers me, and I'm back with Ubuntu Mono.
Re:Sublime Text 3 now has font ligature support
by IgorPartola on Friday October 06, 2017 @09:02AM
(#15416441)
OT question: a lot of fonts come in all possible formats. If I am just installing them on my macOS box, does it matter which format I install? Is there a reason to prefer say .woff2 over .ttf? Or are they functionally equivalent?
Re:Sublime Text 3 now has font ligature support
by chias on Friday October 06, 2017 @12:11PM
(#15417918)
How long did you try it? I found I had the identical reaction to you -- that it was way too narrow, being used to much wider monospace fonts. It took me about a day to get used to it, and now I love it to death.
It's probably not the font for everyone, but I mention this because I had the same initial reaction as you, and I'm super glad I gave it a serious try.
Re:Sublime Text 3 now has font ligature support
by strmpnk on Thursday October 05, 2017 @11:37PM
(#15414245)
It seems to work but it does render certain ligatures incorrectly on OS X for me. For example, <* is rendered as the <> ligature and <- is rendered as </. Since it's a dev build, I'm sure it will take some ironing out before it hits the stable version but this is really promising!
Re:Sublime Text 3 now has font ligature support
by rangibaby on Friday October 06, 2017 @03:40AM
(#15415052)
Josef Muller-Brockmann's books are a decent primer on the basics of graphic design (including typography). They are old but the information in them is not necessarily out of date, and the writing style is very helpful since he includes examples and explanations of how to apply the concepts practically.
If you are going to read them I would recommend "Grid Systems in Graphic Design" and "The Graphic Artist and His Design Problems". "History of the Poster" is worth getting too. Make sure to get them as books, not PDFs. His lessons about margins and font size make a lot more sense when you are viewing them in the book laid out according to his own principles.
Re:Sublime Text 3 now has font ligature support
by danbolt on Friday October 06, 2017 @02:34AM
(#15414855)
I learned a lot from "The Elements of Typographic Style" by Robert Bringhurst. I sometimes find it a bit hard to read casually, but there's a lot in there I enjoy absorbing.
Re:Sublime Text 3 now has font ligature support
by sleepybrett on Friday October 06, 2017 @11:45AM
(#15417693)
My friend teaches typography at an fine arts and design school and "Elements" is the textbook. When I went to art school in the 90s it was also one of my textbooks (though it was still a relatively new book at the time). It's one of the few books that's remained on my shelf for the 20ish years since I bought it. I still reference it regularly.
Re:Sublime Text 3 now has font ligature support
by npolet on Friday October 06, 2017 @02:12AM
(#15414783)
Great link. Just finished reading through it and I feel more educated on typography. At the very least I now have a better feel of the lingo and vocabulary which surrounds typography. Thanks.
Re:Sublime Text 3 now has font ligature support
by JorgeGT on Friday October 06, 2017 @03:44AM
(#15415066)
I highly recommend this one. It is divided in short sections devoted to one specific topic, directly to the point, including practical examples and indicating how to do it in popular software like Word, CSS, etc.
Re:Sublime Text 3 now has font ligature support
by itafroma on Friday October 06, 2017 @12:05AM
(#15414342)
I would highly recommend James Felici's The Complete Manual of Typography. Goes through all the core concepts of typography and why they matter, and provides a number of guidelines.
Re:Sublime Text 3 now has font ligature support
by bsimpson on Friday October 06, 2017 @03:04AM
(#15414952)
Yay!
Now if only the TypeScript plugin were more reliable. Ligatures and TS support were the things making me consider switching. The TS plugin for Sublime is disappointingly buggy.
Re:Sublime Text 3 now has font ligature support
by boterock on Friday October 06, 2017 @10:12AM
(#15416905)
I've been using Language Server to learn rust while coming back to ST after using VSCode extensively. Have you tried using a LSP extension instead of a TypeScript one?
Re:Sublime Text 3 now has font ligature support
by memco on Friday October 06, 2017 @02:42AM
(#15414875)
Excited about this for the increased support for non-Latin languages and the code ligatures, but sad that it is pegging 2 cores at nearly 100%. Will look forward to when this is fully stable.
Re:Sublime Text 3 now has font ligature support
by indentit on Friday October 06, 2017 @02:45AM
(#15414883)
probably your projects are just being reindexed due to the syntax definition improvements? unless it's the famous Material Theme increased CPU usage problem or something lol
Re:Sublime Text 3 now has font ligature support
by indentit on Thursday October 05, 2017 @09:32PM
(#15413834)
make sure you report it on the forum post with details like OS, screen resolution and theme, and it might get a quick fix - I've seen it happen before for other dev build bugs :)
Re:Sublime Text 3 now has font ligature support
by sleepybrett on Friday October 06, 2017 @11:36AM
(#15417602)
He thinks the developers shouldn't waste time on this feature, and instead waste time on another feature that already has multiple solutions in the plugin library.
Since I don't think you would be able to do this kind of work in a plugin at all, and can clearly implement his feature in a plugin I feel like he can pound sand.
I think he just doesn't want to pay the pittance the developer of the best scp plugin wants for his work.
Re:Sublime Text 3 now has font ligature support
by partycoder on Friday October 06, 2017 @12:02AM
(#15414333)
I think Sublime Text is very good but has fallen behind in terms of version control. I think Atom and VS Code are winning the war right now. Especially because the latter are free.
Re:Sublime Text 3 now has font ligature support
by danieldk on Friday October 06, 2017 @01:34AM
(#15414631)
And Magit wipes the floor with them, so I guess all Atom and VS Code users should migrate to Emacs ;).
People judge editors along different dimensions. E.g. I have tried Visual Studio and Atom, but for me they (especially Atom) are simply to slow compared to Sublime/Emacs/vim.
Re:Sublime Text 3 now has font ligature support
by slifin on Friday October 06, 2017 @01:05AM
(#15414556)
I personally prefer version control in sublime with suitable plugins it's the debugging experience that I feel is lacking in sublime Vs vscode and atom
Sublime does not have the concept of panels so any kind of debugger in sublime looks and handles really bad
Re:Sublime Text 3 now has font ligature support
by VladTheImplier on Friday October 06, 2017 @06:38AM
(#15415705)
C++ programmer who switched from VS to Sublime here.
That was the hardest part for me.
Was a very hard learning curve with finding setting it all up and getting SublimeGDB and the GCC linter to work.
But I'm glad I made the switch in the end.
Everything from writing, to compiling is so much faster, nicer and less cluttered.
Re:Sublime Text 3 now has font ligature support
by hit8run on Friday October 06, 2017 @04:24AM
(#15415219)
The Built-In Terminal in VSCode is something I would love to see in Sublime. For Ruby Coding this would be sufficient for me. For Go I currently prefer VSCode because of the debugging capabilities.
Re:Sublime Text 3 now has font ligature support
by stonewhite on Friday October 06, 2017 @07:32AM
(#15415921)
Implementing a "Built-in Terminal" mindset is what is wrong with VSCode/Atom etc. You already have a terminal emulator installed in your system, and you can tile the windows if you want a terminal right under your editor.
NIH syndrome of re-implementing everything under one roof is not really required, since we are heavily utilizing desktop environments for the past couple of decades, which allows you to put separate applications in one screen.
Re:Sublime Text 3 now has font ligature support
by coldtea on Friday October 06, 2017 @07:43AM
(#15415977)
>Implementing a "Built-in Terminal" mindset is what is wrong with VSCode/Atom etc.
Electron is what is wrong with them -- if anything is.
Built-in terminal has nothing to do with it.
>NIH syndrome of re-implementing everything under one roof is not really required, since we are heavily utilizing desktop environments for the past couple of decades, which allows you to put separate applications in one screen.
That's less streamlined than having the editor directly cater to different needs. The "separate git terminal window" for example doesn't know anything about your open files and vice versa.
Re:Sublime Text 3 now has font ligature support
by sleepybrett on Friday October 06, 2017 @11:49AM
(#15417723)
Terminal buffers have a long history and certainly aren't what's wrong with atom/vscode. I concur that that problem is "using a web browser as a ascii rendering engine".
I think the one thing that keeps terminal buffers out of sublime text is probably it's crossplatfomness. Seems like it would be a bit of a hairball to get right on every platform.
Re:Sublime Text 3 now has font ligature support
by ssijak on Friday October 06, 2017 @05:45AM
(#15415526)
Why do people need git support in an editor so much? Using git from the terminal is easy and you always know what is executed because you do it manually.
Re:Sublime Text 3 now has font ligature support
by chias on Friday October 06, 2017 @12:15PM
(#15417947)
For me, the big sell in Atom's git integration is seeing exactly which lines have been added / removed / modified in the gutter and the minimap, as well as seeing what branch you're in displayed in the status bar. I didn't use any of its other git integrations.
Sublime Text can handle the former with the plugin GitGutter. Atom's branch reminder is a nice-to-have but not something that I feel is necessary, so with the plugin I'm a happy camper with Sublime.
Re:Sublime Text 3 now has font ligature support
by paganel on Friday October 06, 2017 @06:36AM
(#15415696)
I'm in the same boat as you (I'm also doing "git diff"manually from the command line before each commit).
And to answer your question, probably for the same reason why people have moved on from Assembler to C to managed memory languages to JS and to today's JS frameworks, they want to avoid the "rough" parts by adding another layer of abstraction. For some people constantly going back to the terminal looks "rough", I guess.
Re:Sublime Text 3 now has font ligature support
by rootlocus on Friday October 06, 2017 @01:08PM
(#15418384)
> So we can replace companies entire dev departments with 1 person!
Do entire dev departments use ASM for shitting out crappy electron apps? If it wasn't for all those abstractions, a large amount of today's developers wouldn't work in software development. Show some respect for those whose shoulders you sit upon.
Re:Sublime Text 3 now has font ligature support
by rmurri on Friday October 06, 2017 @10:50AM
(#15417198)
Magit user here.
I am both comfortable with git on the command line and through emacs. I prefer magit mostly because of its contextual support. With the command line, each command can derive no context from the last command. With magit, it's easy to drill in and see more relevant data (or edit that data) quicker and easier.
Just wanted to point out that not everybody is merely looking for an easier experience, or one that looks prettier.
Re:Sublime Text 3 now has font ligature support
by hit8run on Friday October 06, 2017 @02:48AM
(#15414896)
Sublimes git support is nice with GitGutter and GitSavvy Plug-ins. Try them. Specially GitSavvy is a totally keyboard driven approach that works well for me.
Re:Sublime Text 3 now has font ligature support
by etatoby on Friday October 06, 2017 @02:25PM
(#15419078)
Considering the raw performance of ST, which is leaps and bounds above that of VS Code and Atom, it's a steal at its current price. Personally I will continue using it for the foreseeable future, ligatures or not.
Re:Sublime Text 3 now has font ligature support
by no_wizard on Friday October 06, 2017 @12:39AM
(#15414461)
They certainly may be more popular. I feel that the sublime ecosystem is superior personally. I personally also prefer the Sublime API over Atoms or VSCodes
(EDIT: Formatting.)
Which, ultimately, is what matters. You actually have to turn it on in Jetbrain's editors.
It's a decent "no harm, no foul" feature.
https://news.ycombinator.com/item?id=14821446
I've mixed feelings about the idea, but generally seem to like the combination of Atom and Fira Code.
(To save people the click: LaTeX ligatures != Fira ligatures. Most Fira ligatures are for programming operators/comparators and they are made to take as much space as the non-ligature version.)
The only difference is that one ligature applies to alphabetic characters and the other to non-alphabetic characters.
Ligatures can be used to make some font aesthetically pleasing like this: http://www.impallari.com/lobster/
Or they can be abused like this: https://pixelambacht.nl/2015/sans-bullshit-sans/
It is perfectly possible for a font to have alphabetic and non-alphabetic ligatures.
It's not a "must have", but I find it more readable and pleasing than using regular fonts.
Ligature mishaps are doubleplus-unclean.
Does Sublime Text support those? Any other popular editor? If not, why?
The problem is that it needs the underlying text editor to support different non-uniform tab stops to be configured for every line of code. Few if any text editors support it.
It's not about those kind of ligatures -- but about special programming fonts with programming-oriented ligatures (think >= etc).
Those still can affect code alignment, but there are people who are against manual alignment anyway.
No it will still take two characters, but they will be represented by a single glyph.
In my haste: forgot to link to the nerd fonts page! https://github.com/ryanoasis/nerd-fonts
For what it’s worth, I may be a tad OCD about how my desktop looks and feels :P
I downloaded a few fonts and was expecting using an icon code + a ligature supporting editor to result in the icon magically appearing in my editor but that does not seem to be the case.
EDIT: Some fonts I like are Courier New and Droid Sans Mono.
https://github.com/kiliman/operator-mono-lig
Now that sublime supports it, is there a way to use this font with it?
http://sourcefoundry.org/hack/
Nothing cuts it, there's always that tiny thing that bothers me, and I'm back with Ubuntu Mono.
It's probably not the font for everyone, but I mention this because I had the same initial reaction as you, and I'm super glad I gave it a serious try.
If you are going to read them I would recommend "Grid Systems in Graphic Design" and "The Graphic Artist and His Design Problems". "History of the Poster" is worth getting too. Make sure to get them as books, not PDFs. His lessons about margins and font size make a lot more sense when you are viewing them in the book laid out according to his own principles.
/edit The Vignelli Canon is a nice read too. See: http://www.vignelli.com/canon.pdf
https://en.m.wikipedia.org/wiki/The_Elements_of_Typographic_...
Now if only the TypeScript plugin were more reliable. Ligatures and TS support were the things making me consider switching. The TS plugin for Sublime is disappointingly buggy.
One of the things I hate about the native TS extension is that it disables tab-completion in TS files. I wonder if LSP fixes that.
I hate that.
Since I don't think you would be able to do this kind of work in a plugin at all, and can clearly implement his feature in a plugin I feel like he can pound sand.
I think he just doesn't want to pay the pittance the developer of the best scp plugin wants for his work.
People judge editors along different dimensions. E.g. I have tried Visual Studio and Atom, but for me they (especially Atom) are simply to slow compared to Sublime/Emacs/vim.
Then, it's possible to end up with really slow Emacs (e.g: Spacemacs is slow).
Yes, that's true – but it's still so, so much slower than Sublime that it's absolutely not worth it – for me, at least! Whatever tools work for you :)
Sublime does not have the concept of panels so any kind of debugger in sublime looks and handles really bad
NIH syndrome of re-implementing everything under one roof is not really required, since we are heavily utilizing desktop environments for the past couple of decades, which allows you to put separate applications in one screen.
Electron is what is wrong with them -- if anything is.
Built-in terminal has nothing to do with it.
>NIH syndrome of re-implementing everything under one roof is not really required, since we are heavily utilizing desktop environments for the past couple of decades, which allows you to put separate applications in one screen.
That's less streamlined than having the editor directly cater to different needs. The "separate git terminal window" for example doesn't know anything about your open files and vice versa.
I think the one thing that keeps terminal buffers out of sublime text is probably it's crossplatfomness. Seems like it would be a bit of a hairball to get right on every platform.
Sublime Text can handle the former with the plugin GitGutter. Atom's branch reminder is a nice-to-have but not something that I feel is necessary, so with the plugin I'm a happy camper with Sublime.
And to answer your question, probably for the same reason why people have moved on from Assembler to C to managed memory languages to JS and to today's JS frameworks, they want to avoid the "rough" parts by adding another layer of abstraction. For some people constantly going back to the terminal looks "rough", I guess.
They've also become thousands of times more productive.
Do entire dev departments use ASM for shitting out crappy electron apps? If it wasn't for all those abstractions, a large amount of today's developers wouldn't work in software development. Show some respect for those whose shoulders you sit upon.
I am both comfortable with git on the command line and through emacs. I prefer magit mostly because of its contextual support. With the command line, each command can derive no context from the last command. With magit, it's easy to drill in and see more relevant data (or edit that data) quicker and easier.
Just wanted to point out that not everybody is merely looking for an easier experience, or one that looks prettier.
And in great part, Atom and VS Code could be said to be clones of Sublime. So don't take offense here.
Seriously, every diff tools sucks compared with commercial ones. e.g. BeyondCompare.