Commit graph

177 commits

Author SHA1 Message Date
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
Henrik Lissner
077bab4c90
Move org-roam-db-location to DOOMLOCALDIR/etc
More in line with org-roam's defaults.

Closes #4108
2020-10-18 19:07:59 -04:00
Henrik Lissner
ea575e3a8d
Bump :lang org
Kungsgeten/org-brain@671db0e -> Kungsgeten/org-brain@e703ae0
abo-abo/org-download@67b3c74 -> abo-abo/org-download@42ac361
astahlman/ob-async@80a30b9 -> astahlman/ob-async@de1cd6c
bastibe/org-journal@a2728e2 -> bastibe/org-journal@e7c51c4
emacs-straight/org-mode@220f2b0 -> emacs-straight/org-mode@e2bb605
fuxialexander/org-pdftools@8cc15bb -> fuxialexander/org-pdftools@3c2b9a4
hakimel/reveal.js@15815ef) -> hakimel/reveal.js@e09437f)
integral-dw/org-superstar-mode@94f35c2 -> integral-dw/org-superstar-mode@7f83636
kaushalmodi/ox-hugo@75b849e -> kaushalmodi/ox-hugo@95723cd
oer/org-re-reveal@7fe39d5 -> oer/org-re-reveal@29f565f
org-roam/org-roam@c33867e -> org-roam/org-roam@87d7c07

Closes #4034; company-org-roam is now deprecated, completions are
provided via capf instead.

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
2020-10-11 16:37:51 -04:00
Henrik Lissner
42332c9631
Merge pull request #3995 from samwhitlock/develop
Adjusting org journal functions to new commands
2020-10-04 20:07:51 -04:00
Henrik Lissner
2394e4124a
Don't auto-close brain popup with ESC 2020-10-04 16:15:43 -04:00
Sam Whitlock
1050ba83f0 Adjusting org journal functions to new commands
Silences some obsolescence warnings when navigating among entries
2020-09-29 19:10:58 +02:00
Henrik Lissner
1456108d5b
Fix #3888: fall back to org-journal-is-journal
Closes #3925
2020-09-10 18:03:32 -04:00
Diego Zamboni
723583e8d7
Automatically download reveal.js and use local copy, default to v4 (#3846)
* Automatically download reveal.js upgrade to v4

The +present option now automatically checks out the reveal.js
repository and configures org-re-reveal to use it. It also now uses
reveal.js 4 instead of 3.9.2.

* Changed :init to :config
2020-08-27 01:15:14 -04:00
Henrik Lissner
ce2cabf07e
Autoload org-download-clipboard #3830 2020-08-25 06:07:47 -04:00