✨ feat(editor,config): add editor integration and config edit command#20
Merged
anIcedAntFA merged 1 commit intomainfrom Feb 7, 2026
Merged
✨ feat(editor,config): add editor integration and config edit command#20anIcedAntFA merged 1 commit intomainfrom
anIcedAntFA merged 1 commit intomainfrom
Conversation
- Add new editor package for interactive content editing - Smart editor detection (VISUAL > EDITOR > GOHOME_EDITOR > platform fallback) - Cross-platform support (Linux, macOS, Windows) - ASCII-only instruction formatting for terminal compatibility - Comment-based instructions with auto-removal - Content validation and cleaning - 100% test coverage (15+ unit tests) - Implement --edit/-E flag for report command - Opens output in editor before displaying/copying - Seamless clipboard integration - Clear user feedback messages - Fixed duplicate separator issue in output - Add 'gohome config edit' command - Opens config file in default editor - Auto-creates config file if missing - Direct editor access without instruction wrapper - Added command validation tests - Fix formatting issues - Remove blank line after instruction separator - Remove duplicate separators in edit mode output - ASCII-only characters for better terminal compatibility - Update documentation - README: Add config edit to management section - ROADMAP: Mark edit mode features as completed - CLI_GUIDE: Comprehensive edit mode usage examples Related: Editor integration for filtering reports before sharing
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Add new editor package for interactive content editing
Implement --edit/-E flag for report command
Add 'gohome config edit' command
Fix formatting issues
Update documentation
Related: Editor integration for filtering reports before sharing
📝 Description
This PR adds comprehensive editor integration to
gohome, enabling interactive content filtering and direct config file editing. Users can now filter commit reports before sharing (via--editflag) and edit configuration files directly in their preferred editor (viagohome config edit).Key Features
--edit/-Eflag opens report in editor for filtering/customization before display or clipboard copygohome config editopens configuration file directly in editorRespects
$VISUAL,$EDITOR,$GOHOME_EDITORenvironment variables with platform-specific fallbacksASCII-only formatting ensures proper rendering in nano/vim
100% test coverage, comprehensive error handling, security-conscious design
🔗 Related Issue
Closes #(issue number)
👥 Reviewers
@anIcedAntFA
🎯 Type of Change
🧪 How Has This Been Tested?
Test Configuration:
📸 Screenshots (if applicable)
✅ Checklist
gofumpt -l -w .to format my codegolangci-lint runand fixed any issues📚 Additional Notes