zjp-CN / term-rustdoc

[WIP] A TUI for Rust docs that aims to improve the UX on tree view and generic code.
17 stars 1 forks source link

UI Iteration #1

Open zjp-CN opened 7 months ago

zjp-CN commented 7 months ago

Fold

截图_20240204010119

zjp-CN commented 7 months ago

Remember last cursor position if the same line exists on screen

term-rustdoc

zjp-CN commented 7 months ago

expand/fold toggle

some other useful folding style

term-rustdoc

zjp-CN commented 7 months ago

Text wrapping and highlighting in content panel

zjp-CN commented 7 months ago

highlight current headings in visual range

heading

zjp-CN commented 7 months ago

Dashboard

Select pkgs under local registry src folder or cached pkg docs.

dashboard

zjp-CN commented 7 months ago

Help Popup

help

zjp-CN commented 6 months ago

Selection for Features and Version

Press Enter key in selected pkg in Local registry panel will enter the selection panel. Support arrow keys and mouse click. Tab key for switching between features and versions. Enter key in feature selection to toggle the selected feature with needless or lock warning for implicitly enabled features! Press Space key to compile for selected version with selected features!

FeatureSelection

PkgToml Line

A handy view on pkg's (name, version, features) for what's under the cursor, but in useful toml format!

PkgToml

zjp-CN commented 6 months ago

v0.2.0

Inner tree for an item

Support inner items (methods / impls / implementors) in fn/structs/enums/unions/traits.

Interaction: trigger navi actions for outline via clicking on the right bottom on Page, or hitting arrow / hjkl keys when in page.

Item declaration

Only for functions and structs, because they need refatoring ( #11 )

item_decl-inner-impl