Giter VIP home page Giter VIP logo

Comments (7)

austinjones avatar austinjones commented on May 26, 2024 1

@Jacobious52 Yep! That's exactly what I was thinking. Plus I can search the workspace / repo docstrings as well.

from tab-rs.

austinjones avatar austinjones commented on May 26, 2024 1

Woah! Super cool.

Yeah, Rayon & Crossbeam. They make sense - it's based on blocking I/O. I also found https://github.com/jhbabon/scout which runs on smol/asyncstd.

I like the fzf search syntax. It's be nice if I could support that.

I'll probably get back to this in a week or so once 0.4.0 is out. This is gonna be so cool!

from tab-rs.

austinjones avatar austinjones commented on May 26, 2024 1

@Jacobious52 I just merged initial support for this in #195. I used the fuzzy-matcher crate that Skim uses, so the matching behavior should be similar.

I wrote my own UI because I wanted it to be based on async and crossterm. Skim wasn't async, and scout was /dev/tty based (which would prevent future windows support). Plus it supports tab-aware search & output formatting.

no-filter

filter

I still have a few things to add:

  • Handle terminal size (truncate width & height), and redraw on resizes
  • Add the 'Matched/Total' counts

from tab-rs.

Jacobious52 avatar Jacobious52 commented on May 26, 2024

This would be a great feature to have. Perhaps something with fuzzy search like fzf or skim would work well, if not overkill.

from tab-rs.

Jacobious52 avatar Jacobious52 commented on May 26, 2024

Nice! For fun/learning I did a super rough and buggy proof of concept in a fork in the fuzzy-poc branch here . I used skim since it has a rust library but matches fzf in functionality/quality, I think skim is quiet heavy on dependences though, so not sure if you wanna go that route. UX wise it feels good though. Keen to see what you come up with!

image

from tab-rs.

Jacobious52 avatar Jacobious52 commented on May 26, 2024

Wow! Looks awesome! Combining fuzzy-matcherwithcrossterm` looks like a great choice 👍 Can't wait to try it out.

from tab-rs.

austinjones avatar austinjones commented on May 26, 2024

I think this is stable on the main branch, so I'm closing this.

from tab-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.