Commit Graph

905 Commits

Author SHA1 Message Date
Jethro Kuan
1bbc20cfa8 remove primary key constraint on aliases table
this allows a node to have multiple aliases cc @myshevchuk
2021-05-03 11:37:00 +08:00
Jethro Kuan
de94212cdd ensure buffer-encoding is appropriate
don't do a literal find for files, but do all the
org-inhibit-startup/delay-mode-hooks setting in the lexical context.

Addresses #1497?
2021-05-03 04:16:13 +08:00
Bill Burdick
78144d434b cache completions display format (#1505)
Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
2021-05-03 03:52:17 +08:00
Troy Hinckley
55526a4283 Fix auto save buffer in org-roam-doctor (#1493) 2021-05-03 03:36:50 +08:00
Noboru Ota
9405d014af fix: permanent-redisplay (#1504) (#1506)
Related to #1504, commit 109917c
It needs to change dolist for `sections` to `section-functions`
2021-05-03 02:59:41 +08:00
Jethro Kuan
98434919e0 discard inherited property on headline node tags
Addresses #1494
2021-05-03 02:51:51 +08:00
Jethro Kuan
7ed513294d org-roam-node-at-point: include point info
org-roam-node-at-point now returns a node with id and point if the noden
is not yet saved in the database. Fixes #1500.
2021-05-02 17:33:00 +08:00
Jethro Kuan
6fe38b959b fix 2021-05-02 17:23:38 +08:00
Jethro Kuan
44960f189f fix lints 2021-05-02 17:08:02 +08:00
Jethro Kuan
fbe3f2909f Add org-macs where org-with-wide-buffer is called
Addresses https://github.com/org-roam/org-roam/issues/1026#issuecomment-830742020
2021-05-02 17:04:15 +08:00
Jethro Kuan
f8f3870cf0 ensure binary when loading org-roam-db 2021-05-02 16:59:33 +08:00
Jethro Kuan
1bdfc25f80 remove NOTE on foreign key 2021-05-02 16:43:50 +08:00
Nicholas Vollmer
109917c589 org-roam-mode-sections: Convert to abnormal hook (#1504)
See: #1503
2021-05-02 16:35:36 +08:00
Nicholas Vollmer
bc4b7fa409 prefer mapconcat over string-join (#1502) 2021-05-02 16:34:43 +08:00
Jethro Kuan
f8dd345bd1 emacsql-sqlite3 -> emacsql-sqlite
Revert from emacsql-sqlite3 to emacsql-sqlite for foreign key support.
This makes it slightly harder to get Org-roam up and running for
Windows, but not impossible, but foreign keys makes database operations
faster and keeps the code clean.

Also, fix schemata for foreign keys on various tables, and add indices
where joins are common (org-roam-db--table-indices).
2021-05-02 16:30:43 +08:00
Bill Burdick
0a7d365e22 speed up org-roam-db-sync by wrapping db activity in a transaction (#1495)
In my case of testing with 8253 zettels (available on request if
anyone wants to test with them), this improves cleanup speed by 6x
and update speed by 2x.

Improvements will be smaller for smaller batches as this really just
removes the transaction overhead.
2021-04-30 12:51:29 +08:00
Jethro Kuan
389bf3c7e2 Add properties and olp to db 2021-04-29 14:02:14 +08:00
Jethro Kuan
ca1b02829b title: replace link with description on db-build 2021-04-28 13:54:12 +08:00
Jethro Kuan
dd7c3fab23 Merge branch 'master' into v2
* master:
  (doc): Add file-truename to set org-roam-directory (README and documentation) (#1487)
2021-04-28 13:45:23 +08:00
Noboru Ota
15c1a46e41 (doc): Add file-truename to set org-roam-directory (README and documentation) (#1487)
* (doc): Add file-truename to set org-roam-directory

Refer this debuging Slack exchange:
https://orgroam.slack.com/archives/CV160S8EL/p1619089118195300

Not using `file-truename` to set
`org-roam-directory` can lead to an issue that is
hard to identify.

It appears that cache database may updates with
files but `org-roam-buffer` fails to find the file
as symbolic links do not resolve. This is
confusing as the table query to the table seems to
return what appears to be correct entries, but the
backlink fails to insert context around the
link (as Org-roam fails to find the file).

There have been similiar issues -- by making sure
`file-truename` is added in the documentation and
README, it is hoped to eliminate such issues to
recur.

This is probably relevant for V2.

* undo changes to texi

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
2021-04-28 13:43:42 +08:00
Jethro Kuan
22c8d1032b fix indent 2021-04-28 13:16:08 +08:00
Jethro Kuan
4e0b3fb564 update docs 2021-04-27 23:16:27 +08:00
Jethro Kuan
697c686390 remove roam_tags
See #1492. Primary reason really is that I do want tags to be exactly
like Org tags, so we can reuse some of Org's cool features related to
tags.
2021-04-27 22:51:21 +08:00
Jethro Kuan
68dab59a69 delete new file if org-note-abort
Fixes #1490
2021-04-27 20:11:55 +08:00
Jethro Kuan
2dc5d6281a make tag completions unique 2021-04-27 19:18:42 +08:00
Jethro Kuan
eb9a9e487c add org-roam-tag-{add,remove}
also fix org-roam interactive functions to operate on node
2021-04-27 18:04:53 +08:00
Jethro Kuan
fd23360100 Add back ROAM_TAGS to top-level nodes 2021-04-27 13:04:24 +08:00
Jethro Kuan
57f63461cd (perf): make Org load faster on literal find 2021-04-26 23:20:06 +08:00
Jethro Kuan
d9ba961f96 fix indent 2021-04-26 00:47:40 +08:00
Jethro Kuan
169ebe6367 fix org-roam-dailies-capture-templates
Fixes #1489
2021-04-26 00:28:55 +08:00
Jethro Kuan
38b5375354 update title to not truncate 2.0.0a1 2021-04-25 09:28:14 +08:00
Jethro Kuan
aa755a8c77 add additional newline for preview sections
Addresses #1488
2021-04-25 08:31:58 +08:00
Jethro Kuan
49c048a177 show alias in node completions instead of title 2021-04-25 08:31:22 +08:00
Jethro Kuan
741677869c remove subr-x require 2021-04-25 00:25:21 +08:00
Jethro Kuan
9da45b54f3 remove s 2021-04-24 04:18:16 +08:00
Jethro Kuan
1440802b8b remap revert-buffer instead 2021-04-23 19:25:36 +08:00
Jethro Kuan
0163461f87 Add org-roam-buffer-render
bind 'g' to org-roam-buffer-render
2021-04-23 19:04:58 +08:00
Jethro Kuan
c866275086 move things around 2021-04-23 18:00:41 +08:00
Jethro Kuan
a37dd6afea replace s-format with org-roam-format 2021-04-23 15:54:57 +08:00
Jethro Kuan
3f31ff2cd9 catch duplicate IDs during DB insertion 2021-04-23 15:06:41 +08:00
Jethro Kuan
20e021fdde org-roam-capture: cleanup api 2021-04-23 14:55:54 +08:00
Jethro Kuan
5db30d8fdc end-of-subtree on ref captures 2021-04-23 14:51:17 +08:00
Jethro Kuan
b12bd4ea40 fix lint 2021-04-23 13:56:20 +08:00
Jethro Kuan
e6acc40e79 add org-roam-capture-new-node-hook 2021-04-23 13:49:02 +08:00
Jethro Kuan
d53f0e60bf org-roam-db-sync: support emacs 26.1
don't use dolist with progress report if it does not exist. results in
slightly degraded experience, but at least it works.
2021-04-22 00:37:19 +08:00
Jethro Kuan
45aa3e6973 fill-template: fill from plist 2021-04-22 00:23:10 +08:00
Jethro Kuan
3c6e1b5194 add interactive functions
Added org-roam-{alias,ref}-{add,remove}. Fixed org-roam-protocol. Added
some docs.
2021-04-21 02:09:50 +08:00
Jethro Kuan
be81a3a738 fix lint 2021-04-21 00:36:22 +08:00
Jethro Kuan
67b1562582 fix completions for roam: links 2021-04-20 20:23:49 +08:00
Jethro Kuan
05d95abc2e support node in org-roam-capture 2021-04-20 19:24:56 +08:00