李通洲
bd02e5c632
Logo: code refactor
2023-09-15 10:53:09 +08:00
李通洲
4356974c5b
Image: fix separated image printing
2023-09-08 15:31:58 +08:00
李通洲
591fd558e1
Logo: fix --logo-padding for --logo-separate
2023-09-03 22:39:09 +08:00
李通洲
fc61f64630
Logo: add --logo-separate true
2023-09-03 22:20:11 +08:00
李通洲
9e839d3b8b
Logo: simplify code
2023-09-03 19:55:57 +08:00
李通洲
4dfbc0f909
Logo: try fixing #553
2023-09-02 22:32:34 +08:00
李通洲
3e880fedf7
Logo: support kitty-direct / iterm without specifying logo width / height
...
Fixes #550
2023-09-02 00:46:39 -04:00
李通洲
7cb86df48d
Logo: improve performance on Windows for iterm protocol
2023-08-30 22:17:51 +08:00
李通洲
f77090070c
Image: code cleanup; no functional change
2023-08-22 15:32:19 +08:00
李通洲
e5e4c8bf88
Fastfetch: refactor command line option parsing code
...
1. improve performance
2. remove `-c`
3. rename `--recache` to `--logo-recache`, and remove `-r`
2023-08-17 16:10:05 +08:00
李通洲
de3cb1f855
Logo: fix kitty-direct
2023-07-26 21:44:01 +08:00
李通洲
62cfd27ac0
Logo: fix WezTerm compatibility with kitty-direct
2023-07-24 22:56:40 +08:00
李通洲
fc6acd1e3f
Logo: fix --logo-padding-top for kitty-direct
2023-07-24 21:58:37 +08:00
李通洲
f1ebcd7c31
Logo: add kitty-direct protocol
2023-07-18 21:18:14 +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
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