Crates.io | explore |
lib.rs | explore |
version | 0.0.3 |
source | src |
created_at | 2024-07-31 15:40:25.728236 |
updated_at | 2024-08-02 04:12:11.585934 |
description | terminal file explorer |
homepage | |
repository | https://github.com/nathanroark/explore |
max_upload_size | |
id | 1321021 |
size | 46,544 |
Explore is a terminal-based file explorer built with Rust and ratatui
j
/ Down Arrow
: Move down in the file list.k
/ Up Arrow
: Move up in the file list.l
/ Right Arrow
/ Enter
: Enter a directory or open a file preview.h
/ Left Arrow
/ Backspace
: Go back to the parent directory.p
: Toggle the preview pane.q
/ Esc
: Exit the application.If you have Cargo installed, you can install explore
directly from crates.io:
Install explore
:
cargo install explore
Run the application:
explore
Clone the repository:
git clone https://github.com/nathanroark/explore.git
cd explore
Build the project:
cargo build --release
Run the application:
cargo run
Use the key bindings to navigate through your file system. When the preview pane is enabled, you can see the contents of the selected file directly in the terminal. The preview supports syntax highlighting for code files and can display images.
src/
main.rs
: Entry point of the application.app.rs
: Contains the main application logic, including event handling and rendering.tui.rs
: Handles terminal initialization and restoration.ui.rs
: Contains functions to render the file list and other UI components.preview.rs
: Manages the preview functionality, including syntax highlighting and image rendering.ratatui
for terminal UI.syntect
for syntax highlighting.image
for image decoding and rendering.color-eyre
for error handling.This project is licensed under the MIT License. See the LICENSE file for details.