JosephTLyons / JosephTLyons/termifind-rust
Make TermiFind Interactive
- Dominant language
- Rust
- Stars
- 12
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
TermiFind's ultimate goal is to be interactive, like the macOS Finder. It needs to be fitted with a mechanism to allow for moving through directories and selecting files. This could require some Terminal manipulation libraries, such as:
[ncurses-rs](https://crates.io/crates/ncurses)
[crossterm](https://crates.io/crates/crossterm)
These can be used to wipe the screen entirely and reprint the whole structure with any changes based on the interaction or certain parts of the screen can be updated. The second option will probably require a rewrite of the system. I'm more in favor of leaning towards any options that avoid using crates with unsafe Rust code.
Some actions that should be possible are:
1. Left and right arrow keys to navigate directories, popping off or adding DirectoryContainers on the right side.
2. Up and down arrow keys to browse files
- Highlighting a new directory should show a preview of its contents, as either a new DirectoryContainer to the right of the current one.
- Highlighting a file should show a container with the file's metadata in it.
3. Pressing enter to open a system application for that file type or to open a terminal editor
4. Maybe an action to return the currently selected path to the shell and close TermiFind.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.