Skip to content

webgrip/rust-regex-gui

Repository files navigation

Regex GUI

Simple desktop app written in Rust using eframe/egui. It allows adding regex rules that map file names to a destination directory. A "Dry Run" checkbox toggles whether renames should actually happen. When enabled no filesystem changes occur. Rules are presented in an interactive data table with buttons to add or remove rows and inputs sized for comfortable editing.

Logs are captured using the tracing ecosystem and displayed in the UI. The global subscriber filters logs for this crate at the INFO level so that only relevant messages appear.

When running a debug build you can press L to toggle the log panel. In release builds the logs remain visible at all times.

Running locally

cargo run

Docker

Build and run the app with Docker:

docker compose up --build

The container uses X11 forwarding, so an X11 server must be available on the host.

Web

To run the application in a browser you need Trunk and the wasm32-unknown-unknown target:

rustup target add wasm32-unknown-unknown
trunk serve

Alternatively you can run the web version with Docker:

docker compose up web --build

Then open http://localhost:8080 in your browser.