Skip to content

som-28/Project_Directory_2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIR2 Banner

dir2 (Directory 2.0) — An SQL-Inspired File System Interface for Windows

A Rust-based file system / terminal that reimagines file interaction through SQL-like commands and a Single-file state system. Navigate, select, and execute files using familiar database query syntax.

DIR2 Home

Thank you to Somnath Chaudhary for creating the documentation website.


Key Features:

  • SQL-style file selection: SELECT "script.py" FROM ~/projects/ to load files into state
  • Stateful file management: Single-file state system for focused workflow
  • Quick favorites system: Save frequently used files and executables for instant access
  • Global file search: Find exact file locations system-wide with FINDEXACT
  • Direct execution: Run selected files or favorites with simple commands

Transform your command-line file management from traditional navigation to intuitive querying. Perfect for developers who think in SQL and want a more declarative approach to file system operations.

Uses the rust_search module for system-wide search integration for Windows.

Building the Project

Prerequisites:

  • Rust toolchain installed (visit rustup.rs for installation)
  • Windows 10/11 operating system
  • Git (for cloning the repository)

Build Steps:

  1. Clone the repository:
git clone <repository-url>
cd directory_2

Build the project:

cargo build --release

Run the application:

cargo run --release

Install globally (optional):

cargo install --path .

This installs dir2 to your Cargo bin directory, making it available system-wide.

Development Build: For development and testing, you can use the debug build which compiles faster:

cargo build
cargo run

Dependencies: All required dependencies, including the rust_search module, will be automatically downloaded and compiled by Cargo during the build process.

Example Usage:

DIR2 Select Example

List of Commands Implemented (Pre-Release):

DIR2 Commands List

Meta Commands:

  • CLS | /C : Clear Screen
  • LC : Lists Commands
  • WD : Watch Directory
  • LD : List Directory
  • DD : Dodge Directory
  • CD : Change Drive
  • EXIT | /E : Exit Terminal

State Commands:

  • SELECT filename.ext FROM directory : Sets <filename.ext> file as current STATE
  • VIEW STATE | VS : To view current STATE
  • DROP STATE | DS : Drops the current STATE
  • META STATE | MS : To view current STATE File Metadata
  • RUN STATE | RS : Runs the file or script present in the current STATE

Favorites Commands:

  • FAV VIEW : View all Favorites as a List
  • FAV RM : Removes from favorites
  • FAV SET STATE : Sets current state as latest favorite
  • RUN FAV : Runs the file at the index of the Favorites list

Search Commands:

  • FIND EXACT | FE : Performs a System-wide File search on the Query, returns the list of Directories.
  • SEARCH GOOGLE | S G : Performs a Web Query using Google as the search engine.
  • SEARCH DDG | S D : Performs a Web Query using DuckDuckGo as the search engine.
  • SEARCH CHATGPT | S C : Performs a query to ChatGPT using the query.
  • SEARCH PERPLEXITY | S P : Performs a query to Perplexity using the query

DIR2 End Banner

About

A Rust-based file system terminal that reimagines file interaction through SQL-like commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 100.0%