d3Xt3r, (edited )

Those of you reading this might also be interested in two_percent, which is a fork of skim, which in turn is a Rust implementation of fzf. two_percent is faster, more efficient and uses less memory than fzf, which is especially noticeable with large inputs.

brenticus,

My most direct use of fzf is to search large result sets for something I can’t 100% remember the name or location of, so this actually sounds nice. I’ve managed to get fzf to slow down a few times and… well, I’m sure as hell not organizing that folder structure.

learnbyexample,
@learnbyexample@programming.dev avatar

What’s the difference between two_percent and skim?

d3Xt3r, (edited )

It’s faster and more memory efficient basically. skim also appears to have been abandoned (no updates in over an year), whereas two_percent is being actively developed.

saud,

Last commit to two percent was a year ago.

d3Xt3r, (edited )

No, you’re looking at the commit log for skim. two_percent was last updated two months ago. I also had a chat with the author yesterday and they’re keen to continue maintaining the fork.

https://lemmy.nz/pictrs/image/9c40edac-c66c-45c5-8818-6b64ab049c01.jpeg

t0mri,

But y 2% instead of skim?

Deebster,
@Deebster@programming.dev avatar

<span style="color:#323232;">function delete-branches() {
</span><span style="color:#323232;">  git branch |
</span><span style="color:#323232;">    grep --invert-match '*' |
</span><span style="color:#323232;">    cut -c 3- |
</span><span style="color:#323232;">    fzf --multi --preview="git log {} --" |
</span><span style="color:#323232;">    xargs --no-run-if-empty git branch --delete --force
</span><span style="color:#323232;">}
</span>

This is really slick.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • PowerRangers
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • vwfavf
  • slotface
  • rosin
  • cubers
  • ngwrru68w68
  • kavyap
  • thenastyranch
  • provamag3
  • Durango
  • cisconetworking
  • khanakhh
  • osvaldo12
  • mdbf
  • modclub
  • GTA5RPClips
  • normalnudes
  • tester
  • tacticalgear
  • anitta
  • Leos
  • megavids
  • All magazines