Giter VIP home page Giter VIP logo

Comments (10)

archseer avatar archseer commented on July 20, 2024 1

Since we use skim's matching algorithms it might be worth figuring out how skim does this for it's interactive mode.

from helix.

sudormrfbin avatar sudormrfbin commented on July 20, 2024 1

Seems to be reasonably solved by #171 and #187 ?

from helix.

archseer avatar archseer commented on July 20, 2024

The problem I see with passing an iterator through: you can only consume it once then we'd need to construct a new one which would re-query the file system.

As a quick fix we could significantly raise the limit? I just primarily wanted to avoid someone using this on something like / and crashing.

from helix.

 avatar commented on July 20, 2024

There is many ways to solve this. A compromise solution could be to search enough to fill the screen (like the first 20 files) and keep the iterator for future search. The previous results can be cached.

The drawback is when the user deletes what he was searching a new iterator needs to be created.

from helix.

 avatar commented on July 20, 2024

I downloaded skim and launch the command from $HOME, $ sk.

$ ps aux | grep -E '^USER|sk$' 
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
begin    3129735 90.6  2.9 1509812 230360 pts/7  Sl+  11:08   9:46 sk

from helix.

hovsater avatar hovsater commented on July 20, 2024

I tried on macOS as well.

~ $ sk
~ $ ps -O %mem  -p 57760
  PID %MEM   TT  STAT      TIME COMMAND
57760  0.2 s002  S+     0:47.79 sk

Translates to roughly 267MB on my machine.

from helix.

pickfire avatar pickfire commented on July 20, 2024

I looked a bit into skim and I think it does a lot more. Like it does rayon to parallelize search. I wonder if @lotabout have any suggestions how we can integrate it here since we have to display it on a certain rectangle, we may also need to have the ability to do extra filtering later on.

from helix.

archseer avatar archseer commented on July 20, 2024

Oh I don't think we need to embed skim, my thought was since we use the fuzzy-matcher crate which was built for skim there might be something we can learn from the implementation.

from helix.

workingj avatar workingj commented on July 20, 2024

seems to me that this could be closed...

from helix.

dead10ck avatar dead10ck commented on July 20, 2024

Agreed, please reopen if you still encounter this problem.

from helix.

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.