You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make org-roam aware of org links in non-org text-mode files and comments in prog-mode files.
Long Description
Use case: for programming projects where all team members use org-roam (e.g. personal projects), it is useful to link to org-roam nodes instead of writing the text in the comment itself; org-roam nodes have much more useful functionality than a programming language comment.
Though #'org-roam-node-insert is already possible in a non-org file, after invoking it the resultant link will not be considered by org-roam, such that it won't show up as a backlink in the node's org-roam buffer and could would become stale if the org-roam node's id were to change or cease to exist.
Proposed Implementation (if any)
The following is based on uninformed guesswork:
When building the index for storage in the db, consider all files in org-roam-directory, not just ones ending in one of org-roam-file-extensions.
For non-org text-mode files, the current mechanism that is used to detect links in org files probably just works.
For prog-mode files, restrict to comments only by consulting the syntax table, then "treat each comment as a text-mode buffer" and apply the above detection mechanism.
Please check the following:
[ x ] No similar feature requests
The text was updated successfully, but these errors were encountered:
Brief Abstract
Make
org-roam
aware oforg
links in non-orgtext-mode
files and comments inprog-mode
files.Long Description
Use case: for programming projects where all team members use
org-roam
(e.g. personal projects), it is useful to link toorg-roam
nodes instead of writing the text in the comment itself;org-roam
nodes have much more useful functionality than a programming language comment.Though
#'org-roam-node-insert
is already possible in a non-org file, after invoking it the resultant link will not be considered byorg-roam
, such that it won't show up as a backlink in the node'sorg-roam
buffer and could would become stale if theorg-roam
node's id were to change or cease to exist.Proposed Implementation (if any)
The following is based on uninformed guesswork:
When building the index for storage in the db, consider all files in
org-roam-directory
, not just ones ending in one oforg-roam-file-extensions
.For non-org
text-mode
files, the current mechanism that is used to detect links inorg
files probably just works.For
prog-mode
files, restrict to comments only by consulting the syntax table, then "treat each comment as atext-mode
buffer" and apply the above detection mechanism.Please check the following:
The text was updated successfully, but these errors were encountered: