Commit graph

16 commits

Author SHA1 Message Date
Jethro Kuan
f98e7d22a5
(chore): cleanup and re-order code (#213) 2020-03-01 15:36:39 +08:00
Jethro Kuan
150ae65564
(feature): deprecate roam-protocol, extend org-protocol instead (#203)
Add 2 custom handlers:

1. roam-file?file=path: this simply opens the file at path in Emacs.
2. roam-ref?ref=ref&template=roam-template&title=title&...: attempts to open a roam note with a given ROAM_KEY. If the note doesn't exist, create one. Else, open it.
2020-02-29 22:09:04 +08:00
Jethro Kuan
0c2aaad3df
(feature): use sqlite as backing database (#200)
All org-roam related information will now be stored in the database. Henceforth, the cache needs to be built synchronously once (via `M-x org-roam-build-cache`), which is then incrementally updated.
2020-02-29 15:56:08 +08:00
Jethro Kuan
685aa2afcd
Ensure cache consistency for refs cache (#194) 2020-02-26 23:04:02 +08:00
Jethro Kuan
92d25b287e
(feature): add a cache for ROAM_KEY (#192) 2020-02-26 22:26:02 +08:00
Herbert Jones
a8d696e6e8
(performance): avoid path expansion by referencing cache obj (#184)
Prevent needless repeated calls to org-roam-directory-normalized by having a
reference to the cache object that matches the local buffer.

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
2020-02-26 00:15:38 +08:00
Jethro Kuan
19f16e9c64
(feature): support file aliases (#182)
Closes #91
2020-02-26 00:11:38 +08:00
Herbert Jones
b4d89c6a0c
(feature): allow multiple org-roam directories (#178)
Each org-roam-directory gets its own cache. One can override the `org-roam-directory` variable locally via dir-locals:

((org-mode . ((eval . (setq-local org-roam-directory (expand-file-name "./"))))))
2020-02-25 23:06:40 +08:00
Jethro Kuan
43ff60fec7
(feature): add org-roam-mute-cache-build to mute cache build message (#159) 2020-02-22 11:29:34 +08:00
Jethro Kuan
8523fb43b4
(feature): global org-roam-mode (#143)
Makes org-roam-mode a global minor mode. This mode adds an advice to find-file-function, which decides whether to turn on the local post-command-hook and after-save-hook.

It also advices delete-file and rename-file to ensure cache consistency. Also fixes a bug introduced with #142
2020-02-20 17:33:30 +08:00
Jethro Kuan
dd4b1a97a1
(feature): Add advice to delete-file (#142)
Closes #119
2020-02-20 16:18:40 +08:00
Daniel Koudouna
bdc13cd6bf
(feature): update cache on file rename (#124) 2020-02-20 08:32:54 +08:00
Jethro Kuan
2d206134fd
(feature): insert link as downcased title with org-roam-insert (#110) 2020-02-17 23:15:27 +08:00
Jethro Kuan
618b7f6124
(tests): add tests for org-roam-insert (#105) 2020-02-17 15:48:54 +08:00
Jethro Kuan
9ae03532da
(tests): test org-roam--build-cache-async (#92) 2020-02-16 20:31:09 +08:00
Jethro Kuan
9cd12a4f11
Add github test action (#73)
* Add github test action

* add mock tests
2020-02-13 16:41:27 +08:00