Lurker News
I learned about a ton of useful CLIs, desktop apps, and SaaS products from this thread (https://news.ycombinator.com/item?id=13887237).

But it was posted 3 years ago, and perhaps some useful stuff has emerged in the interim, hence my starting this thread.

Comments (516) 196 threads

dceddia7 replies#
The Z command line utility has saved me a ton of time. It remembers the directories you’ve visited and lets you jump to them with just a few characters. Almost like Chrome’s autocomplete for recently-visited directories (if you’re used to being able to type “g” to go to gmail or “n” for “news.ycombinator.com”...). For instance I can run “z B” and it’ll jump to my ~/Business directory (and “z ss” would do the same).

https://github.com/rupa/z

hombre_fatal#
This is one of those things I set up a decade ago and it's become such a part of how I use my computer that I'm confused for a moment whenever it's not there.

It's one of those rare tools that interacts with my stream of consciousness which is one step away from mind reading.

mszcz#
Did you mean "(...) almost like _Firefox's_ autocomplete (...)"?

I know this is OT but one of the reasons I've switched is history search that actually works.

lloeki1 reply#
I prefer my own kd, which is 40 dead simple LOCs of shell and is predictable since it operates only on dirs you added (which sounds like a chore but is just fine in practice)

    kd foo $PWD  # stores as foo
    kd f         # jumps to foo
    kd           # in a Ruby project subdir, jumps up to where the Gemfile is
https://github.com/lloeki/dotfiles/blob/master/shell/kd
lloeki#
Just updated kd with a long-time feature I wanted: tty detection!

   kd f             # => jumps to foo
   echo $(kd f)     # => outputs foo's path
   # some creative, if nonsensical, examples:
   cp some/file $(kd foo)/app/controllers/whatevs
   cp $(kd bar)/Gemfile $(kd foo)/Gemfile
   kd foo && cd app/controllers && cp $(kd)/config/whatever .
This is useful and possible because kd's output is stable and predictable: it always returns the last prefix match of the kdrc file (or, without argument, the project's top-level dir), and it returns non-zero rc on failure. Plus zsh will even gladly expand the result on for double checking.
RMPR1 reply#
For this particular case, I use a ncurses based file manager: ranger
fdw#
Instead of z, I use https://github.com/wting/autojump, which is written in Python. This has the benefit that you can call it from outside the shell, too.

Since I also love ranger as a file manager, I wrote my own integration of both: https://github.com/fdw/ranger-autojump . It remembers where I went in ranger, and I can also call autojump in ranger.

sandreas1 reply#
Hehe since i got to know 'cd -' which changes back to the last directory i did not miss this feature - but it sounds interesting, and i should try it out.
austinjp#
You're going to love pushd and popd.
leu-mas#
another popular alternative I see mentioned a lot https://github.com/wting/autojump

> autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line.

GrantZvolsky#
I couldn't do without a 'bookmarks' feature that I implemented for my terminal. It's triggered with `Alt+b`:

