Skip to content

Release v0.5.2 – New config edit command and improved configuration system#73

Merged
umpire274 merged 5 commits intomainfrom
v0.5.2
Nov 4, 2025
Merged

Release v0.5.2 – New config edit command and improved configuration system#73
umpire274 merged 5 commits intomainfrom
v0.5.2

Conversation

@umpire274
Copy link
Owner

This pull request updates rFortune to version 0.5.2, introducing a new configuration workflow and several usability improvements.

✨ Changes

  • Replaced the legacy config.yaml with the new rfortune.conf format.
  • Added automatic migration from existing configurations with backup handling.
  • Introduced the new subcommand config edit to open and modify the configuration file directly from the terminal.
    • Supports --editor <name|path> for custom editors.
    • Detects $VISUAL and $EDITOR environment variables.
    • Uses nano (macOS/Linux) or notepad (Windows) as fallback editors.
  • Improved CLI feedback with the new ConsoleLog system (colored Unicode output).
  • Updated README.md and CHANGELOG.md to reflect all new features.

🧱 Version

v0.5.2 — November 4, 2025

- Changed configuration filename from `config.yaml` to `rfortune.conf`
- Implemented automatic migration from legacy `config.yaml` to the new format
- Added `ConsoleLog` utility class for colored and symbol-based console output
  (supports Info, OK, Warning, and Error messages)
- Updated all configuration and file initialization functions to use ConsoleLog
  for consistent and user-friendly terminal messages
- Documented configuration file rename from `config.yaml` to `rfortune.conf`
- Added notes on automatic migration and backup of legacy configs
- Described new `ConsoleLog` system with colored Unicode output
- Updated entries for improved feedback in `config init`, `file init`, and `cache clear` commands
…file

- Introduced new subcommand `config edit` to open and modify the configuration file directly from the CLI
- Supports optional `--editor <name|path>` argument to specify a custom editor (e.g. vi, nano, code)
- Automatically detects system editor via $VISUAL or $EDITOR environment variables
- Uses 'nano' as default fallback on macOS/Linux and 'notepad' on Windows
- Improved user feedback and consistency with colored ConsoleLog output
Highlights

This release brings a revamped configuration system and a brand-new command to edit the config file directly from the terminal.

What’s new

- Configuration file renamed from config.yaml → rfortune.conf for better clarity and cross-platform consistency.
- Automatic migration from legacy config.yaml to the new format, preserving user settings and creating a backup (config.yaml.bak).
- New subcommand config edit:
   - rfortune config edit → opens the configuration file using the system’s default text editor.
   - rfortune config edit --editor <name|path> → opens it with a specified editor (e.g. vi, nano, code).
- Automatic editor detection using $VISUAL and $EDITOR environment variables.
- Default fallback editors: nano (macOS/Linux) and notepad (Windows).
- Improved terminal feedback with the new ConsoleLog utility for clear, colorized messages (ℹ ✅ ⚠️ ❌).

Documentation updates

- Updated README.md to reflect the new configuration workflow and config edit command.
- Updated CHANGELOG.md with detailed notes for version 0.5.2.
@umpire274 umpire274 self-assigned this Nov 4, 2025
@umpire274 umpire274 added the enhancement New feature or request label Nov 4, 2025
@umpire274 umpire274 merged commit af40e98 into main Nov 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant