Repository navigation
feat: リスト選択モードを改善 - #26
Merged
Merged
Conversation
インタラクティブモードでのリスト表示を改善し、より洗練された選択UIを実装しました。 実装内容: - タスクリストの番号付き表示(1から始まる) - 要約表示の統合(render.ExtractSummary を使用) - ターミナル幅に応じた動的な要約長調整 - 最小40文字、最大80文字 - 番号と余白を考慮 - カーソル記号を ▶ に変更(視覚的に明確) - 区切り線をターミナル幅に合わせて動的に調整 - コードの最適化(未使用のmin関数を削除) 改善点: - タスク番号が明確に表示される - 長文タスクは要約表示で見やすい - ターミナルサイズに応じて最適化 - 選択中の項目が一目でわかる 使用例: todo list -d # - j/k で上下移動 # - ▶ 1 タスク内容...(選択中) # 2 タスク内容... # 3 タスク内容... 受け入れ基準: ✅ タスクリストが番号付きで表示される(1から始まる) ✅ j/k キーで上下に移動できる ✅ 選択中のタスクが視覚的にわかる(▶記号) ✅ 要約表示が適用される ✅ q キーで終了できる ✅ ターミナルサイズに応じて調整される Closes #12
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.
概要
インタラクティブモードでのリスト表示を改善し、より洗練された選択UIを実装しました。
関連Issue
Closes #12
変更内容
internal/ui/models.go の改善
fmt.Sprintfで整形render.ExtractSummaryを使用>→▶に変更(視覚的に明確)min関数を削除改善点
Before
After
機能
番号付き表示
▶記号要約表示
…で省略レスポンシブ対応
使用例
テスト方法
受け入れ基準
チェックリスト
go fmt)