1. Scan an eternal history file for `cd` with absolute path except for /tmp/*
2. Sort and filter out duplicates
3. Call fzf and let user pick the desired result
4. Upon selection don't enter the directory but instead type `cd ` into the prompt so that the user can navigate further using .
What's nice about this approach is that it automatically builds your bookmarks, but only from `cd` commands where you deliberately used an absolute path.
Here's the code. It has some prerequisites (fzf[0] and ~/.eternal_bash_history[1]) and probably only works with my terminal (Xfce Terminal); it took a bit of tinkering to get it to work.

  # ~/bashrc.d/aliases.sh
  __b() { # bookmarks; props to fzf for providing examples of READLINE configuration
    local selected="cd "$(cat ~/.bash_eternal_history | grep '^cd /' | egrep -v '\.\.|/tmp' | awk '{print $2}' | sort | uniq | fzf --exact)

    READLINE_LINE="${READLINE_LINE:0:$READLINE_POINT}$selected${READLINE_LINE:$READLINE_POINT}"
    READLINE_POINT=$(( READLINE_POINT + ${#selected} ))
  }

  bind -m vi-insert -x '"\eb": "__b"' 2>/dev/null

[0]: https://github.com/junegunn/fzf

[1]: https://stackoverflow.com/a/19533853

opwieurposiu7 replies#
VSCode, and/or Sublime Text have probably saved me a hundred hours I would have spent waiting for Eclipse to start.
save_ferris2 replies#
+1 for VSCode for its configuration portability plugin, settings sync. It’s never been so easy to sync editor changes across my machines, and I’ve only had 1 dependency issue using it in 4 years. No longer having to maintain my vim config and dependencies has been great.
fbnlsr1 reply#
I believe Settings Sync is going to be included in the next release of VS Code. Yay!

The amount of work Microsoft is putting in this editor is amazing. Last month we got file history, that was the last thing I needed to ditch the Git GUI I had installed.

greggman310 replies#
I use vscode but it's missing some basic code features for me. The biggest for me is probably keyboard macros, something that's been a basic feature of editors since at least the 80s. Keyboard macros in other editors has saved me 100s of hours.

https://github.com/microsoft/vscode/issues/4490

Continue this thread — 10 replies

tracker1#
Killer features are directory view, integrated terminal, regexp for find/replace...

Lately, I'd add the remote ssh and wsl extensions have been insanely useful, but starting code from inside wsl has gotten sluggish since the last vs code update.

PopeDotNinja#
+1 for Sublime Text for being so darn fast.
murukesh_s3 replies#
Couldn't agree more.. People who say Electron (on which VSCode is running) is bloated and is slow probably haven't worked on full fledged IDEs using Java.. they consume memory in Gigabytes, are slower, at least appear to be slower, despite using native UI and takes a lot longer to open.
saagarjha1 reply#
Eclipse isn't a particularly good user of Cocoa, is it?
zamalek2 replies#
It does something completely its own (and horrible/slow) on Windows (possibly one of the 6534 equally awful Java UI packages), so I can't imagine it does anything better with iOS.

Continue this thread — 2 replies

luckylion3 replies#
How often do you open your IDE though?

I switched form VSCode to PHPStorm half a year ago, and while it feels a bit slower, the improvements are so unbelievable worth it for me. It does have a taste for memory, but then again, it easily saves me a lot of time each month, so just throwing RAM at it was a no-brainer for me.

BrandoElFollito#
I use PyCharm and tried several times to such to vscode. I forced myself to only use vscode for 10 days.

I was relieved when I switched back to PyCharm.
Vscode is nice but still quite far away from some good IDEs.

nicoburns3 replies#
In my case, often several times an hour. I work across 6-10 dofferent repositories. Opening them all at once is impractical, so being able to open each of the them quickly is quite important.

Continue this thread — 3 replies

tracker11 reply#
Depends... I'll open/close a few times a day as I touch several projects. I can use VS Code for everything from db/sql, react, node and c# (.net core) projects. I also have used it for a little rust and golang.

As to the RAM, it's using around 1.2gb between vs code and the connecting server (WSL2), multiple isntances vary... but with the number of containers and VMs I'm running, I'm generally well over 16gb of use, and I have 64gb on my desktop. So even without VS Code, I have trouble on a 16gb system.

Continue this thread — 1 reply

AnIdiotOnTheNet1 reply#
Or they have worked on full-fledged IDE's like VS 6, which starts up quickly and is super responsive even on period hardware.
fendy30022 replies#
Oh how the tables are turned... Coming from VS2008-2010, it's weird to see someone said Visual Studio is fast

Continue this thread — 2 replies

Zecc#
And if you need something even lighter, something like a better Notepad is enough. Lightweight text editors are a dime a dozen, but I'm personally a fan of notepad2 / notepad2-mod / notepad3; even if they don't have tabs.

Also shout out to LINQPad, for letting me test quick snippets of C# with better visualization than Visual Studio. It's also a better alternative to Sql Server Management Studio for running SQL.

athrowaway3z#
I finally switched from VSCode/Sublime to Spacemacs about a year ago ( It was my 3rd try switching ).

I'm sure this saved me an additional hundred hours.

fxtentacle2 replies#
That seems odd to me. I basically never close my IDE. Sure, I might put the laptop to sleep in between or disconnect from the remote desktop server, but I rarely need the 500 MB that my IDE consumes, so there's little point in every closing it.
tracker1#
Depends on your projects... I don't like to use the same editor for ui/db/api/service that may be related.
peelle#
To each their own. It always fascinates me to hear about Java/.NET environments that massive. Do you only work on 1 project for months at a time? Do you not ever need to reboot into another OS? Is your laptop power efficient? Do you have a separate machine just for Gaming?

I mostly program in languages like Ruby & Perl using Vim. Even with my decked out version that has 35 plugins, and some other bells and whistles, I'm on average using 20 MB of RAM. Open/Close is near instantaneous.

g105b#
It is not fair to compare VSCode/Sublime Text with an IDE. They are very fast at opening, agreed, but they the features that an IDE provide (intelligent code completion, jump to definition, database-aware autocompletion, ANY sort of refactoring capability) easily save me hundreds and hundreds of hours.
dorkwood15 replies#
Everything[0] by Voidtools as a Windows search replacement. It makes search practically instant.

Now that Windows search often fails to turn up even my most used files (what happened to Windows search? Was it intentionally nerfed?), Everything has become a necessity for me.
[0]: https://www.voidtools.com/

sk5t2 replies#
There's also Agent Ransack for searching file content.

I don't use Windows much nowadays, but ripgrep and fzf are sure handy on linux and mac.

Stratoscope#
Thank you, I just installed Agent Ransack and am checking it out. VoidTools Everything just searches filenames, not content, so this could be very useful.

I found it amusing that they also offer what is apparently the same product with completely different branding "for corporate environments" called FileLocator Lite/Pro.

BeetleB#
I use ripgrep and fd on Windows as well. Nothing stopping you from doing so.
Stratoscope#
A hearty second to that! Everything is one of the first programs I install on any new Windows installation.

Even on a machine with several million files on it, it searches as fast as I can type.
Everything also has an API that I've used to integrate the search into my own apps:
https://www.voidtools.com/support/everything/sdk/

jkhaui3 replies#
Wow, thanks for sharing this.

Also, to second your question: what the hell did happen to Windows search? I always just assumed I'd done something to break it (and honestly, could never be bothered trying to "fix" it... even after all these years), but apparently it's inherently broken.
I know very little about OS software. Could someone explain at a high-level how something as fundamental as file search can be rendered totally unusable? Doesn't windows have the best engineers in the world working on it?

LeifCarrotson#
Search is not an operating system function. It needs read access to every file you want it to find, but other than that it's just another application.

Windows has great engineers, yes, but the problem with Windows search is not an engineering problem, it's a trade-off between different use cases and performance and compatibility and innumerable other factors. Design by committee and circumstances of history made Windows search what it is, the shortcomings aren't caused by a lack of engineers capable of building Everything or Spotlight or grep or Google or whatever your ideal file search tool looks like.

Continue this thread — 2 more replies

Continue this thread — 12 more replies

hombre_fatal18 replies#
1) Any terminal that you can summon/dismiss with a global hotkey. Examples are Guake for Linux and iTerm2 for OSX. I consider this a must-have for all developers.

2) Anything that lets you resize/place windows with hotkeys. For example, Divvy for OSX. Divvy is also nice because if you press the hotkey multiple times, it cycles the application through each of your monitors. No need to ever use your mouse to move/resize a window ever again.
3) Fuzzy file search in your editor. You know you want to open src/components/user.js so you type "cu" and it appears.
Any tools like this that become so ingrained in your muscle memory that you just kind of think things ("move this window and then summon my terminal") and the computer responds.

Continue this thread — 18 replies

Load more comments