李通洲
805e277429
JsonConfig: adds 'succeeded' module condition to JSON config
...
Fixes #1908
2025-08-18 14:18:37 +08:00
李通洲
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
李通洲
0b02543ef2
JsonConfig: refactor JSON key handling to improve safety and consistency
...
Also make keys case-sensitive
2025-08-02 18:51:03 +08:00
李通洲
3cef51ec4a
JsonConfig: refactor string buffer JSON handling for robustness
2025-08-02 17:41:19 +08:00
李通洲
6c56348e54
JsonConfig: add modules[n].condition to run modules conditionally on different platforms
2025-07-18 15:45:25 +08:00
李通洲
9a54d92e9f
Stat: use ESC 7/8 instead of CSI s/u
...
Fix Apple Terminal compatibility #1755
2025-05-16 10:33:58 +08:00
李通洲
2281caaff8
Fastfetch: fix bug that stat info is unexpectly printed
2024-08-13 15:28:17 +08:00
李通洲
f6e1e5c96b
Fastfetch: support --stat <num>
2024-08-13 08:41:32 +08:00
Carter Li
0b85fc74eb
Fastfetch: increase precision of --stat
2024-08-13 08:41:32 +08:00
李通洲
9b038dc848
Global: fix JSON option modules.keyIcon doesn't work
2024-07-24 15:38:54 +08:00
李通洲
789f1e34ef
Fastfetch: don't mess output with --stat in --pipe mode
2024-07-08 15:05:42 +08:00
李通洲
2880536513
Fastfetch: support --module-ouput-color (WIP)
2024-05-08 15:01:57 +08:00
apocelipes
b9faf8d77f
fastfetch: fix #868 ( #871 )
...
Fix #868 .
2024-05-05 07:10:51 +08:00
李通洲
7acdaebee4
Printing: merge ffPrintError and ffPrintErrorString
2024-03-07 11:10:18 +08:00
李通洲
f45654620f
Global: code refactor
2023-10-26 15:39:28 +08:00
李通洲
399e2235d4
Options (Display): split code
2023-10-26 10:26:15 +08:00
李通洲
2c49dcceaf
Options (Library): split code
2023-10-25 16:24:24 +08:00
李通洲
3c5b002414
Options (Modules): split code
2023-10-25 15:38:46 +08:00
李通洲
bed1b4cf0f
Global: move general options to a new separate folder
2023-10-25 13:39:13 +08:00
李通洲
04c3a4ccf7
Logo: move logo options related code to a new folder
2023-10-25 10:44:34 +08:00
李通洲
4e018dbf26
JsonConfig: code refactor
2023-10-25 09:13:04 +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
李通洲
824ada49b6
Global: :%s/generateJson/generateJsonResult/g
2023-10-23 13:32:39 +08:00
李通洲
0b0e286b9c
DiskIO: support --diskio-name-prefix
2023-10-08 16:30:09 +08:00
李通洲
154657b455
NetUsage: rename to NetIO
2023-09-27 00:06:11 +08:00
李通洲
b29b78b321
NetUsage: finish module
2023-09-26 23:00:31 +08:00
李通洲
14f26879de
Global: init --format json support ( #527 )
2023-09-05 15:29:46 +08:00
李通洲
b1ac31f590
Global: add option --percent-ndigits
2023-08-24 09:35:17 +08:00
李通洲
970863e7df
Global: simplify code of module matching
2023-08-20 21:35:38 +08:00
李通洲
77e0d9dba1
JsonConfig: prepare for module weather and public ip
2023-08-18 13:38:32 +08:00
李通洲
c888254f70
Modules: major code refactor
...
Also fix some bugs found when refactoring
2023-08-17 16:10:02 +08:00
李通洲
a0c4f2febd
Global: support --bar-width
2023-08-16 16:51:41 +08:00
李通洲
559bca4223
Global: add --bar-char-elapsed, --bar-char-total and --bar-border options
2023-08-16 14:41:56 +08:00
李通洲
8ed28673a9
Global: support --module-key-width per module
2023-08-16 13:21:15 +08:00
李通洲
e6be90614a
fastfetch: support --key-width
2023-08-15 21:11:52 +08:00
李通洲
add33186a8
Fastfetch: improve performance of --structure parsing
2023-08-10 16:55:49 +08:00
李通洲
7965107347
PhysicalDisplay: rename module to Monitor
2023-08-09 16:31:24 +08:00
李通洲
921f3e3c34
PhysicalDisplay: fix typo
2023-08-09 13:27:52 +08:00
李通洲
bb0279bae1
NativeResolution: rename module to PhycialDisplay
2023-08-09 10:00:57 +08:00
李通洲
a58db92ab8
NativeResolution: init code
2023-08-08 20:18:24 +08:00
李通洲
819c78e74c
Fastfetch: add option --bright-color
2023-08-04 16:05:25 +08:00
李通洲
674618930d
DisplayServer: add option --ds-force-drm
...
Fixes #505
2023-07-31 23:11:39 +08:00
李通洲
af2c6a832e
Fastfetch: add new option --temperature-unit
2023-07-27 15:58:49 +08:00
李通洲
8cbeb709f9
TerminalSize: add new module
2023-07-26 18:18:27 +08:00
李通洲
9de7a78f43
JsonConfig: don't disable --show-errors when setting --stat false
2023-07-19 15:44:40 +08:00
李通洲
7dae59ee92
Processing: add --processing-timeout
2023-07-10 22:20:30 +08:00
李通洲
7bd0780f1a
Fastfetch: make --size-max-prefix accept enum values.
2023-07-10 17:30:08 +08:00
李通洲
856d732e13
Global: add option --size-ndigits and --size-max-prefix
2023-07-10 15:25:45 +08:00