From a6f6fb3ef22658508671296a31367a198205da99 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 8 Apr 2020 15:30:29 +0300 Subject: Display thumbnail for all files and add commands to download and open files --- ui/command-processor.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/command-processor.go') diff --git a/ui/command-processor.go b/ui/command-processor.go index 3212dae..082d157 100644 --- a/ui/command-processor.go +++ b/ui/command-processor.go @@ -92,6 +92,8 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "remove": {"redact"}, "rm": {"redact"}, "del": {"redact"}, + "dl": {"download"}, + "o": {"open"}, }, commands: map[string]CommandHandler{ "unknown-command": cmdUnknownCommand, @@ -115,6 +117,8 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "reply": cmdReply, "redact": cmdRedact, "react": cmdReact, + "download": cmdDownload, + "open": cmdOpen, "sendevent": cmdSendEvent, "msendevent": cmdMSendEvent, "setstate": cmdSetState, -- cgit v1.2.3