Comments (10)
Since we use skim
's matching algorithms it might be worth figuring out how skim does this for it's interactive mode.
from helix.
Seems to be reasonably solved by #171 and #187 ?
from helix.
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.
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.
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.
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.
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.
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.
seems to me that this could be closed...
from helix.
Agreed, please reopen if you still encounter this problem.
from helix.
Related Issues (20)
- round out clipboard actions with add actions to delete/change selection to clipboard HOT 2
- Keybind to exit sticky view mode HOT 4
- 'file modified by an external process' message with double :w :w on big files
- function argument causes simalarly named function name to look like function argument. HOT 1
- Text edits with the same start position are applied in reverse HOT 2
- Bad markdown table format in docs preview (`<space-k>`)
- Trim in :pipe in 24.07 version HOT 6
- Latest release (24.07) HOT 1
- Picker V2 are lacking user-facing docs on how to use them
- Cannot read some highlighted search results without true color HOT 2
- How to map space a a to "scroll_up"
- grammars located in /root/.config/helix/runtime
- Avoid flashes in dynamic picker HOT 3
- Support sqls language server for SQL
- shows "file modified by external process" while trying to save a file on external hdd HOT 1
- Add support stylus language
- Global search no longer adds into search history HOT 8
- Initial delay in the new global search experience HOT 10
- Add support for Liquid
- Select items from history in Pickers (global_search) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helix.