Linus Dierheimer
47bf785752
Include limits.h when needed
...
Fixes #472
2023-06-12 15:10:45 +02:00
李通洲
71beb626c3
Logo: fix paddingLeft doesn't work when paddingTop is set
2023-06-11 21:35:18 +08:00
李通洲
c7119498a3
Global: major FFstrbuf related code refactor
2023-06-10 09:15:15 +08:00
李通洲
cc2286f056
Windows: fix compiling with imagemagick enabled
2023-04-02 20:41:16 +08:00
李通洲
6ca4b5391b
Library: refactor FF_LIBRARY_LOAD to use __cleanup__
2023-02-15 14:51:04 +08:00
李通洲
e4973b3262
IO: fix Windows part; silense warnings
2023-01-28 22:46:59 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
Linus Dierheimer
2c51d55ba2
IO: don't require posix specific stuff for ffPathExists
2023-01-28 11:52:23 +01:00
Linus Dierheimer
3b0e1a5833
Image: Use correct cache dir
2023-01-28 11:28:05 +01:00
Linus Dierheimer
9bb6d8fd6e
Allow loading images from data dirs too
...
#375
2023-01-28 11:14:16 +01:00
Linus Dierheimer
a1d8e3e598
Introduce FFPlatform
2023-01-15 15:57:26 +01:00
李通洲
012c7552eb
macOS: try fixing #380
2023-01-09 13:42:58 +08:00
李通洲
d0bab2ca22
Image: fix compiler warnings (Windows)
2023-01-08 01:27:54 +08:00
JesseBot
4247d15672
Fix error text typo from item to iterm
2023-01-01 15:39:03 +01:00
李通洲
39d8ebc3c9
Logo: support --logo-padding-top
2023-01-01 17:37:11 +08:00
李通洲
4a781d8471
Logo: support raw image type
...
For raw image type, fastfetch nether parses the file content, nor tries to detect the image size from the file. It's useful to print pre-converted sixel image.
2023-01-01 17:06:18 +08:00
李通洲
9f93ca8019
README: document image logo support
2023-01-01 12:29:08 +08:00
李通洲
d956bd2643
Image: update cache folder's name
2022-12-27 17:25:19 +08:00
李通洲
051f6643a6
Image: fix build
2022-12-23 15:23:37 +08:00
李通洲
47e01a7157
Image: print more debug info when errored
2022-12-23 12:51:37 +08:00
李通洲
a336145ed9
Image: add fast path for kitty protocol
2022-12-23 12:45:57 +08:00
李通洲
3e607680e2
Image: dont leak memories
2022-12-22 21:47:30 +08:00
李通洲
89347b7bee
Image: add dirty support of iTerm image protocol
...
iTerm image protocol supports most commonly used image formats so we don't need image magick to convert image format.
However, since we don't know anything about the image, `--logo-width` `--logo-height` must be specified to make sure that logo will not be covered by texts.
2022-12-22 21:37:16 +08:00
李通洲
c45ef08926
Image: expose more chafa settings
2022-12-22 11:36:13 +08:00
李通洲
f50b478966
Image: try fixing caching
2022-12-22 02:40:56 +08:00
李通洲
0cacedfc5d
Image: enable Chafa on Windows
...
It's not built by default, as imagemagick requires too many dlls.
2022-12-22 02:07:57 +08:00
李通洲
985fc991e8
Revert "Image: tidy"
...
This reverts commit d21ce9b10f .
2022-12-20 22:44:45 +08:00
李通洲
d21ce9b10f
Image: tidy
2022-12-20 22:37:15 +08:00
李通洲
75341e8172
Image: make it compile on Windows
...
Doesn't work yet.
2022-12-20 11:37:54 +08:00
李通洲
01d2d77efd
Image: fix resource leaks
2022-12-20 11:01:42 +08:00
李通洲
1b2a61ed49
Image: init MagickCore environment before using it
...
I don't know why im6 works without initialization, but im7 doesn't.
2022-12-20 11:01:13 +08:00
李通洲
d4ec500b1b
Image: fix compile error when building with chafa enabled
...
It should be `#include <chafa.h>` because `pkg-config chafa --cflags` prints `-I/usr/include/chafa` even in Linux. It was working because `chafa` folder was installed in the standard `/usr/include` directory, but it was not the case for macOS (brew)
2022-12-19 22:34:29 +08:00
李通洲
eeb008f505
Global: replace all ".so" to FF_LIBRARY_EXTENSION
...
... no matter whether the libraries are linux specific or not
2022-12-17 12:22:11 +08:00
Linus Dierheimer
c242001a77
Fix build without chafa
2022-12-12 13:58:16 +01:00
Linus Dierheimer
3a5af1bbb3
Logo: data source option
...
#345
2022-12-12 13:43:10 +01:00
Linus Dierheimer
98c94b01e5
Some more standard comformance
2022-09-23 11:51:16 +02:00
Linus Dierheimer
381cba2612
Refactor ff_lib_enable
2022-09-19 18:30:00 +02:00
Linus Dierheimer
34b273186a
FF_LIBRARY_LOAD: don't implicit create pointer
2022-09-19 18:00:19 +02:00
李通洲
93ac3f1971
Library: simplify macros
2022-09-12 21:10:05 +08:00
Linus Dierheimer
536f914f3e
Refactor: move printing functions to own header
2022-07-25 13:15:01 +02:00
Linus Dierheimer
4a43144991
Refactor: move io functions to own header
2022-07-25 11:48:48 +02:00
Linus Dierheimer
f18ffe3239
Refactor: move library functions and macros to own header
2022-07-25 11:20:38 +02:00
Linus Dierheimer
da671d6cfe
Start cleaning up of config struct
2022-07-10 18:28:17 +02:00
Linus Dierheimer
c440fdfca8
Uses instance->state.configDirs consistenlty (in particular thread save) troughout the project
2022-06-22 20:14:10 +02:00
Linus Dierheimer
8fa09ca093
Refactored read methods
2022-06-20 16:27:33 +02:00
Linus Dierheimer
6e731c80d0
Refactored write methods
2022-06-19 18:22:00 +02:00
Linus Dierheimer
fe71291769
Clean up includes
2022-06-18 14:25:31 +02:00
Soham Sen
54c09cab18
Fix build if ImageMagick is not installed
2022-06-08 15:22:34 +05:30
Linus Dierheimer
daac1b783c
Refactored logo choosing logic
2022-06-08 10:59:33 +02:00
Linus Dierheimer
caf976bec2
Fix building without chafa enabled
2022-05-23 15:36:19 +02:00