aboutsummaryrefslogtreecommitdiff
path: root/hotline/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/ui.go')
-rw-r--r--hotline/ui.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/hotline/ui.go b/hotline/ui.go
index dc85267..5056954 100644
--- a/hotline/ui.go
+++ b/hotline/ui.go
@@ -285,7 +285,7 @@ func (ui *UI) renderServerUI() *tview.Flex {
commandList.
SetText("[yellow]^n[-::]: Read News [yellow]^p[-::]: Post News\n[yellow]^l[-::]: View Logs\n").
SetBorder(true).
- SetTitle("Keyboard Shortcuts")
+ SetTitle("| Keyboard Shortcuts| ")
modal := tview.NewModal().
SetText("Disconnect from the server?").
@@ -313,6 +313,13 @@ func (ui *UI) renderServerUI() *tview.Flex {
ui.Pages.AddPage("modal", modal, false, true)
}
+ // List files
+ if event.Key() == tcell.KeyCtrlF {
+ if err := ui.HLClient.Send(*NewTransaction(tranGetFileNameList, nil)); err != nil {
+ ui.HLClient.Logger.Errorw("err", "err", err)
+ }
+ }
+
// Show News
if event.Key() == tcell.KeyCtrlN {
if err := ui.HLClient.Send(*NewTransaction(tranGetMsgs, nil)); err != nil {