shithub: hell

Download patch

ref: 7e7bf4c103cacf7e5dc3114b0a8f8b04a23c25f4
parent: 81733b391ce0d31c1b1a10ff6732a04631e891aa
author: penny <penny@limitedideas.org>
date: Wed Oct 29 10:24:56 EDT 2025

add /profile to display profiles /account shows statuses

--- a/commands.go
+++ b/commands.go
@@ -4,7 +4,7 @@
 	"strings"
 )
 
-var commands = []string{"examine", "reply", "like", "thread", "open", "prev", "download", "dm", "rt", "hrt", "parent", "children", "rm", "mark", "unmark", "account", "import", "pause", "resume", "url", "fpost", "ufpost", "edit", "notice", "stats", "next", "view", "bookmarks", "follow", "unfollow", "likes", "help", "reload", "attach", "detach", "pinned", "cat", "play", "translate", "read", "version", "local", "public", "block", "unblock", "unlike", "home", "page"}
+var commands = []string{"examine", "reply", "like", "thread", "open", "prev", "download", "dm", "rt", "hrt", "parent", "children", "rm", "mark", "unmark", "account", "import", "pause", "resume", "url", "fpost", "ufpost", "edit", "notice", "stats", "next", "view", "bookmarks", "follow", "unfollow", "likes", "help", "reload", "attach", "detach", "pinned", "cat", "play", "translate", "read", "version", "local", "public", "block", "unblock", "unlike", "home", "page", "profile"}
 
 func processInput(input string) (command string, arguments string, found bool) {
 
--- a/help.go
+++ b/help.go
@@ -42,7 +42,8 @@
                                
   /mark <index>                Bookmark status by index.
   /unmark <index>              Unbookmark status.
-  /account [index] [account]   View account details and status, either by index or name.
+  /account [index] [account]   View account statuses.
+  /profile [index] [account]   View account profile.
   /pinned [index] [account]    View account's pinned statuses.
   /pause                       Pause the streaming timeline or unpause it.
                                Pressing enter on an empty line will also unpause.
--- a/main.go
+++ b/main.go
@@ -582,6 +582,14 @@
 				hc.page.loader = &StatusPages{hc: hc, getter: getter}
 				fmt.Print(hc.page.String())
 				return
+			case "profile":
+				account := accByNameOrRef()
+					if account == nil {
+						fmt.Printf("Account lookup failed.\n")
+						return
+					}
+				fmt.Print(hc.formatAccount(account))
+				return
 			case "account":
 				account := accByNameOrRef()
 				if account == nil {
@@ -593,8 +601,6 @@
 				hc.page.itembuffer = new([]PageItem)
 				getter := &AccountStatusGetter{client: hc.client, ID: account.ID}
 				hc.page.loader = &StatusPages{hc: hc, getter: getter}
-				*hc.page.itembuffer = append(*hc.page.itembuffer, makePageItem(hc.formatAccount(account)))
-				(*hc.page.itembuffer)[0].lines = -1
 				fmt.Print(hc.page.String())
 				return
 			case "unfollow":
--