rim-editor

Crates.iorim-editor
lib.rsrim-editor
version0.1.0
created_at2025-06-22 11:23:32.161456+00
updated_at2025-06-22 11:23:32.161456+00
descriptionA terminal-based text viewer built following hecto-tutorial
homepage
repositoryhttps://github.com/FinParker/rim
max_upload_size
id1721585
size45,515
Fin Parker (FinParker)

documentation

https://docs.rs/rim-editor

README

Rim

A small text-editor written by Rust.

一个使用Rust编写的小型文本编辑器.

  • Build follow build-your-own-x and hecto

  • 我在学习Rust的过程中, 根据hecto的指引建立了这个文本编辑器.

  • What's new in rim v.s. hecto?

    • An Extra Info Section to tell what's happening

Features

  • Open and view text files
  • Navigation with arrow keys, PageUp/Down, Home/End
  • Resizable terminal support
  • Basic logging for debugging

Installation

cargo install rim-editor

Usage

rim-editor path/to/file.txt

cargo command

cargo run <filename>
cargo clippy cargo doc

git commit tag

feat: 新增功能
fix: 修复bug
refactor: 代码重构
perf: 性能优化
docs: 文档更新
style: 代码样式调整
test: 测试相关
chore: 构件/依赖/配置
build: 影响构建系统的变更
ci: CI/CD配置
revert: 撤销提交

git command

git add -u update tracked files
git commit -m "tag: xxx"

Vscode tips

Ctrl+g 跳转指定行

Commit count: 0

cargo fmt