mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
enhance: add hotkeys for open file in directory / default app
This commit is contained in:
committed by
Tienson Qin
parent
5bcc7aca38
commit
5221eb0572
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user