Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module "Newline" and --raw and --raw-separator commands #453

Closed
jordantrizz opened this issue Apr 20, 2023 · 11 comments
Closed

Module "Newline" and --raw and --raw-separator commands #453

jordantrizz opened this issue Apr 20, 2023 · 11 comments
Labels
enhancement New feature or request

Comments

@jordantrizz
Copy link

jordantrizz commented Apr 20, 2023

Current state:

There is no method I've found to have modules on the same line with a separator and introduce a new line.

Wanted state:

❯ fastfetch --structure Title:OS:Newline:CPU:Newline:Shell:Kernel --raw --raw-separator "|"

username@host | OS: Ubuntu 20.04 x86_64
CPU: AMD Ryzen 7 3700X (16) @ 3.600022 GHz 
Shell: zsh 5.8 | Kernel: 5.10.16.3-microsoft-standard-WSL2

Why the change is sensible:

More flexible formatting without of output.

@jordantrizz jordantrizz added the enhancement New feature or request label Apr 20, 2023
@CarterLi
Copy link
Member

You may use --set or --set-keyless

For example: https://github.com/LinusDierheimer/fastfetch/blob/dev/presets/examples/2#L9

@jordantrizz
Copy link
Author

Thanks @CarterLi, but I couldn't figure out how to create the following.

Host: KVM (RHEL 7.6.0 PC (i440FX + PIIX, 1996)) | Kernel: 5.15.0-58-generic
Uptime: 91 days, 11 hours, 32 mins | Packages: 863 (dpkg), 3 (snap)
Shell: zsh 5.8.1 | Terminal: screen
CPU: Intel(R) Xeon(R) E5-2680 v2 (2) @ 2.799998 GHz | GPU: Cirrus Logic GD 5446
Memory: 430.67 MiB / 2.42 GiB (17%) | Disk (/): 15.49 GiB / 56.49 GiB (27%)
Locale: en_US.UTF-8 |

Am I missing something?

@CarterLi
Copy link
Member

No, you can't do this. It's not supported.

@jordantrizz jordantrizz changed the title Module "Newline" for --structure Module "Newline" and --raw and --raw-separator commands Apr 24, 2023
@jordantrizz
Copy link
Author

Thanks for the confirmation @CarterLi I've updated the issue, suggesting a --raw mode. Seems like it's a big endeavour.

@jordantrizz
Copy link
Author

Any thoughts @CarterLi

@CarterLi
Copy link
Member

No thoughts. Line merging is a long planned feature but definitely not easy to do.

@jordantrizz
Copy link
Author

Thanks for the response @CarterLi

@jordantrizz
Copy link
Author

@CarterLi what about --raw removing the formatting of the output?

@CarterLi
Copy link
Member

CarterLi commented May 25, 2023

What did you mean formatting? We have --pipe to remove colors and -l none to remove the logo

@jordantrizz
Copy link
Author

Sorry, I completely missed it, I grep'd versus RTFM. Thanks.

@CarterLi
Copy link
Member

Closing in favor of #482

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants