Commit graph

22 commits

Author SHA1 Message Date
Henrik Lissner
ae8c5cfdde
fix(org): org-roam-node-display-template: strip :box from org-tag
The :box causes tremendous slowdown when displayed in the minibuffer.

Fix: #7432
2023-09-16 17:02:16 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
David Lukes
9e79aa3446
tweak(org): fold all sections on zm in org-roam buffer 2022-04-03 20:47:14 +02:00
Henrik Lissner
c6d1bf6e8d fix(org): roam minibuffer completion width
To address an issue upstream where the container's width is incorrectly
calculated for vertico.

Ref: org-roam/org-roam#2066
2022-02-11 02:31:22 +01:00
Henrik Lissner
8e691e810f refactor!(org): backlinks buffer management
BREAKING CHANGE: The +org-roam-open-buffer-on-find-file variable was
renamed to +org-roam-auto-backlinks-buffer *and* is now disabled by
default. When this is non-nil, it will open the *org-roam* backlinks
side window when roam files are visible, and close it when they aren't.

This change also makes this behavior a little more robust, but is
understandably not everybody's (read: most people's) cup of tea, so it
is now opt-in.
2022-02-10 21:07:20 +01:00
Henrik Lissner
7304a8de8f tweak(org): separate roam tags from types
- No longer hard-code fontification of tags and types in roam
  completion.
- Prefix types with @ and tags with # -- makes them easier to search for
  in completion -- and swap types and hierarchy columns. I.e.

  before: TYPE   TITLE   [TAG [TAG...]]
  after:  TITLE   @TYPE   [#TAG [#TAG...]]
- Exclude unwanted (i.e. meta) tags from public display, like ATTACH,
  ARCHIVE, or anything in org-num-skip-tags.
2022-02-10 21:07:20 +01:00
Henrik Lissner
3c2c23f705 feat(org): use roam:X link description if X is empty
Saves on some typing if you want to link to zettels that don't exist
yet.
2022-02-10 21:07:20 +01:00
Henrik Lissner
ba662ea939 refactor(org): org-roam config
- Remove redundant org-roam-mode-section-functions setting (same as its
  default value).
- Remove redundant org-roam-db-location setting (same as its default
  value).
- Fix redundant parentheses.
- Add comment explaining turn-on-visual-line-mode hook.
2022-02-10 21:07:20 +01:00
Henrik Lissner
dd33f57513 fix(org): don't auto-open roam buffer if in capture popup 2022-02-10 21:07:20 +01:00
Henrik Lissner
10bbdecb5c tweak(org): reverse org-roam-list-files-commands
Prioritize faster searcher over slower.
2022-02-10 21:07:20 +01:00
Henrik Lissner
7e6baca99d refactor(org): update org-roam emacsql deferral advice
org-roam-setup was made obsolete in Org Roam 2.0.

Ref: org-roam/org-roam@5dce6261a2
2022-02-06 03:27:08 +01:00
Henrik Lissner
467a23c020 tweak(org): org-roam-db-gc-threshold = most-positive-fixnum
To reduce GC consing while syncing the DB.
2022-02-06 03:27:08 +01:00
Henrik Lissner
5941a41fd9 tweak(org): larger capture/src popups by default 2022-02-06 03:27:08 +01:00
Valentin Herrmann
53fcce8187 fix(org): no roam buffer for capture buffers 2021-11-18 19:06:23 +01:00
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Wetlize
6330c57bce Sniff for a different symbol in +org-roam-suppress-sqlite-build-a
`org-roam-db-location` is redefined in the :preface section, so we need
to rely on a different symbol to determine whether `org-roam` is loading
or not.
2021-07-25 02:49:45 +03:00
Wetlize
c6e4ffb929 Improve display of custom templates in the minibuffer 2021-07-25 02:49:40 +03:00
Wetlize
13f0c4785e Fix keymap precedence for evil users in the org-roam-buffer
`org-roam-mode` based buffers use `magit-section` to render sections.
The problem is that `magit-section` will layer keymaps for each section
under a text property. In Emacs, text property based keymaps have a
higher precedence for a lookup[0] than `emulation-mode-map-alists`, in
which Evil and leader keymaps are stored in.

[0]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Searching-Keymaps.html
2021-07-25 02:20:50 +03:00
Wetlize
ff331781c5 Bump org-roam
org-roam/org-roam@e997c01 -> org-roam/org-roam@028c95a
2021-07-25 02:20:50 +03:00
Wetlize
9f7641d6c8 Add evil bindings for org-roam-mode
These are about the same as you would have them in `magit`.
2021-07-25 02:20:50 +03:00
Wetlize
9e12873779 Update handling of the database
v2 reverted to using `emacsql-sqlite` instead of `emacsql-sqlite3`. It
will now try to build the needed `sqlite3` executable by itself, using a
C compiler that it can find, which is normally gcc or clang.

Previously in v1 it would only check for `sqlite3` executable (using
`executable-find`) and wouldn't do anything else.
2021-07-25 02:20:41 +03:00
Wetlize
5ef733b488 lang/org: Add +roam2 flag for org-roam v2 2021-07-25 01:42:09 +03:00