李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
Carter Li
873454191f
Global: uses typed enums
2026-07-10 18:09:46 +08:00
Carter Li
d1bf208a92
Chore: renames stringUtils to strutil
2026-05-28 15:58:08 +08:00
李通洲
910ba413da
Modules: adds missing options when generating full config file
2026-04-20 16:14:58 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +08:00
李通洲
831659966f
Style: adds Cpp11BracedListStyle: Block
2026-03-31 14:20:21 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
李通洲
f188e9518d
Colors: add brightness option for color display configuration
...
Fixes #2238
2026-03-22 13:43:16 +08:00
李通洲
31e833c02e
Colors: updates module description
...
Fixes #2147
2026-01-15 15:20:38 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
3b5e9c74d6
Modules: return bool to indicate whether the detection is succeeded
2025-08-18 13:38:30 +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
李通洲
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
李通洲
c79b67efc1
Modules: don't report errors when condition key is set
2025-07-18 16:16:38 +08:00
李通洲
9cda7e20fb
Chore: simplify fastfetch.h
2025-04-14 10:28:01 +08:00
李通洲
9a36d63d18
Global: refactor code of -h <module>-format
2024-12-11 10:47:02 +08:00
李通洲
97e1b987dd
Global: pack all enums and make flag enums unsigned
2024-11-14 11:00:44 +08:00
李通洲
8559ab2dcd
Colors (Linux): support tmux in linux TTY
2024-08-20 16:36:44 +08:00
李通洲
4e41223b81
Colors (Linux): only apply work around in Linux Console
2024-08-14 10:03:12 +08:00
Carter Li
fe5b07e0d0
Colors (Linux): fix light color doesn't work on Linux tty
...
Ref: https://github.com/fastfetch-cli/fastfetch/issues/1141#issuecomment-2271060911
2024-08-07 10:15:01 +08:00
李通洲
57ffe3bad2
Fastfetch: add icons
2024-07-23 23:02:35 +08:00
李通洲
e12c6e6fd7
Colors: fix bug with --pipe enabled
2024-07-19 15:02:17 +08:00
李通洲
bd0b108c04
Colors: don't disable color if --color-symbol background is set in --pipe mode
2024-07-16 14:32:51 +08:00
李通洲
2a9f9d5a34
Colors: add and default to --colors-symbol background
2024-07-16 11:07:26 +08:00
李通洲
2c537c836c
Colors: normalize bright colors
...
Fix #991
2024-06-04 16:42:58 +08:00
Carter Li
5fa18a8a1c
Custom: detect & convert color placeholders ({#xxx})
2024-05-28 14:23:19 +08:00
李通洲
d2f3f47457
Colors: print non-colored blocks in pipe mode
2024-05-05 20:14:24 +08:00
李通洲
7acdaebee4
Printing: merge ffPrintError and ffPrintErrorString
2024-03-07 11:10:18 +08:00
李通洲
937611aa29
Colors: support JSON config generation
2024-02-15 22:05:34 +08:00
李通洲
eda38e16db
Colors: don't print extra empty lines
2024-02-15 21:55:33 +08:00
李通洲
17f4a6e055
Colors: support block related settings
...
Fix #721
2024-02-14 22:09:12 +08:00
Marius Messerschmidt
6d22a76946
Spelling: fix spelling of files in src/modules/
2023-11-18 15:47:22 +01:00
李通洲
730c0d1c92
Fastfetch: print module description for --list-modules
2023-11-17 14:12:57 +08:00
李通洲
5d44efbf62
Colors: don't use background color
...
It causes some weird behavior on some old terminals.
Ref: https://www.reddit.com/r/HomeServer/comments/16ys32a/guess_the_power_consumption_of_ryzen57600x/
2023-11-14 10:01:29 +08:00
李通洲
399e2235d4
Options (Display): split code
2023-10-26 10:26:15 +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
李通洲
12208b2c7c
Global: improve support of --help *-format
...
Also fix some bugs found when refactoring
2023-10-07 13:40:40 +08:00
李通洲
d94fc32f45
Colors: support --colors-key
2023-09-22 15:05:27 +08:00
李通洲
14f26879de
Global: init --format json support ( #527 )
2023-09-05 15:29:46 +08:00
李通洲
55b279ab09
JsonConfig: remove useless checks
2023-08-17 16:10:05 +08:00
李通洲
c888254f70
Modules: major code refactor
...
Also fix some bugs found when refactoring
2023-08-17 16:10:02 +08:00
李通洲
8ed28673a9
Global: support --module-key-width per module
2023-08-16 13:21:15 +08:00
李通洲
d0f093c567
Global: make FFinstance instance a global variable
...
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
2023-06-24 17:28:05 +08:00