Closed edrozenberg closed 6 years ago
Also had to tweak the sort line with a -k2
to sort starting on the second field (package name):
done|sort -k2|( [[ "$CMD" == "search" ]]&&grep -E -i --color -e ^ -e "$PATTERN"||cat )
The best way for bug reports and feature requests il linuxquestions
I'm unsure to choice this way to reduce output format.
However there is a development release of slackpkg+ that reduce a lot the output without change it minimizing spaces.
To install that version replace checkrepos.sh from the master branch on github
Thank you, I'll take a look at the changes being made in the latest dev.
I know there's been discussion in the past about the status labels to show, and how to format the columns for readability and cleanliness.
Currently the search output is quite verbose and often breaks lines due to length, making the output not as nice as it could be.
A few ideas in case they're helpful:
Remove column labels header - standard slackpkg doesn't have a header and I don't think one is needed. Not having this header makes slackpkg+ look more standard.
Use status labels
[i]
(installed),[ ]
(uninstalled),[m]
(masked),[u]
(upgrade). The[u]
is potentially problematic as it can be confused withuninstalled
. Works for me but not everyone may like this. Another idea is[inst]
(installed),[unst]
(a "new English word"),[upgr]
(upgrade), and[mask]
(masked)Put repo last in parens - most important thing is the package name imho, not which repo it's from.
Using these ideas, some example output:
I tweaked the output lines as follows