Comments (10)
I made filesize as a cross-platform way of getting the size of objects on disk.
Termion looks to be getting there.
from diskonaut.
Hey @Freaky, I saw your PR and will take a look at it shortly regarding filesize. Thanks for this!
Since diskonaut uses tui-rs, I think we can definitely switch the backend to crossterm or something that supports windows with a conditional compilation flag. So even if it takes a while for that Termion issue to be merged, I think we can still go forward with this.
from diskonaut.
So to update this issue: thanks to @Freaky, 1 has been taken care of. We are left with 2.
from diskonaut.
what the state here. I have a rough version working with crossterm on windows. Is this interesting or are you waiting for termion to get a working windows version.
Could either switch 100% to crossterm, or make the backend choice a feature. I dont know enough to be able to say whats best, easiest is 100% switch
from diskonaut.
Very interesting! I'd be happy to move 100% to crossterm (we've recently done something similar with bandwhich
) if it gives us windows support. Only thing is I'd like to manually test it on linux/mac first to make sure it's okay, because our tests mock the tui backend.
from diskonaut.
ok, this is 100% switch to crossterm, runs on my windows 10 dev box and on my rasp pi.
The tests dont even compile so I have not sent you a pull request. But you can check it out here https://github.com/pm100/diskonaut
Let me know if you find anything broken
from diskonaut.
BTW - I found this project via 'this week in rust' projects looking for help.
Total rust noob.
from diskonaut.
tests now compile. they all fail, I dont know how they work so not sure how to fix. You seem to be testing to see what draw commands are issued, hers the failure on the first test i drilled into
thread 'tests::cases::ui::two_large_files_one_small_file' panicked at 'assertion failed: `(left == right)`
left: `[Clear, HideCursor, Draw, HideCursor, Flush, Draw, HideCursor, Flush, Clear, ShowCursor]`,
right: `[Clear, HideCursor, Draw, Flush, Draw, Flush, Clear, ShowCursor]`', src\tests\cases\ui.rs:106:5
I wonder if this is just a difference of how tui drives the backend, not sure.
from diskonaut.
Hey @pm100, I took a brief look at the repo and it looks like a great start! I haven't yet tested this locally though, and if you'd like to move forward with this I'll definitely take a closer look.
About the tests: it definitely might be. I wouldn't worry too much about these (you can even comment them out for now) and would more try to concentrate on the snapshots. These are snapshots taken of the UI in each draw event (as a delta of what was on the screen in the previous draw event). They should not be very different and should make it easier to understand what changed.
Do feel free to open a PR though, even with failing tests. I think it will make it easier for us to discuss.
Also - I'm happy you found this project and want to work on this. No worries about experience levels, I think you're doing great. :)
from diskonaut.
Released in 0.11.0, thanks @pm100 !!
from diskonaut.
Related Issues (20)
- thread 'main' panicked at 'index out of bounds: the len is 3600 but the index is 3600 HOT 12
- Bug: When deleting files or entering folders with multibyte characters, the app might crash
- Feature: implement `--apparent-size` HOT 1
- Bug: Small files hidden from view HOT 7
- Bug: Runaway memory usage when run on large directories HOT 9
- Option to delete without confiration? HOT 2
- failure="0.1" not available, the current version is 0.1.8 HOT 4
- An option not to cross filesystems HOT 1
- most dirs are missing HOT 4
- Feature Request: Give an option to exclude directory HOT 1
- offer prebuild deb files in a ppa
- Update jwalk dependency to 0.6
- aarch64 and armhf doest pass tests ?
- The folder takes up too much space (7091231513.3G) HOT 2
- Feature Request: Ability to not cross filesystem boundaries. HOT 2
- Graphics break down when running over SSH to Windows HOT 1
- Feature: 'explode' a directory
- Numbers aren't adding up
- Feature: option `--ignore` to skip certain directory/directories HOT 2
- OneDrive on-demand - files showing full size
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 diskonaut.