uwu search output

i18n
Michal S 2 years ago
parent d55845090f
commit 029be3cbec
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

@ -11,7 +11,7 @@ url="https://github.com/crystal-linux/amethyst"
license=('GPL3')
source=("git+$url")
sha256sums=('SKIP')
depends=('git' 'binutils' 'fakeroot' 'pacman-contrib' 'vim' 'expac')
depends=('git' 'binutils' 'fakeroot' 'pacman-contrib' 'vim' 'expac' 'less')
makedepends=('cargo')
conflicts=('ame')

@ -188,7 +188,13 @@ fn cmd_search(args: &SearchArgs, options: Options) {
let results = repo_results + "\n" + &aur_results;
// Print results either way, so that the user can see the results after they exit `less`
println!("{}", results.trim());
let text = if internal::uwu_enabled() {
uwu!(results.trim())
} else {
results.trim().to_string()
};
println!("{}", text);
// Check if results are longer than terminal height
if results.lines().count() > crossterm::terminal::size().unwrap().1 as usize {

Loading…
Cancel
Save