Commit 125a559
committed
feat: add config file support for color mode selection
- Implement priority hierarchy for color mode selection:
1. CLI arguments (highest priority)
2. Configuration file settings
3. Auto-detection (lowest priority)
- Check config.terminal.color_mode for 'rgb' or '256' values
- Fall back to auto-detection if not explicitly configured
- Add clarifying comments about the priority order
This allows users to persist their preferred color mode in the
configuration file while still respecting CLI overrides.1 parent e2b9e1a commit 125a559
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
150 | 159 | | |
151 | 160 | | |
152 | 161 | | |
| |||
0 commit comments