Commit graph

9 commits

Author SHA1 Message Date
e813704f81 feat: save hosts file 2025-08-14 10:09:30 +02:00
ecb7a1ab93 Update key bindings to match project brief 2025-08-14 09:04:25 +02:00
51966f766c Add edit mode toggle and entry activation 2025-08-13 16:39:39 +02:00
0bcb821c33 Fix pane border overflow 2025-08-13 16:16:53 +02:00
a24041d664 Implement TUI pane navigation 2025-08-13 15:57:35 +02:00
9748c2dde8 feat: add view mode status bar 2025-08-13 14:52:57 +02:00
1b66db10e2 feat: begin tui implementation 2025-08-13 14:39:27 +02:00
phg
b81f11f711 feat(parser): Implement hosts file parser with intelligent formatting
- Added `internal/core/parser.go` for parsing hosts files, including:
  - Support for standard entries (IPv4, IPv6, multiple aliases, inline comments)
  - Handling of comments and disabled entries
  - Error recovery for malformed lines with warnings
  - Intelligent formatting with adaptive spacing and column alignment
  - Backup and atomic write operations for file safety

test(parser): Add comprehensive tests for hosts file parsing

- Created `tests/parser_test.go` with 54 test cases covering:
  - Standard entries and comments
  - Malformed lines and whitespace variations
  - Round-trip parsing to ensure format preservation
  - Backup functionality for hosts files

docs(progress): Update project progress and next steps

- Mark Phase 1 as complete and outline tasks for Phase 2 (TUI implementation)
- Highlight completed features and testing coverage
2025-08-13 10:46:39 +02:00
phg
d66ec51ebd feat: Initialize hosts-go project with foundational structure and core functionality
- Created activeContext.md and productContext.md to outline project goals and current focus.
- Established progress.md to track project milestones and tasks.
- Developed projectbrief.md detailing application overview, requirements, and directory structure.
- Documented systemPatterns.md to describe architecture and design patterns used.
- Compiled techContext.md to specify technologies and development setup.
- Implemented comprehensive unit tests in models_test.go for HostEntry and HostsFile functionalities.
2025-08-12 22:41:33 +02:00