Using vim as my main editor has incredibly increased my productivity, but learning to use it's macros saved me even a more tremendous amount of time. It takes a while to learn to use it, but after that any kind of repetitive task can be done easily with it. And if combined with some bash and vimscript knowledge, it is even greater.
I love vim and have been using it for years. However, I really struggle to find a good config for writing typescript. I see my VSCode colleagues having a blast with auto completion and type signatures lookups. But I could never get this right in vim. Is there a resource about state of the art typescript with vim?
Ask HN: Programs that saved you 100 hours?
421–430 of 531 posts
Re: Ask HN: Programs that saved you 100 hours?
#422https://fishshell.com/ for sure Just having sensible defaults on a shell works wonders on my day-to-day productivity. Add a couple of aliases for productivity and off you go. abbr --add s "git status" abbr --add gap "git add --patch" abbr --add gco "git checkout" abbr --add gd "git diff" alias recent="git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:bold green)%(com…
Re: Ask HN: Programs that saved you 100 hours?
#423Re: Ask HN: Programs that saved you 100 hours?
#424For better or worse, I find GUI git clients to be less useful than the CLI. But like any CLI tool, it's productivity is limited by your ability to type without errors. Git has an Autocorrect[1] that will help you out. > git config --global help.autocorrect 1 Based on bash history data, I've also added a simple alias to my bash config: > alias gti="git" [1]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configura…
> For better or worse, I find GUI git clients to be less useful than the CLI. Genuinely interested, why? I'm a huge fan of the CLI in general, but for some things it just slows me down, git usage is one of those. Random example: reverting a commit is 2-3 clicks, or a whole lot of typing.
They usually don't support the level of granularity I have on the CLI. For example, if I want to fix a commit on a PR based on feedback I've received, I can make the fix and `git rebase -i` will let me amend any of my previous commits (via 'fixup'). None of the IDEs I've tried support it; it's possible instead of an IDE one of the dedicated git tools like Kraken support this?
It's also just mildly terrifying when the IDE gives you a button with no further explanation for what it's actually doing. I.e. what do 'refresh' and 'sync' do in VS Code? The consequences could be dire: https://github.com/microsoft/vscode/issues/32405
> reverting a commit is 2-3 clicks, or a whole lot of typing.
Git revert is a single command; finding the commit to revert is the hard part. `git bisect` makes this easy, and I haven't seen any IDEs nail that one. That said, this is a rare use case.
Re: Ask HN: Programs that saved you 100 hours?
#425That's my blog post! Glad you enjoyed it :)
Re: Ask HN: Programs that saved you 100 hours?
#426Re: Ask HN: Programs that saved you 100 hours?
#427For example, typing "scp" could expand to "scp -r myself@servername /home/myname/.logs/logfile ."
It's a concept that originated with the Fish shell, but is useful if you want to maintain some semblance of bash compatibility.
Re: Ask HN: Programs that saved you 100 hours?
#428Earlier quoted context omitted.
> - Windows. By not having to configure drivers and other compatibility problems which I have on Linux it definitely saved me 100 hours. OTOH building on windows takes literally multiple times the time it takes for building the same software on the same machine / SSD on linux. And that's something that I do every day, multiple times per day.
Have you tried WSL? I didn't like WSL 1, and early months of WSL2 were buggy af... but for the past 2 months, since I needed windows again, WSL2 with Docker Desktop support has been really nice. The VS Code remote wsl and ssh support has also been invaluable.
Re: Ask HN: Programs that saved you 100 hours?
#429Everything[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/
Re: Ask HN: Programs that saved you 100 hours?
#430- keeping all your configuration files (“dotfiles”: shell, git, etc) in one, version controlled place. Makes setting up new machines so much less stressful. Here are mine in case you’re interested, for macOS and Ubuntu: https://github.com/Bogidon/dotfiles - setting up a personal vpn with a reserved IP if you connect to services that require your IP to be whitelisted and you move often - for git cli: dashes take you b…
Alfred has a clipboard manager built in, what does Paste offer over it that justifies its fee for you?