Joplin's vscode plugin is released!

Oh, I didn't know just clicking the link works in the preview pane. :slight_smile: I thought I should always use Ctrl+Click.

So what I meant by the "fix" is actually about clicking the link in the preview pane. Before my PR I couldn't click the link because data-href was not set properly.

I have released the correct v0.1.6 version, but I will continue to deal with the following issue, and v0.1.7 will be released later

Clicking a link in Preview works. But Ctrl-clicking in the code / Markdown doesn't open the linked note. But maybe I am missing something? (sorry haven't read all the new posts (carefully))

Yes, this problem is still unresolved, to be honest, I don’t have any clues yet, the main problem is here

This is awesome, thank you! I really need this for my voice dictation workflow, and this is the only way to do it with Joplin right now.

Looks good. Will you add this to the Open VSX Registry (https://open-vsx.org/) so it can be used with other editors that support VSCode's extension API?

2 Likes

I'm not sure if it's worth it (adds some maintenance costs), I'll start a poll later, but you can post it above if you wish, I see that Markdown All in One has been officially posted over.

Is it possible to use with Joplin running on another computer on the same network?

Not currently possible

1 Like

I am able to get the file listing of Joplin that is running on another computer if I do port forwarding. It kind of works but it opens the notes in an external editor on the other computer, not on the one that is running VsCode :frowning:

Is there a work around for it?

Not currently, please refer to: Hope that the web api adds the following features to support the development of third-party extensions

1 Like

Thanks I am watching the thread now.

Apologies for the dumb question. I use VSCode to run some scripts from a particular project folder, so I've got that folder and several scripts open all day. Would I need a separate instance of VSCode to use it to edit Joplin notes via this plugin?

Kind of a related question, instead of using the plugin, can I use VSCode as Joplin's external editor, meaning when I click on external edit button, the note opens in VSC?

I don't think so, Joplin shows up in its own panel on the left side (whatever VSCode calls it) rather than as a project folder.

Yes, just add code -n --wait (linux/mac) or code.exe -n --wait to your external editor in your config options https://joplinapp.org/faq/#how-can-i-edit-my-note-in-an-external-text-editor

1 Like

Nice, so it just pops up new VSC editor window for every note launched to external editor. Thanks.

Maybe not relevant for you anymore, but for documentation: You can use the extension in other editors. I tried with VSCodium. You just have to import the extension manually: [Feat]: Publish on open-vsx · Issue #38 · rxliuli/joplin-utils · GitHub.

Just tested the release 0.7.2. The note title in the tab is really useful :+1:

For my use case it would be nice to have the note title as header at start of the note, too. It would look better and make the linter happy. For example:

# Note title

## Actual note content starts here
some more content

I don't know whether others want it like this. Maybe an option like "Add note title as header" would be suited.

@rxliuli: Do you think it's possible to implement it?

Of course, the main reason I didn't want to deal with it was that I didn't want to parse markdown, but I'll try to just split the string and get the first line to do it

We have function (in markdownUtils I think) to do that. The tricky part is to strip off markup and take into account that this line can contain html or an image for example.

3 Likes

0.7.3 has been released, can you try it?


Also, after I tried markdownUtils.titleFromBody, I decided not to use it, seems inconsistent with the existing behavior of opening in an external editor, it also removes the # in the title @laurent

2 Likes