| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Now that nroam inserts a non read-only \n after the sections so that text can be
inserted after nroam sections at the end of the buffer, remove the extra
read-only \n so that org-capture can insert templates.
* nroam.el (nroam--handle-org-capture): Remove function and advice.
* nroam-unlinked.el (nroam-unlinked--insert-toggle-button): Do not insert a
read-only newline as it prevents org-capture from inserting the template as it
tries to delete empty lines at the end of the buffer.
|
|
|
|
| |
`org-hide-drawer-toggle'.
|
| |
|
|
|
|
|
| |
* nroam.el (with-nroam-markers): Add an extra \n char in read-write so that text
can be inserted at the end of the buffer.
|
|
|
|
|
|
|
|
|
| |
* nroam-backlinks.el (nroam-backlinks-section):
* nroam-unlinked.el (nroam-unlinked-section):
* nroam.el (nroam-setup-maybe):
(nroam-update):
(nroam--org-roam-file-p):
(nroam--update-maybe): Fix docstrings according to `checkdoc'.
|
|
|
|
| |
* nroam.el (nroam-mode): Ligher needs an empty space as first character.
|
| |
|
|
|
|
|
| |
* nroam-unlinked.el: New file.
* nroam.el: Setup unlinked references section.
|
|
|
|
|
| |
* nroam-backlinks.el:
* nroam-utils.el: New files.
|
|
|
|
|
|
|
|
| |
file exists.
* nroam.el (nroam-mode): Conditionally insert sections when turning enabling
`nroam-mode'.
(nroam--maybe-insert-immediately): New function.
|
|
|
|
| |
`nroam--set-sections-visibility'.
|
| |
|
|
|
|
| |
point-max.
|
|
|
|
| |
* nroam.el (nroam--insert-source-content): Inline into `nroam--insert-backlink'.
|
| |
|
| |
|
| |
|
|
|
|
| |
* nroam.el (nroam--insert-source-content): Rename let vars for clarity.
|
|
|
|
|
| |
* nroam.el (nroam--insert): When the buffer is empty, do not insert a newline at
it would be inserted at the beginning of the buffer.
|
|
|
|
|
|
|
|
| |
* nroam.el (nroam--do-separated-by-newlines): New function.
(nroam-backlinks-section):
(nroam--insert):
(nroam--insert-backlink-group): Call `nroam--do-separated-by-newlines' to ensure
one empty line is inserted between headings.
|
|
|
|
|
| |
* nroam.el (nroam--insert): Insert a non read-only newline before nroam sections
so that `org-roam-dailies-find-today' can insert the capture template.
|
| |
|
|
|
|
|
| |
* nroam.el (nroam--insert-backlinks-heading): Display "No linked reference"
there is no backlink.
|
|
|
|
| |
* nroam.el (nroam--insert): Improve code for narrowing.
|
|
|
|
|
| |
* nroam.el (nroam--insert): Set visibility according to
startup-options.
|
|
|
|
|
| |
Nroam sections need to be pruned as they are in read-only, otherwise
`org-capture' will fail to insert the capture template.
|
| |
|
|
|
|
| |
* Fix `nroam--point-at-section-p' when nroam sections have not been inserted.
|
|
|
|
| |
Only enable nroam-mode on org-roam file buffers.
|
| |
|
| |
|
| |
|
|
|
|
| |
The second argument is not available in Emacs 27.1.
|
|
|
|
| |
* nroam.el (nroam--init-work-buffer): Add docstring.
|
| |
|
|
|
|
|
| |
Do no add the empty line above the linked references section so that it is not
written to files.
|
| |
|
| |
|
|
|
|
|
| |
Ensure one empty line before backlink section, but put the start marker on the
heading line instead of the empty line above it.
|
|
|