Repository navigation
add: pager help overlay and incremental search - #11
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更理由
競合の pager(moar/moor、glow、less、frogmouth、DocSail)の実装を読み、
mdvuの pager と比較して埋められる差を実装した。?/ moarh/ lesshは全て持つ)マウス・
$EDITOR起動・OSC 52 コピーは、.claude/rules/runtime.mdとCLAUDE.mdの決定(マウスキャプチャを有効にしない / サブプロセスを起こさない)を維持するため入れていない。変更内容
?でキー一覧 overlay。 表はsrc/pager/help.rsが正で、README のキー表はそれに追従する。低い端末ではj/kでリスト末尾まで到達できる/を押した位置から検索し直し、Escで viewport と確定済み検索の両方を戻す。プレビューの一致集合は確定済みと別に持つCtrl-a/e/b/f/w/u/k/d・矢印・Home/End。グラフェム境界で動く(3/12)。 入力中も確定後も同じ右端に出る。n/Nが端で折り返したらwrappedStyleRole::CurrentMatch)。他の一致は従来どおり素の反転影響範囲
src/pager/に閉じている。追加はStyleRole::CurrentMatch(src/layout/mod.rs/theme.rs)のみで、layout 以前の段と stdout backend の出力は変わらない(golden snapshot 無変更)。判断基準は.claude/rules/runtime.mdに追記した。確認手順
```console
cargo test --all-features
cargo clippy --all-targets --all-features -- -D warnings
```
pager::watchの 2 件のみ手元の sandbox で失敗するが、これは FSEvents が届かない環境制約(.claude/rules/runtime.mdに記録済み、CI で検証される)state.rs/event.rsの unit test、描画はratatuiのTestBackendによる 1 フレーム検証で固めている