Commit graph

185 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
Liam Hupfer
b261afe59d fix(org): use file URI for org-re-reveal-root
Ref: 9c7830e48f
2023-09-02 11:46:39 -05:00
Samoed
f20fe0274d feat(org): add hook for org-appear 2023-02-23 22:52:50 -05:00
Henrik Lissner
aa54383b5d
refactor: deprecate doom-etc-dir for doom-data-dir
doom-etc-dir will be renamed to doom-data-dir, to better reflect its
purpose, and align it with XDG_DATA_HOME (where it will be moved to in
v3, where Doom will begin to obey XDG directory conventions more
closely).
2022-08-14 20:43:35 +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
Henrik Lissner
1f4b9b73fc
fix(org): org-download-delete and [[download:...]] links
org-download-delete doesn't accommodate a non-standard value for
org-download-link-format. Now it does.

Close: #6202
Co-authored-by: zrquan <zrquan@users.noreply.github.com>
2022-06-21 18:46:26 +02:00
Christoph Rauch
065e005db9 fix(org): #+ constructs hidden forever
Leaving org-tree-slide-mode did not unhide #+ constructs.
Now +org-present-hide-blocks-h is triggered when leaving the mode as
well, fixing the behaviour.
2022-04-06 18:39:12 +02:00
David Lukes
9e79aa3446
tweak(org): fold all sections on zm in org-roam buffer 2022-04-03 20:47:14 +02:00
Mora Unie Youer
cddfa27fb1
fix(org): move org-journal localleader keybinds to 'SPC m j'
Some org-agenda keybinds (for example 'SPC m d s' for scheduling) were
overridden by org-journal-mode-map keybinds, so the latter were moved to
the 'SPC m j' prefix.

Fix: #5239
2022-03-19 16:22:13 +01: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
Lucas Viana
051087d716 fix(org): don't error org-download at top level
Org-attach (and thus org-download) can work before the first headline if
the user sets `org-attach-auto-tag` to `nil`. But when inserting files
in this situation, this advice will display an error message due to
using `org-back-to-heading`. So I think it makes more sense to use
`org-back-to-heading-or-point-min`.
2022-02-09 04:54:22 +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
Henrik Lissner
3d627cbacd revert: feat(org): add org-pretty-table for +pretty
org-pretty-table has proven unstable. Some report alignment issues due
to variations between unicode fonts. Its overuse of overlays is also a
performance concern.

Revert: #6033
2022-02-01 18:56:16 +01:00
Tony
b663e447e6 feat(org): add org-pretty-table for +pretty
Replace '-', '+', and '|' characters in tables with unicode glyphs.
2022-01-27 04:05:55 +01:00
Valentin Herrmann
53fcce8187 fix(org): no roam buffer for capture buffers 2021-11-18 19:06:23 +01:00
Henrik Lissner
ec6511270d bump: :lang org
alf/ob-restclient.el@0ebfc7c5eb -> alf/ob-restclient.el@bfbc4d8e8a
awth13/org-appear@148aa12490 -> awth13/org-appear@a1aa8496f2
bastibe/org-journal@6c3a2fdb6c -> bastibe/org-journal@9757996ca0
emacs-straight/org@b83ae59347 -> emacs-straight/org@888aaa97c0
hakimel/reveal.js@b18f12d964 -> hakimel/reveal.js@abe9abbed7
hniksic/emacs-htmlize@4920510589 -> hniksic/emacs-htmlize@dd27bc3f26
kaushalmodi/ox-hugo@290b5d6b65 -> kaushalmodi/ox-hugo@1b8f2627cd
oer/org-re-reveal@cf000894f6 -> oer/org-re-reveal@ee712db657
org-roam/org-roam@028c95a011 -> org-roam/org-roam@946a879a4a

Close #5338
2021-09-14 14:30:06 +02: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
Henrik Lissner
9ffa5d6c2f org-roam-link-use-custom-faces = everywhere 2021-07-12 12:22:21 -04:00
Connor James
87abb63dd2 Use org-tree-slide-play-hook to hide blocks 2021-06-07 09:56:37 -07:00
Henrik Lissner
c97df46f5b Fix #5105: void-variable org-brain-polymode-map 2021-05-27 12:54:06 -04:00
Henrik Lissner
a7d5d97b34 Fix #4899: wrong-type-arg arrayp error on org-brain init 2021-05-27 03:53:43 -04:00
Henrik Lissner
2a2969f3e0 org-roam-verbose = t
Its output is helpful. Let's not silence it.

But prevent output during incremental loading from hijacking the
minibuffer (likely the original reason org-roam-verbose was disabled).
2021-05-21 23:13:09 -04:00
Henrik Lissner
de589e21a2 org-tree-slide-skip-outline-level = 0
Back to default, since it appears to be what people expect.
2021-05-16 21:17:45 -04:00
Henrik Lissner
2dbeb0d161 Fix org-tree-slide-after-narrow-hook reference 2021-05-11 23:15:28 -04:00
Henrik Lissner
a1fdc77dc1 lang/org: fail gracefully on org-roam-mode failure
Otherwise throws an error immediately when opening any org file, if
org-roam isn't properly set up from the get go.
2021-05-09 20:50:23 -04:00
Henrik Lissner
8bb54a95f6 Add +org-present-hide-first-heading option
Gives the user the option to hide the top-level heading when presenting,
and defaults it to nil, since that is org-tree-slide-mode's default
behavior.

Also reduces the default text-scale for org-tree-slide-mode from 6 -> 5.

Fixes #2182
Closes #4907
2021-05-01 03:02:52 -04:00
Hynggyu Jang
ec3132bbc4 lang/org: cleanup +pretty feature, mostly about if cookie
Add `if` cookie so that it doesn't get compiled by `doom compile`.
2021-04-28 09:56:14 +09:00
Henrik Lissner
71d4748bcf Fix #4586: evilifiy org-brain
THese should be upstreamed to evil-collection in some form or another.
2021-04-14 23:43:45 -04:00
Henrik Lissner
eca50f4766
Fix #4446: activate org-fancy-priorities-mode in org-agenda 2020-12-18 16:05:31 -05:00
Alois Janíček
715c736815
Prioritize company-capf back-end in org-journal
This allows functionality like completion of org-roam items seamlessly
work in org-journal-mode files too.

Same setting is already set for org-mode itself.
2020-12-15 01:48:14 +01:00
Chris Rose
18db5e2089 Add keybindings for roam tagging
"t" to tag a roam file with the `#+roam_tags` property.
"T" to untag the file
2020-11-22 10:28:24 -08:00
Henrik Lissner
1d766bf873
Merge pull request #4255 from RBckmnn/OrgRoamDbLocation
Do not overwrite user's value of org-roam-db-location
2020-11-11 14:25:45 -05:00
Ralf Beckmann
f3a4c27aac Do not overwrite org-roam-db-location 2020-11-11 18:35:54 +01:00
Brian McGillion
6225cc5337 :lang org: (+roam) Replace deprecated functions
Update to the latest functions - after the following commit:
47e83f7d

Org-Roam-Dailies deprecated the older forms of the functions
and replaced with the new constructs.

Signed-off-by: Brian McGillion <brian@ssrc.tii.ae>
2020-11-11 20:02:30 +04:00
Henrik Lissner
b857566239
Minor refactors 2020-10-20 16:52:39 -04:00