From b6c037c22f38f597d59e6bd33e400344bbf7e2cd Mon Sep 17 00:00:00 2001 From: moson-mo Date: Thu, 29 Sep 2022 18:02:49 +0200 Subject: [PATCH] update: bump to v1.7.0 Signed-off-by: moson-mo --- README.md | 9 +++++++-- doc/pacseek.1 | 2 +- internal/pacseek/draw.go | 5 +++-- internal/pacseek/ui.go | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9fa345f..6fea016 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![pacseek](https://img.shields.io/static/v1?label=pacseek&message=v1.6.15&color=1793d1&style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/pacseek/) -[![pacseek-bin](https://img.shields.io/static/v1?label=pacseek-bin&message=v1.6.15&color=1793d1&style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/pacseek-bin/) +[![pacseek](https://img.shields.io/static/v1?label=pacseek&message=v1.7.0&color=1793d1&style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/pacseek/) +[![pacseek-bin](https://img.shields.io/static/v1?label=pacseek-bin&message=v1.7.0&color=1793d1&style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/pacseek-bin/) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/moson-mo/pacseek/Build)](https://github.com/moson-mo/pacseek/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/moson-mo/pacseek)](https://goreportcard.com/report/github.com/moson-mo/pacseek) @@ -50,6 +50,10 @@ There are some [examples for configuring other helpers](https://github.com/moson * Display PKGBUILD file * Search for upgrades / show list of upgradable packages⁴ * Show a list of all installed packages +* News feed + * Shown on upgrades screen + * Feed URL(s) can be changed + * Clicking on an item will `xdg-open` the URL to the article ¹ (By default, `yay` is being used to install/remove/upgrade packages. You can change this in the settings) ² (only applicable to AUR packages) @@ -66,6 +70,7 @@ There are some [examples for configuring other helpers](https://github.com/moson * [go-cache](https://github.com/patrickmn/go-cache) * [goaurrpc](https://github.com/moson-mo/goaurrpc) * [chroma](https://github.com/alecthomas/chroma) +* [gofeed](https://github.com/mmcdole/gofeed)
### How to build / run / install diff --git a/doc/pacseek.1 b/doc/pacseek.1 index e17f009..65145f6 100644 --- a/doc/pacseek.1 +++ b/doc/pacseek.1 @@ -1,4 +1,4 @@ -.TH PACSEEK 1 "2022 September" "pacseek 1.6.15" +.TH PACSEEK 1 "2022 September" "pacseek 1.7.0" .SH NAME diff --git a/internal/pacseek/draw.go b/internal/pacseek/draw.go index 6e8b219..655e4ec 100644 --- a/internal/pacseek/draw.go +++ b/internal/pacseek/draw.go @@ -379,12 +379,13 @@ func (ps *UI) drawNews() { ps.app.QueueUpdateDraw(func() { for r, item := range news { ps.tableNews.SetCell(r, 0, &tview.TableCell{ - Text: "[white:black:b]* " + item.Title, + Text: "[white:black:]* [::u]" + item.Title, Clicked: func() bool { exec.Command("xdg-open", item.Link).Run() return true }, - }) + }). + SetCellSimple(r, 1, "("+item.PublishedParsed.Format("2006-01-02")+")") } }) }() diff --git a/internal/pacseek/ui.go b/internal/pacseek/ui.go index 87acbb0..eb1ae5a 100644 --- a/internal/pacseek/ui.go +++ b/internal/pacseek/ui.go @@ -21,7 +21,7 @@ const ( UrlArmPackage = "https://archlinuxarm.org/packages/%s/%s" UrlRepoPkgbuild = "https://raw.githubusercontent.com/archlinux/svntogit-%s/packages/%s/trunk/PKGBUILD" - version = "1.6.15" + version = "1.7.0" ) // UI is holding our application information and all tview components