mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 13:17:23 +00:00
Spacing out configurable section and removing warning for small teams since general is tried on failure
This commit is contained in:
5
main.go
5
main.go
@ -12,12 +12,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Configurable section
|
// Configurable section
|
||||||
|
|
||||||
|
|
||||||
var downloadPath = "/tmp/"
|
var downloadPath = "/tmp/"
|
||||||
var outputFormat = "┌──[$USER@$DEVICE] [$ID] [$DATE - $TIME]\n└╼ $MSG"
|
var outputFormat = "┌──[$USER@$DEVICE] [$ID] [$DATE - $TIME]\n└╼ $MSG"
|
||||||
// 02 = Day, Jan = Month, 06 = Year
|
// 02 = Day, Jan = Month, 06 = Year
|
||||||
var dateFormat = "02Jan06"
|
var dateFormat = "02Jan06"
|
||||||
// 15 = hours, 04 = minutes, 05 = seconds
|
// 15 = hours, 04 = minutes, 05 = seconds
|
||||||
var timeFormat = "15:04"
|
var timeFormat = "15:04"
|
||||||
|
|
||||||
|
|
||||||
// End configurable section
|
// End configurable section
|
||||||
|
|
||||||
var k = keybase.NewKeybase()
|
var k = keybase.NewKeybase()
|
||||||
@ -217,7 +221,6 @@ func layout(g *gocui.Gui) error {
|
|||||||
fmt.Fprintln(chatView, "/u $path $title - Uploads file $path with title $title")
|
fmt.Fprintln(chatView, "/u $path $title - Uploads file $path with title $title")
|
||||||
fmt.Fprintln(chatView, "/d $msgId $downloadName - Downloads file from $msgId to $DownloadPath/$downloadName")
|
fmt.Fprintln(chatView, "/d $msgId $downloadName - Downloads file from $msgId to $DownloadPath/$downloadName")
|
||||||
fmt.Fprintln(chatView, "/s - Experimental: View all incoming messages from everywhere.")
|
fmt.Fprintln(chatView, "/s - Experimental: View all incoming messages from everywhere.")
|
||||||
fmt.Fprintln(chatView, " Please note: small teams only have #general")
|
|
||||||
fmt.Fprintln(chatView, "/q - Exit")
|
fmt.Fprintln(chatView, "/q - Exit")
|
||||||
}
|
}
|
||||||
if inputView, err3 := g.SetView("Input", maxX/2-maxX/3, maxY-4, maxX-1, maxY-1); err3 != nil {
|
if inputView, err3 := g.SetView("Input", maxX/2-maxX/3, maxY-4, maxX-1, maxY-1); err3 != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user