Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Outside of OS & text editor (vim), there is one tool that I use countless times every, single, day:

fzf (https://github.com/junegunn/fzf)

I can only wonder how much time fzf has saved me in the long term.

In terms of "software that I don't use for writing software", iA Writer is probably what I am most grateful for.



On a similar note for Windows: Everything Search. Blazing fast, super easy syntax, powerful search tools. Almost don't remember where most things are stored on my hard drive these days, since they're all just a shortcut and a few characters away


Is this the tool you mean, Everything by Voidtools?

https://www.voidtools.com/

The built-in Windows search is (for me) abysmal compared to Spotlight search on the Mac, and especially Alfred's interface to Spotlight search. The Windows search seems to switch too early to trying Bing results when I'm only interested in local results.

Never tried Everything before, but I think I've seen it recommended before, so I'm downloading now.


That's the one!


my most recent experience with windows search is still that it sends me to bing search or the store for local stuff and not even finding things that are in the menu


fzf is awesome :)

My favorite fzf usage (but not the most often used) is this alias I put in my ~/.gitconfig file

    frbi = "!f() { git rebase -i $(git log --pretty=oneline --color=always | fzf --ansi | cut -d ' ' -f1)^ ; }; f"
So I do: git frbi (which to me means Fzf ReBase Interactive)

And then can easily pick what commit I will use as my starting point for doing some rebase work.


Going to use this, thanks! How do I limit it to N number of commits?


Not sure. But I can use it on the Linux kernel without issue, which is 1,107,114 commits at the time I just tested it. So I have never felt a need to limit it.

EDIT: Probably could use the "--max-count=<number>" option to `git log` which is documented in the man page.


Hmm. I think I'm missing something basic here. git rebase --interactive is for when you want to take commits you've been baking and now want to clean them up, i.e. squashing some, rewording commit messages, etc, right? I'll usually do something like

$ git rebase -i HEAD~5

to clean up the last 5. Can I do this with `git frbi`? Or is the point that I don't need to since all commits are "picked" by default so you just "s" and "r" the ones you want to and leave the rest?


`git frbi` allows you to pick the value that will be passed to `git rebase -i`

I recommend you try it and it should hopefully make sense.


Ah, I had. I just totally brain-farted on the fact that `--interactive <sha1>` takes the SHA of the commit just before the one you want to rewrite. Thanks!


You can use the max-count option for the git log command.

Something like this: git log --graph --decorate --pretty=oneline --abbrev-commit --color=always --max-count=$cnt


I don't know if the blame is fzf's or cygwin's, but when i used to use cygwin I would just install everything in Setup, and that meant that i at a certain point i got fzf with (what?) default config.

It was a hot mess and took over several bash/emacs control keys. It did a nice job of searching history, but I hated that it paralyzed my keyboard usage




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

Search: