Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for org-roam #17

Open
bbigras opened this issue Jul 17, 2020 · 12 comments
Open

Support for org-roam #17

bbigras opened this issue Jul 17, 2020 · 12 comments
Labels
enhancement New feature or request

Comments

@bbigras
Copy link

bbigras commented Jul 17, 2020

It's kinda hard to navigate org-roam files without org-roam.

it lets you search for titles: #+title: note title

and show backlinks.

@amake
Copy link
Owner

amake commented Jul 17, 2020

I don't think this is feasible without #5.

@amake amake added the enhancement New feature or request label Jul 25, 2020
@amake
Copy link
Owner

amake commented Apr 4, 2021

Can you give me an idea what the file/directory layout looks like when using org-roam? Are all the files stored in the same directory? Are the links relative links like [[./other-file.org][other file]]?

@bbigras
Copy link
Author

bbigras commented Apr 6, 2021

It seems some people are using subdirectories (see org-roam/org-roam#218) and the "daily" notes are inside a subdir.

link example
[[file:../20210405235900-materialize.org][materialize]]

layout example

├── 20210331165046-note1.org
├── 20210405235900-note2.org
├── daily
│  ├── 2020-11-13.org
│  ├── 2020-11-14.org

There's also an sqlite database (org-roam.db). I'm sure all the links are indexed in there.

Btw, org-roam is going thru a major redesign, see org-roam/org-roam#1401

Org-roam V2 does not recognize file links.

https://github.com/org-roam/org-roam/wiki/Hitchhiker's-Rough-Guide-to-Org-roam-V2#node-id-and-links

@amake
Copy link
Owner

amake commented Apr 6, 2021

Thanks.

I am working on implementing relative links.

I am definitely not planning on supporting any sort of DB.

@amake
Copy link
Owner

amake commented May 4, 2021

Relative file links to Org Mode files are now supported in v1.18.1.

However references to sections (by title or by ID) are not resolved yet. It seems like that is quite important for Org Roam support, right? Or will such links no longer be used in v2? What is the timeline for v2?

@nightscape
Copy link

Afaiu, v2 is based solely on ID links. No idea about the timeline, but there is a first alpha available and @jethrokuan is plowing ahead at full speed 😄

@jethrokuan
Copy link

However references to sections (by title or by ID) are not resolved yet. It seems like that is quite important for Org Roam support, right? Or will such links no longer be used in v2? What is the timeline for v2?

v2 is centered around ID links.

No idea what the timeline is for v2 either, just continually fixing bugs and bringing improvements until it feels ready for public release.

@amake
Copy link
Owner

amake commented May 10, 2021

v2 is centered around ID links.

No idea what the timeline is for v2 either, just continually fixing bugs and bringing improvements until it feels ready for public release.

Thanks for the information, @jethrokuan.

Is that id: links or #custom-id links?

@jethrokuan
Copy link

Is that id: links or #custom-id links?

id: links.

@amake
Copy link
Owner

amake commented May 11, 2021

Thanks.

I plan to support local id: links and #custom-id links (linking to sections in the same file) in the next release.

I will also support file: links with #custom-id fragments pointing to other files.

However I don't see a lightweight way to support id: links that point at other files. I'm not really keen on implementing indexing machinery or trying to read prebaked index DBs (if such a thing exists).

@amake
Copy link
Owner

amake commented May 13, 2021

Improved link support as described above will be in v1.19.0, which is pending approval for testing:

@amake
Copy link
Owner

amake commented May 18, 2021

v1.19.0 is out for all platforms.

amake added a commit that referenced this issue Oct 28, 2022
```
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
Layer OffsetEngineLayer was previously used as oldLayer.
Once a layer is used as oldLayer, it may not be used again. Instead, after calling one of the
SceneBuilder.push* methods and passing an oldLayer to it, use the layer returned by the method as
oldLayer in subsequent frames.
'dart:ui/compositing.dart':
Failed assertion: line 110 pos 9: '<optimized out>'

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      _EngineLayerWrapper._debugCheckNotUsedAsOldLayer (dart:ui/compositing.dart:110:9)
#3      SceneBuilder.addRetained.<anonymous closure>.recursivelyCheckChildrenUsedOnce (dart:ui/compositing.dart:695:21)
#4      List.forEach (dart:core-patch/growable_array.dart:416:8)
#5      SceneBuilder.addRetained.<anonymous closure>.recursivelyCheckChildrenUsedOnce (dart:ui/compositing.dart:701:18)
#6      SceneBuilder.addRetained.<anonymous closure> (dart:ui/compositing.dart:704:7)
#7      SceneBuilder.addRetained (dart:ui/compositing.dart:707:6)
#8      Layer._addToSceneWithRetainedRendering (package:flutter/src/rendering/layer.dart:671:15)
#9      ContainerLayer.addChildrenToScene (package:flutter/src/rendering/layer.dart:1284:13)
#10     OffsetLayer.addToScene (package:flutter/src/rendering/layer.dart:1421:5)
#11     Layer._addToSceneWithRetainedRendering (package:flutter/src/rendering/layer.dart:674:5)
#12     ContainerLayer.addChildrenToScene (package:flutter/src/rendering/layer.dart:1284:13)
#13     ClipRectLayer.addToScene (package:flutter/src/rendering/layer.dart:1590:5)
#14     Layer._addToSceneWithRetainedRendering (package:flutter/src/rendering/layer.dart:674:5)
#15     ContainerLayer.addChildrenToScene (package:flutter/src/rendering/layer.dart:1284:13)
#16     OffsetLayer.addToScene (package:flutter/src/rendering/layer.dart:1421:5)
#17     Layer._addToSceneWithRetainedRendering (package:flutter/src/rendering/layer.dart:674:5)
#18     ContainerLayer.addChildrenToScene (package:flutter/src/rendering/layer.dart:1284:13)
#19     OffsetLayer.addToScene (package:flutter/src/rendering/layer.dart:1421:5)
#20     Layer._addToSceneWithRetainedRendering (package:flutter/src/rendering/layer.dart:674:5)
#21     ContainerLayer.addChildrenToScene (package:flutter/src/rendering/layer.dart:1284:13)
#22     OffsetLayer.addToScene (package:flutter/src/rendering/layer.dart:1421:5)
#23     Layer._addToSceneWithRetainedRendering (package:flutter/src/rendering/layer.dart:674:5)
#24     ContainerLayer.addChildrenToScene (package:flutter/src/rendering/layer.dart:1284:13)
#25     TransformLayer.addToScene (package:flutter/src/rendering/layer.dart:1914:5)
#26     ContainerLayer.buildScene (package:flutter/src/rendering/layer.dart:1097:5)
#27     RenderView.compositeFrame (package:flutter/src/rendering/view.dart:231:37)
#28     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:514:18)
#29     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:869:13)
#30     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:375:5)
#31     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1271:15)
#32     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1200:9)
#33     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1058:5)
#34     _invoke (dart:ui/hooks.dart:145:13)
#35     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:338:5)
#36     _drawFrame (dart:ui/hooks.dart:112:31)
(elided 2 frames from class _AssertionError)
════════════════════════════════════════════════════════════════════════════════════════════════════
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants