Commit graph

21 commits

Author SHA1 Message Date
N V
3727f015cd
(internal): add org-roam-dev.el (#606)
Help ensure source code consistency.
emacsql indentation for now, but can easily be expanded as needed.
2020-05-13 01:21:54 +08:00
Jethro Kuan
f8f7e6009c
(internal): add longer sleep time to tests (#574) 2020-05-07 15:41:58 +08:00
Göktuğ Karakaşlı
11d239d661
(feat): fix citation links not showing up in graph (#547)
This change adds a `type` column to the refs column, and strips the prefix before storing the key in the `refs` table.
2020-05-04 20:44:15 +08:00
Jethro Kuan
e73bc78274
(feat): Add org-ref citation support (#374)
Adds support for org-ref cite: links to the backlinks buffer.

Requires a db-rebuild, since the db schema has changed.
2020-04-06 16:48:17 +08:00
N V
22b9d4bd22
(internal): modularize features (#363)
Addresses #357
2020-03-28 21:16:28 +08:00
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