Live data from Hacker News

I still like Sublime Text

ohdoylerules.com

501–510 of 620 posts

Re: I still like Sublime Text

#501

Earlier quoted context omitted.

I like VSCode's feature where it doesn't constantly bitch and moan about buying a license. Like cmon, there's billions of text editors to pick from, it would be like paying for breathing air or worse, for winrar.

Maybe I'm a sucker, but I bought a license for Sublime in like 2009 and re-upped for a later version. I also actually bought WinRAR from Eugene. It's good to support dedicated devs who make high quality tools that you use all the time.

The line between dedication and delusion is apparently pretty blurry. One can't seriously expect to profit with closed software in a space where free and open alternatives are the norm. VSCode is open source, 7-Zip is open source, they are both objectively better in every way. If anything I would rather support those by contributing directly.

Besides absurd levels of market saturation, code editors are a complement to software, just like libraries and frameworks, and we benefit most as a society by keeping tools open. Imagine having to pay a monthly subscription for a json lib. I find the entire concept ridiculous.

Re: I still like Sublime Text

#502
I'm going to comment on sublime merge since I see others have.

(I'm a paid user and paid again for the latest year or whatever the term of support is).

To be honest, I'm not sure what this product does or does better than all the other similar apps. VSCode has git tools. There's gitlens add on. There's also github's git UI app and some other ones. https://git-scm.com/downloads/guis

In all of them I see diffs. I can stash/stage/commit. I'm not sure what "amazing" features one has over the other.

What I can't do

* I can't copy text from anywhere in the UI. I might be looking at a diff, a path appears, I want to open that path in my editor, so, I want to be able to copy the path from Sublime Merge and paste the path into my editor or shell. Sorry, S.O.L.

* It puts headings on diff sections. I want to copy text that from Sublime Merge and search for the identifier in my editor. Sorry, S.O.L.

* I want to search for things across changes - sorry, S.O.L. - "someIdenifier" doesn't exist in the current code. When was it deleted? Let me search.

Also a minor nit. I hate that it doesn't respect platform conventions. The default folder to open should not be root, it should be my user folder (or something) but definitely not root. No other app on my Mac does this. If you want yours to be root find, add a pref, but by default it should do what other apps do.

---

As for Sublime Text - Of course you can use whatever you want. I used SlickEdit since ~1994 through ~2015 (forgot when I switched to VSCode). The thing is, you should at least know what you're missing.

In VSCode I use it's SSH remote feature to connect to my linux machine. This is not simple SSH file sharing (Slickedit had that and FTP even). VSCode starts a custom server on the remote machine and uses it to coordinate. Examples:

* open remote /usr/my/project1

VSCode loads that project remotely. It edits the files locally (meaning when you open a file, it copies it from my linux box back to the mac in the local editor. IIUC, it proxies the language server stuff so it launches language server support on linux remotely. This means all the TS/C++/Rust etc intellisense stuff is being indexed on Linux in that project's environment.

VSCode opens a terminal to /usr/my/project1 in VSCode. I can start running shell commands. I used to use separate terminals, external to VSCode, and I still do. But the nice thing about the VS code ones is they're per project. If I switch over the a different project (multiple projects at once), each one has it's own terminal, relevant to that project

VSCode monitors and forwards servers from that terminal. If I type `python3 -m http.server 9000` in the VSCode terminal, it will launch python3 and then VSCode will automatically forward that port to my mac. I can open http://locahost:9000 on my mac and access the server running on linux (yes I can do that manually. It's nice that it's zero effort)

VSCode debugs remotely. If I launch the debugger it will debugger (gdb/llvm) on linux but the UI will be local (mac). I can set breakpoints in VSCode in mac, it will set them remotely on linux. I can view data etc.

VScode opens local UIs remotely. If, in the terminal for /usr/me/project1 I `cd ../project2 && code .` or `code ../project2` (so these commands are running on linux), it spawns a new window on Mac connected via SSH automatically to /usr/me/project2

VSCode's terminal is using an editor window and keeping it synchronized with the remote shell. This means it's more responsive than SSH from a normal terminal. In a normal terminal IIUC. I type 'x' on my keyboard. It's sent to the remote server over SSH. The shell over there emits an 'x' which is sent back to my local machine. In VSCode. I type 'x', the 'x' is put in the editor control that's shadowing the terminal. It's assumed the remote machine will return 'x' but it doesn't wait for it. Rather, you're typing locally, and it's catching up. So, even and a slow connection you can type faster in VSCode's terminal than you could in a standard SSH terminal. I'm sure there are places where this is not perfect but the general experience is it's way more responsive .

This is a short list of some of the things that VSCode is doing that AFAIK, most other editors are not (yet?). There's lot of other features though.

I have lots of issues with VSCode. I wish it had keyboard macros. I wish it it's undo system didn't suck. I wish it did auto backups like Slickedit did. I wish it had search and replace across a folder tree with undo like Slickedit did. I wish it had column select (different than multi-cursor as a column can go into virtual space and multi-cursor can't)

All that said, the pluses outweigh the minuses and I can't go back.

Re: I still like Sublime Text

#503

The main feature of Sublime Text for me is that it doesn't throw away your buffers. Ever. So it's mainly a note taking app with vim key bindings for me / snappy scratch pad. All of my actual code editing happens in an IDE or actual VIM when on a server.

I see how the separation of "persisted active buffers" from "saved files" is important, but FWIW I have vim configured to (for a specific note-taking FileType) write the buffer out on 60 seconds of inactivity.

Not the same, but adequate for my needs.

Re: I still like Sublime Text

#504

I'm going to comment on sublime merge since I see others have. (I'm a paid user and paid again for the latest year or whatever the term of support is). To be honest, I'm not sure what this product does or does better than all the other similar apps. VSCode has git tools. There's gitlens add on. There's also github's git UI app and some other ones. https://git-scm.com/downloads/guis In all of them I see diffs. I can s…

apparently I can't edit that previous comment so to add

sublime merge

* I want to see blame and modified dates for folders and files. This lets me look at folders and find the one that has a recent change and then glance at the files and see which ones changed recently. Maybe that feature is in there but "View Tree" is not it. That shows a plain tree. No modified dates, no people

VSCode

VSCode loads that project remotely. It edits the files locally (meaning when you open a file, it copies it from my linux box back to the mac in the local editor. IIUC, it proxies the language server stuff so it launches language server support on linux remotely. This means all the TS/C++/Rust etc intellisense stuff is being indexed on Linux in that project's environment and then that info is proxied back to the Mac and shows up in VSCode on the mac as info/completions/docs

Re: I still like Sublime Text

#505

Sublime Text developer here, thank you for all the praise! I'm looking forward to what we can accomplish this year. If you have any questions I'd be happy to answer.

Sublime is the best! I've been creating a new programming language ACPUL with Sublime for 10 years https://old.reddit.com/r/acpu/comments/1fxxjtx/acpu_mobile_d... .

I don't have the resources, so please add support for the ACPUL programming language. If Sublime had a good debugger, it would be even more powerful.

Re: I still like Sublime Text

#506
post #246

So glad to see this. I have been down a long road of text editors: - Sublime - Vim - Emacs - Atom - VSCode - Jetbrains IDE - Neovim - Zed - Cursor And these aren’t just little flings. I’ve spent months if not years in most of these editors. However, at the end of the day I always come back to one: Sublime. It is a beautiful piece of software. It feels like writing with one’s “good pen and good paper”, that high quali…

I wonder how much of it is simply that Sublime has a very pleasant default color theme (Monokai) in my opinion. It feels warmer than other IDEs. I actually use it in VScode too now.

Re: I still like Sublime Text

#507
post #12

I'm happy with just fast, multiple cursors, plugins -> syntax highlighting. Sometimes I paste a JSON dump in there to prettify it. I refer to a lot of tools as knives, but Sublime Text is the chopping block.

How do you prettify it in Sublime?

A lot of the LSP plugins have a format feature, so you can format your code. I set most of mine up to trigger on save

Re: I still like Sublime Text

#508
post #128

Earlier quoted context omitted.

Tech workers often spend $100 or more on a fancy meal with friends in a single night—I've definitely done that more than once. So paying $100 for a software license that I’ll be using almost every hour of the workday, and even more when working on personal projects, feels like a bargain.

I do wonder why it is that way though, because you're right, I've balked at the cost of software before, but had no issue in spending an order of magnitude more money on a flight to SF to meet up with other developers.

probably because there's a free OSS equivalent to most software. The free equivalent to meeting up with friends/developers is a zoom call, and those suck.

Re: I still like Sublime Text

#509

I use sublime as a copy paste buffer when I need excellent visual regex search and replace. Vscodes regex search has awkward semantics (or at least I don't know them as well as sublimes) so I usually paste things into sublime, edit them with the regexes, then go back to what I was doing. My work has some extensions that only work in vscode so I'm stuck with it but it's good enough. I also never close sublime tabs and…

If you use windows, you can use WIN + V instead of using an editor for a copy paste buffer. WIN + V activates clipboard history, so you can see and select things you copied previously.

This is the kind of thing I love HN for. Great tip!

Re: I still like Sublime Text

#510
post #273

Sublime Text developer here, thank you for all the praise! I'm looking forward to what we can accomplish this year. If you have any questions I'd be happy to answer.

Big fan of the tool. Sublime was one of the few editors that could even open the massive logs one project was generating. The recovery is so good, I've realized I had dozens of tabs unsaved for years until IT updated machines. One question: is there going to be another 3.x release? The popup takes you to a 4.x release, which is great if you are on 4.x. If it hit EOL, it makes it easy for us to force the update. Right…

The last release of ST3 was in 2019 [1], 2 years before the first stable release of ST4. It is dead.

[1]: https://www.sublimetext.com/3

Post reply on HN