neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Line wrap packages

Open Digit opened this issue 1 year ago • 1 comments

Description

The "Packages" line on systems with multiple package managers can get long enough to get cut off out of view on old standard width terminals.

Line wrap for packages would solve this.

(Of course, a line-wrap that does not interrupt the ASCII graphics, is the ideal form envisioned in this issue/feature-request.)

Current workarounds include:

  • wider terminal
  • smaller font
  • neofetch --off (doesnt display ascii logo)
  • neofetch --package_managers tiny (adds package numbers together, before list of package manager names)
  • strat -r $stratumname neofetch per strata (specific to BedrockLinux)
  • pipe output to file/pager, e.g. neofetch | less (depends how done, may display ascii first and data lines beneath, or break the ascii with the linewrap)

Linewrap packages would be far better than the workarounds' trade-offs.

Neofetch version

Still true as of 7.1.0

Digit avatar Oct 21 '23 09:10 Digit

further implementation idea possibilities...

perhaps even configurable width before it wraps. perhaps detection of terminal width. (e.g. with tput cols) perhaps a default 80 characters width. perhaps presets ... neofetch --wrap-width $n|old(80)|wide(120)|infinite(off)|auto(tput cols) perhaps just neofetch --package-wrap perhaps even default behaviour to wrap, detecting terminal width when run? and a --no-wrap to toggle off back to current behaviour?

perhaps . . . wrap all the lines.

Digit avatar Oct 21 '23 10:10 Digit