Joplin's vscode plugin is released!

Ah ha! I see it updates when at Joplin's sync interval. (I installed the extension today, so ... it is the most current).

No, I mean, at the top of some of my markdown documents, there is an @import. Sometimes that import will reference a CSS file from some server "https://example.com/css/cool.css"; , but more often than not, it will reference a file from my filesystem. Joplin is 100% fine with this. vscode, alas, is not.

<style>
    @import "/path/to/a/stylesheet.css";
</style>

# A bunch of Markdown
...

No, I mean, at the top of some of my markdown documents, there is an @import. Sometimes that import will reference a CSS file from some server "https://example.com/css/cool.css"; , but more often than not, it will reference a file from my filesystem. Joplin is 100% fine with this. vscode, alas, is not.

I don't think that works with the plugin because no matter what I do ...

https://file+.vscode-resource.vscode-cdn.net/home/todd/path-to-stylesheet/stylesheet.css net::ERR_ABORTED 401

... if I set it to, for example /home/todd/path-to-stylesheet/stylesheet.css (Which is not ideal anyway because the style sheets I use change per file, but whatever.)

I think the "open folder" that serves as the working directory is some virtual thing that can't be routed around, relative path or not. That, or I am just not figuring it out.

I checked and it does not work, kind of magical, the official maintainer's statement is that referencing local absolute paths is not supported for security reasons. Is there anyway you can create a simple extension to do it? Although this is indeed very strange. . .

1 Like

I wasn't sure if you were quoting the maintainer here, or asking me this question. Regardless, my coding days are largely over. Heh.

But this hard line by the maintainers is ... naive, IMHO. There are tons of scenarios where a robust editor is not used for production development (this whole thread is an example of that). And hell, just wrapping the option in tons of warnings and caveats should be sufficient. (Putting on my ex-product-manager hat for a moment.)

Oh well. The work-around is for me to push the CSS to a website. Not a huge deal for me (though if you are troubling-shooting CSS through rapid cycles of trial-and-error this is a major PITA) but often folks don't maintain a website. Or they don't have an easy way of deploying arbitrary CSS somewhere.

Anyway. I said my piece. Thanks for looking into it.

OK, I got it to start after realizing that the bit about copying tokens and such was setting up in vsc, rather than joplin.

I now find that while I can create a new note in vsc, and some number of edits will be reflected in joplin, if I then go and edit that same note in joplin, vsc never sees the update, unless I exit and restart.
Is this expected???

(If I open a note with joplin's external edit button syncs seem to work fine.)

Yes, this is expected, since the vscode plugin is intended to replace the joplin client, you should only use one of the editors at a time in most cases.

2 Likes

Release 1.1.3

Now, when you can't connect to joplin at startup, the reconnect function will be supported, you can start joplin and click the reconnect button

image

ref: Release joplin-vscode-plugin@1.1.3 · rxliuli/joplin-utils · GitHub

Release 1.2.0, support displaying search results to the sidebar

ref: Release joplin-vscode-plugin@1.2.0 · rxliuli/joplin-utils · GitHub


By the way, how does joplin's own multi-language search be implemented? It seems that each language uses different methods for word segmentation, so I currently just use spaces to do simple word segmentation processing. @laurent

4 Likes

Release 1.2.1, fix the problem of right-click menu failure

ref: Release joplin-vscode-plugin@1.2.1 · rxliuli/joplin-utils · GitHub

1 Like

Release 1.2.2,fix blob is not defined when upload image

ref: Release joplin-vscode-plugin@1.2.2 · rxliuli/joplin-utils · GitHub

Thanks for your work here.

I'm struggling to see how I can create a Todo note type. All I see is Create Note, Create Folder.

Is this, in fact, supported? I don't understand how I can be missing it!

Thanks

I never realized this problem, which is strange, maybe it has something to do with the fact that I have never used this feature of joplin. Now the vscode plugin can indeed only display the todo, but not create it.

1 Like

Release 1.3.0,support creating todo items @ncatanchin

image

ref: Release joplin-vscode-plugin@1.3.0 · rxliuli/joplin-utils · GitHub

3 Likes

Thank you, @rxliuli!

It used to be there, for sure - I wrote a note about how I assigned a keyboard shortcut to it :slight_smile:

Appreciate the speedy fix, all the best

Release 1.3.1, fixed the issue of silent failure when pasting images on Linux, questions have been added to the FAQ, FAQ | Joplin Utils

release: Release joplin-vscode-plugin@1.3.1: build(joplin-vscode-plugin): release 1.3.1 · rxliuli/joplin-utils · GitHub

Release 1.4.0, Automatically compress images when uploading from clipboard, And trim all unnecessary dependencies.

ref: Release joplin-vscode-plugin@1.4.0 · rxliuli/joplin-utils · GitHub

2 Likes

Release 1.5.0,Implement Chinese word segmentation search based on jieba.

  • fix: Display a friendly error message when the token is not set
  • fix: Solve the issue requiring a restart after modifying plugin settings
  • feat: Implement Chinese word segmentation search based on jieba

ref: Release joplin-vscode-plugin@1.5.0 · rxliuli/joplin-utils · GitHub

What's next?

If possible, we hope to integrate support for CJK (Chinese, Japanese, Korean) word segmentation search directly into Joplin. This would eliminate the need to implement it in external applications that call the Joplin REST API. We expect to achieve this through WebAssembly (WASM), which offers natural cross-platform compatibility and relatively high performance. For Chinese word segmentation, this would add approximately 2.7MB to the WASM file. If we integrate it into Joplin, would this be acceptable? @laurent

Yes that would be fine, but I think the problem is how to integrate it with the existing search? Do you know how that could be done?