Skip to content

xudong7/iced-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iced Editor

A minimalist text editor built with Iced, a cross-platform GUI library for the Rust programming language.

English | 中文

This project is inspired by the iced-rs/iced repository and this YouTube video

Features

  • Syntax Highlighting: Supports Rust, Markdown, and other common programming languages
  • Text Editing: Basic text editing capabilities (create, open, save)
  • Theme Switching: Supports both light and dark modes
  • Status Bar: Displays file path and cursor position
  • Keyboard Shortcuts: Supports common shortcuts like Ctrl+S for saving

Screenshot

Editor Screenshot

System Requirements

  • Rust (1.60 or newer)
  • Cargo (comes with Rust)

Dependencies

  • iced: GUI framework
  • tokio: Async runtime
  • rfd: File dialogs

Installation

  1. Make sure Rust and Cargo are installed
rustc --version
cargo --version
  1. Clone the repository
git clone https://github.com/xudong7/iced-editor.git
cd iced-editor
  1. Build and run
cargo build
cargo run

Usage

  • New File: Click the new button in the toolbar or select from menu
  • Open File: Click the open button and select a file to edit
  • Save File: Click the save button or use Ctrl+S shortcut
  • Switch Theme: Use the theme selection dropdown in the top right

Project Structure

iced-editor/
├── src/
│   ├── main.rs      # Main program entry
│   └── ...
├── fonts/
│   └── editor-icons.ttf  # Editor icon font
├── Cargo.toml       # Project dependencies
└── README.md        # Project documentation

Future Plans

  • Add more editing features (find/replace, autocomplete)
  • Support special handling for Chinese paths and file content
  • Support syntax highlighting for more programming languages
  • Tab support for editing multiple files simultaneously
  • File tree view
  • Settings configuration interface

Contributing

Pull requests and issues are welcome! Any contribution will be seriously considered.

License

MIT License

About

A simple text editor built with Iced

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages