Skip to content

Conversation

@piekstra
Copy link
Contributor

Summary

  • Add ? key to view the README for the selected plugin
  • Full-screen scrollable view with markdown rendering via glamour
  • Support for keyboard navigation and mouse wheel scrolling

Changes

keys.go:

  • Add Readme key binding (?)

model.go:

  • Add ModeReadme mode
  • Add readmeContent, readmeTitle, readmeScroll fields

update.go:

  • Add openReadme() to load and render README.md with glamour
  • Add updateReadme() for scroll and close handling

view.go:

  • Add renderReadme() for the README display
  • Update help bar to show ?: readme

Usage

  1. Select a plugin (must be installed)
  2. Press ? to open the README viewer
  3. Navigate with ↑↓/jk, PgUp/PgDn, g (top)
  4. Press q, Esc, or ? to close

Dependencies

Added github.com/charmbracelet/glamour for markdown rendering.

Closes #5

Press `?` to view the README for the selected plugin in a scrollable view.
Uses glamour for markdown rendering with auto-detected terminal style.

Features:
- Full-screen README view with scroll support
- ↑↓/jk for line scroll, PgUp/PgDn for page scroll, g for top
- q/Esc/? to close and return to main view
- Mouse wheel support for scrolling
- Line position indicator in footer

Closes #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Plugin README viewer

2 participants