Karabiner/Mac goku based hotkeys

I haven’t tested these thoroughly so use at your own risk

I’m not an expert in remapping shortcuts in logseq (yet), so for now I’m using this setup to add some very much needed extra shortcuts to logseq

this mapping is done with GokuRakuJoudo which makes editing karabiner-elements configs easier.

{:des "logseq" :rules [:Logseq
        ;; search with the slack shortcut
        [:!Ck :!Cu]
        ;; toggle sidebar
        [:!CSb [:escape :t :r]]
        ;; history nav
        [:!COleft_arrow :!Ccomma]
        [:!COright_arrow :!Cperiod]
        
        ;; !!! have to be inside editor for these !!!
        ;; snip entire block
        [:!CSdelete_or_backspace [:!Ca :delete_forward :delete_or_backspace]]
        ;; create new block under this
        [:!CSreturn_or_enter [:!Ca :right_arrow :return_or_enter]]
        ;; create new block above this
        [:!COreturn_or_enter [:!Ca :left_arrow :return_or_enter :up_arrow]]
        ;; move task around
        [:!Oup_arrow :!CSup_arrow]
        [:!Odown_arrow :!CSdown_arrow]
]}

;; requires something like this for the desktop app --

:applications {
 :Logseq ["^com\\.electron\\.logseq$"]
}

;; !  | means mandatory
;; #  | means optional
;; C  | left_command
;; T  | left_control
;; O  | left_option
;; S  | left_shift
;; F  | fn
;; Q  | right_command
;; W  | right_control
;; E  | right_option
;; R  | right_shift
;; !! | mandatory command + control + optional + shift (hyper)
;; ## | optional any

I haven’t tested these thoroughly so use at your own risk