How pooryam92/vim-coach works
Vim Coach is an IntelliJ plugin that delivers short Vim-learning tips. The main workflow loads tip content from a remote GitHub source (or configured local file), parses and caches it, selects tips for startup, scheduled, or on-demand display, and presents them as IDE notifications. Settings control categories, exclusions, advanced tips, and schedules; notifications can also apply supplied mappings to .ideavimrc. Source-level evidence is partial, so edges for documented but unsampled behavior cite the README, and uncertain wiring is omitted.
Main entry points: ShowTips.kt Show tips · RemoteTipSourceServiceImpl.kt Remote source · VimCoachSettingsScreenController.kt Settings controller · IntelliJTipNotifier.kt IDE notifier
Components 26
Tip loading
- Refresh tips
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/RefreshTips.kt - Source selector
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/TipSourceServiceImpl.kt - Remote source
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/remote/RemoteTipSourceServiceImpl.kt - File source
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/file/FileTipSourceServiceImpl.kt - JSON parser
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/parsing/TipJsonParser.kt - Tip source config
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/config/VimTipConfig.kt
Tip coaching
- Tip scheduling
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/scheduling/ScheduleTips.kt - Tip selection
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/selection/SelectNextTip.kt - Show tips
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/notifications/ShowTips.kt - Advanced nudge
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/notifications/AdvancedTipsNudge.kt - Apply to ideavimrc
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/ideavimrc/AddTipToIdeaVimRc.kt
Persistence
- Tip repository
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/persistence/VimTipRepositoryImpl.kt - Settings repository
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/persistence/SettingsRepositoryImpl.kt - Rotation repository
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/persistence/TipRotationRepositoryImpl.kt
IDE interface
- Show tip action
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/notifications/ShowVimTipAction.kt - Startup activity
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/scheduling/VimTipStartupActivity.kt - Refetch action
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/loading/RefetchVimTipsAction.kt - Settings UI
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/ui/settings/VimCoachSettingsConfigurable.kt - Settings controller
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/settings/VimCoachSettingsScreenController.kt - Excluded tips panel
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/ui/settings/ExcludedTipsListPanel.kt - IDE notifier
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/ui/notifications/IntelliJTipNotifier.kt - Notification factory
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/ui/notifications/TipNotificationFactory.kt - Localization bundle
src/main/kotlin/com/github/pooryam92/vimcoach/core/shared/i18n/MyBundle.kt
Tip domain
- Vim tip model
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/domain/VimTip.kt
Other components
- IDE user
- GitHub tips API
Connections 30
- IDE user → Show tip action: requests tip
- Show tip action → Show tips: invokes
- Startup activity → Refresh tips: refreshes
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/scheduling/VimTipStartupActivity.kt - Startup activity → Show tips: shows tip
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/scheduling/VimTipStartupActivity.kt - Startup activity → Tip scheduling: schedules
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/scheduling/VimTipStartupActivity.kt - IDE user → Settings UI: configures
- Settings UI → Settings controller: uses
- Settings controller → Refresh tips: refreshes
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/settings/VimCoachSettingsScreenController.kt - Settings controller → Settings repository: reads settings
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/settings/VimCoachSettingsScreenController.kt - Settings controller → Tip repository: reads tips
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/settings/VimCoachSettingsScreenController.kt - Refetch action → Refresh tips: requests refresh
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/entrypoints/loading/RefetchVimTipsAction.kt - Refresh tips → Source selector: loads source
- Source selector → Remote source: selects remote
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/TipSourceServiceImpl.kt - Source selector → File source: selects file
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/TipSourceServiceImpl.kt - Remote source → GitHub tips API: fetches tips
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/remote/RemoteTipSourceServiceImpl.kt - Remote source → JSON parser: parses response
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/remote/RemoteTipSourceServiceImpl.kt - File source → JSON parser: parses file
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/file/FileTipSourceServiceImpl.kt - Remote source → Tip source config: resolves URL
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/remote/RemoteTipSourceServiceImpl.kt - File source → Tip source config: resolves path
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/file/FileTipSourceServiceImpl.kt - JSON parser → Vim tip model: creates tips
src/main/kotlin/com/github/pooryam92/vimcoach/features/tips/application/loading/infra/parsing/TipJsonParser.kt - Show tips → Tip selection: selects tip
- Show tips → IDE notifier: displays tip
- IDE notifier → Notification factory: builds notification
- Show tips → Advanced nudge: checks nudge
- IDE notifier → Apply to ideavimrc: offers apply
- Tip selection → Tip repository: reads tips
- Tip selection → Rotation repository: tracks rotation
- Settings repository → Settings UI: provides controls
- Excluded tips panel → Settings UI: manages exclusions
- IDE user → IDE notifier: receives coaching