李通洲
fa4e11c73b
JsonConfig: write all flags when generating config file
2025-08-05 16:47:48 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
559082806b
Modules: export module info
2025-08-04 00:06:28 +08:00
李通洲
6f8d276545
Modules: add init and destroy option callbacks to module info
2025-08-03 18:40:53 +08:00
李通洲
094d736d38
Modules: remove all parseCommandOptions and related stuff
2025-08-03 10:22:32 +08:00
李通洲
0b02543ef2
JsonConfig: refactor JSON key handling to improve safety and consistency
...
Also make keys case-sensitive
2025-08-02 18:51:03 +08:00
李通洲
a0174e8666
Global: add new unit related options
...
1. `--<module>-space-before-unit`
2. `--duration-abbreviation`
3. various code refactoring and cleanups
2025-07-30 15:03:23 +08:00
李通洲
c79b67efc1
Modules: don't report errors when condition key is set
2025-07-18 16:16:38 +08:00
apocelipes
3b36b8ca57
Global: use ARRAY_SIZE ( #1718 )
2025-04-28 21:22:04 -05:00
李通洲
88ebeb21e2
CPU: fix core count output in multi-package platforms
...
Fix #1413
2025-01-05 19:38:16 +08:00
李通洲
9a36d63d18
Global: refactor code of -h <module>-format
2024-12-11 10:47:02 +08:00
Carter Li
ee564de461
CPU: change cpuCount to packages; support custom format
...
Fix #1413
2024-11-26 21:37:15 +08:00
AzimovParviz
7535ce8a18
Support for dual CPU systems ( #1417 )
...
* [macOS] Added support for dual CPUs on Mac computers
Signed-off-by: Koneko <azimovp17@gmail.com >
* Change how number of cores is displayed when the system is dual CPU
* Support for dual CPU on Windows
* Dual CPU detection on Linux basic implementation
---------
Signed-off-by: Koneko <azimovp17@gmail.com >
2024-11-26 08:53:01 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
Carter Li
a424839d2f
CPU (Linux): remove bios_limit detection
2024-09-28 17:10:22 +08:00
李通洲
37cc2c9c1b
Globals: use generic selection when passing format args
2024-09-04 08:53:16 +08:00
李通洲
2bb988a7f8
CPU: fix freq max formatting
2024-07-29 16:44:54 +08:00
李通洲
57ffe3bad2
Fastfetch: add icons
2024-07-23 23:02:35 +08:00
Carter Li
b89eeaa954
CPU: fix double frequency value when using custom formation
...
Fix #1111
2024-07-22 22:14:43 +08:00
李通洲
46abc4f5f7
CPU: move option freqNdigits into display section
2024-07-17 15:49:12 +08:00
李通洲
d282050130
CPU: support display frequency in MHz
2024-07-17 14:09:06 +08:00
Carter Li
c0de618177
CPU: remove support of min freq detection
2024-07-17 10:19:12 +08:00
Carter Li
df9144ea31
CpuCache: move to a new module; add linux impl
2024-06-05 14:35:25 +08:00
李通洲
f1eaeddfe1
CPU (Windows): detect CPU caches
2024-06-04 23:56:00 +08:00
Carter Li
c8451cab52
Global: support for named format arguments
...
Fix #796
2024-05-28 10:23:29 +08:00
Carter Li
2d4e7f10c4
CPU: add option --show-pe-core-count
2024-05-21 09:21:03 +08:00
Carter Li
aa1a5b8c36
CPU: fix CPU frequency not displayed if bios_limit doesn't exist
...
Regression of 264b6794f3
2024-05-21 08:44:49 +08:00
李通洲
264b6794f3
CPU (Linux): detect bios limited frequency and print it by default
...
To match neofetch's behavior
Fix #947
2024-05-20 18:35:10 +08:00
李通洲
3571d9277d
CPU (Linux): take --cpu-freq-ndigits into account in --cpu-format
2024-05-19 22:18:06 +08:00
李通洲
d88e2eeb36
CPU (macOS): fix compiling
2024-05-18 19:57:24 +08:00
李通洲
7946e69a66
CPU: print core count for different core types
2024-05-18 18:08:38 +08:00
Carter Li
1421627a47
CPU (Linux): detect core count for different core types
2024-05-17 08:35:22 +00:00
李通洲
459f159b1b
Fastfetch: revert to module color after printing custom colors
2024-05-08 15:25:59 +08:00
李通洲
2e201eaaf7
CPU: bring min frequency back & code optimizations
2024-03-14 19:24:03 +08:00
李通洲
7e04e23528
CPU: rename min frequency to base frequency
2024-03-13 23:42:59 +08:00
李通洲
7acdaebee4
Printing: merge ffPrintError and ffPrintErrorString
2024-03-07 11:10:18 +08:00
李通洲
6dcfb6b88f
Fastfetch: fully resolve the format arg num issue
...
Ref: #749
2024-03-07 10:47:28 +08:00
李通洲
ba60d9059f
Temps: support color range customization
2024-02-27 11:00:43 +08:00
李通洲
a0c47204bb
Temp: Display: support better temperature value formatting
...
Fix #737
2024-02-26 11:09:00 +08:00
李通洲
730c0d1c92
Fastfetch: print module description for --list-modules
2023-11-17 14:12:57 +08:00
李通洲
f4a263df01
Migration: finish modules support
2023-10-24 14:41:29 +08:00
李通洲
ec87790e4f
Global: init support for JSON config file migration (WIP)
2023-10-23 16:17:07 +08:00
李通洲
44632e9bf6
Global: don't expose internal functions
2023-10-23 13:32:40 +08:00
李通洲
e7938216ba
Global: :%s/ffGenerate\w+Json/$0Result/g
2023-10-23 13:32:39 +08:00
李通洲
78249bf4f7
CPU: add new option --cpu-freq-ndigits
...
Fix #578
2023-10-08 10:10:06 +08:00
李通洲
12208b2c7c
Global: improve support of --help *-format
...
Also fix some bugs found when refactoring
2023-10-07 13:40:40 +08:00
李通洲
48cecd0ad1
CPU: update JSON format structure
2023-09-19 10:50:52 +08:00
李通洲
8a14cbae0c
JSON: don't print the non-standand NaN
2023-09-18 20:12:33 +08:00
李通洲
1cdc99f327
JSON format: fix some memleaks
2023-09-08 20:25:41 +08:00
李通洲
fddf6ddf1e
CPU: don't use NaN in JSON
2023-09-05 15:51:09 +08:00