enhance: add hotkeys for open file in directory / default app

This commit is contained in:
Devon Zuegel
2021-10-23 23:04:08 -04:00
committed by Tienson Qin
parent 5bcc7aca38
commit 5221eb0572
3 changed files with 19 additions and 6 deletions

View File

@@ -15,6 +15,9 @@
[frontend.util :refer [mac?] :as util]
[frontend.commands :as commands]))
;; Note when you change this file, you will need to do a hard reset.
;; The commands are registered when the Clojurescript code runs for the first time.
;; TODO: how to extend this for plugins usage? An atom?
(def default-config
{:shortcut.handler/date-picker
@@ -376,6 +379,14 @@
{:desc "Toggle Favorites in sidebar"
:binding "t f"
:fn ui-handler/toggle-contents!}
:editor/open-file-in-default-app
{:desc "Open file in default app"
:binding "o f"
:fn page-handler/open-file-in-default-app}
:editor/open-file-in-directory
{:desc "Open file in parent directory"
:binding "o d"
:fn page-handler/open-file-in-directory}
:ui/toggle-wide-mode
{:desc "Toggle wide mode"
:binding "t w"