Org roam tag bindings (#14109)

* add org-roam tag-add and tag-delete +prefix
Co-authored-by: madand <dev@madand.net>
This commit is contained in:
Marty Buchaus 2020-11-12 15:50:31 -06:00 committed by GitHub
parent 55d94cbdda
commit 836d5c315e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -905,8 +905,8 @@ Key binding prefixes:
- ~SPC a o r~ (anywhere)
- ~SPC m r~ (in an org-mode buffer)
| Key binding | Description |
|------------------+---------------------------------------|
| Key binding | Description |
|----------------+---------------------------------------|
| ~[prefix] r l~ | Toggle org-roam links visibility |
| ~[prefix] r f~ | Find file in org-roam |
| ~[prefix] r i~ | Insert file into org-roam |
@ -916,3 +916,5 @@ Key binding prefixes:
| ~[prefix] r d y~ | Open yesterday's daily note |
| ~[prefix] r d t~ | Open today's daily note |
| ~[prefix] r d T~ | Open tomorrow's daily note |
| [prefix] r t a | add org-roam tag to file |
| [prefix] r t d | delete org-roam tag from file |

View File

@ -854,6 +854,7 @@ Headline^^ Visit entry^^ Filter^^ Da
(progn
(spacemacs/declare-prefix "aor" "org-roam")
(spacemacs/declare-prefix "aord" "org-roam-dailies")
(spacemacs/declare-prefix "aort" "org-roam-tags")
(spacemacs/set-leader-keys
"aordy" 'org-roam-dailies-yesterday
"aordt" 'org-roam-dailies-today
@ -862,10 +863,13 @@ Headline^^ Visit entry^^ Filter^^ Da
"aorg" 'org-roam-graph
"aori" 'org-roam-insert
"aorI" 'org-roam-insert-immediate
"aorl" 'org-roam)
"aorl" 'org-roam
"aorta" 'org-roam-tag-add
"aortd" 'org-roam-tag-delete)
(spacemacs/declare-prefix-for-mode 'org-mode "mr" "org-roam")
(spacemacs/declare-prefix-for-mode 'org-mode "mrd" "org-roam-dailies")
(spacemacs/declare-prefix-for-mode 'org-mode "mrt" "org-roam-tags")
(spacemacs/set-leader-keys-for-major-mode 'org-mode
"rb" 'org-roam-switch-to-buffer
"rdy" 'org-roam-dailies-yesterday
@ -875,7 +879,9 @@ Headline^^ Visit entry^^ Filter^^ Da
"rg" 'org-roam-graph
"ri" 'org-roam-insert
"rI" 'org-roam-insert-immediate
"rl" 'org-roam))
"rl" 'org-roam
"rta" 'org-roam-tag-add
"rtd" 'org-roam-tag-delete))
:config
(progn
(spacemacs|hide-lighter org-roam-mode))))