onivim / oni2

Native, lightweight modal code editor
https://v2.onivim.io
MIT License
7.84k stars 282 forks source link

Using foambubble/foam with onivim2 #3112

Open jerabaul29 opened 3 years ago

jerabaul29 commented 3 years ago

I would like to use this from onivim2:

https://github.com/foambubble/foam

They only name that they publish a VSC extension, but I am able to install the extension from onivim2. However, it does not seem to work (nothing happens when issuing commands).

Any idea how to get this to work? :)

bryphe commented 3 years ago

Hi @jerabaul29 ,

I took this extension for a test run to evaluate the blockers - I saw a few issues:

1) I was confused at first why gd wouldn't let me navigate the links in the foam starter project - it seems there are some dependent extensions that they recommend installing too. I realized I needed the koritna.vscode-markdown-notes extension to navigate between the [[ wiki links ]].

2) The foam extension creates some tree views, which we don't support yet. I logged an issue to track (#3126 , related to #1058)

3) The foam extension uses a webview for graph visualization, which we don't support yet: https://github.com/onivim/oni2/issues/3128

4) As I was trying out the commands, I saw crashes in the extension here: https://github.com/foambubble/foam/blob/585a6d61e18842d5ff32ad22697313f12aed2f26/packages/foam-vscode/src/utils.ts#L181 - looks like it's hitting a bug in our open/show flow.