mirror of
https://github.com/Adembc/lazyssh.git
synced 2026-07-14 12:13:34 +02:00
add pin and sort feature
This commit is contained in:
@@ -19,10 +19,14 @@ import (
|
||||
"github.com/rivo/tview"
|
||||
)
|
||||
|
||||
func DefaultStatusText() string {
|
||||
return "[white]↑↓[-] Navigate • [white]Enter[-] SSH • [white]c[-] Copy SSH • [white]a[-] Add • [white]e[-] Edit • [white]d[-] Delete • [white]p[-] Pin/Unpin • [white]/[-] Search • [white]q[-] Quit • [white]?[-] Help"
|
||||
}
|
||||
|
||||
func NewStatusBar() *tview.TextView {
|
||||
status := tview.NewTextView().SetDynamicColors(true)
|
||||
status.SetBackgroundColor(tcell.Color235)
|
||||
status.SetTextAlign(tview.AlignCenter)
|
||||
status.SetText("[white]↑↓[-] Navigate • [white]Enter[-] SSH • [white]a[-] Add • [white]e[-] Edit • [white]d[-] Delete • [white]/[-] Search • [white]q[-] Quit • [white]?[-] Help")
|
||||
status.SetText(DefaultStatusText())
|
||||
return status
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user