#tui #terminal #cli

yanked rim-editor

A terminal-based text viewer built following hecto-tutorial

0.1.0 Jun 22, 2025

#1194 in #tui

MIT license

34KB
576 lines

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 跳转指定行

Dependencies

~3–12MB
~159K SLoC