Code Monkey home page Code Monkey logo

joplin-utils's Introduction

joplin-utils

中文

Some joplin peripheral tools created by me. Since the functions are in the same category and are related, they are managed using monorepo.

If the above tools are helpful to you, you can give me a star

joplin-utils's People

Contributors

arjunbazinga avatar awbmilne avatar contributorpw avatar daeraxa avatar dependabot[bot] avatar i-liuli avatar jacksteamdev avatar jerrylususu avatar jspiers avatar ozhiwei avatar renatoxsr avatar rxliuli avatar sailor-wu avatar serranomorante avatar skylize avatar spencer246 avatar xylyxyrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

joplin-utils's Issues

[Feat]: 能否开放配置项,获取Joplin文章的 metadata?

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-blog

您的功能请求是否与问题有关?请描述。

在使用 Joplin-blog 爬取完笔记后,生成的 md 文件有对应的元数据列表,例如:

---
layout: Post
title: TEST
permalink: /p/3a9cea8df5b14702b262fd7ce3b36xxx
tags:
  - test
date: 2022-08-19 10:27:24
updated: 2022-09-01 14:56:13
---

这应该是用于适配后续 blog 主题模板的格式,
是否能在 .joplin-blog.json 新增对应的 metadata 属性将 metadata 属性的内容写入上述元数据列表 用于拓展自身主题 例如:

{
  "type": "vuepress",
  "rootPath": "./blog",
  "token": "xxxxxxx",
  "baseUrl": "http://localhost:41184",
  "tag": "blog",
  "metadata": {
    "layout": "Post",
    "author": "Kilien",
    "useHeaderImage": true,
    "headerImage": "https://picsum.photos/seed/random/200/300",
    "headerMask": "rgb(14, 21, 5, .2)"
...
}

生成如下元数据:

---
layout: Post
title: TEST
author: Kilien
useHeaderImage: true
headerImage: https://picsum.photos/seed/random/200/300
headerMask: rgb(14, 21, 5, .2)
permalink: /p/3a9cea8df5b14702b262fd7ce3b36xxx
tags:
  - test
date: 2022-08-19 10:27:24
updated: 2022-09-01 14:56:13
---

描述您想要的解决方案

尝试改源码的时候,溯源到 BlogVuepressIntegrated.ts 文件中 meta 方法,或许可以在此注入 metadata 属性

meta(note: CommonNote & { tags: CommonTag[] }): object {
    const formatter = 'yyyy-MM-dd hh:mm:ss'

    const data = {
      title: note.title,
      permalink: `/p/${note.id}`,
      tags: note.tags
        .map((tag) => tag.title)
        .filter((name) => name !== this.config.tag),
      date: DateTime.fromMillis(note.createdTime).toFormat(formatter),
      updated: DateTime.fromMillis(note.updatedTime).toFormat(formatter),
    }
    return Object.assign({}, data,  this.config?.metadata)
  }

描述您考虑过的替代方案

发现 JoplinNoteParser.ts 文件中有 addMeta 方法,或许可以遍历 .joplin-blog.json 中 meta 属性合并至 NoteMeta 接口再行写入 metaStr

其他上下文

No response

[Bug]: Can't display images in Markdown Preview Enhanced

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

Pictures can be displayed normally in default vscode markdown preview ,
but can't display in Markdown Preview Enhanced

Steps to reproduce the behavior

open joplin
preiew markdown

log file

I cant read this stuff

Additional context

I cant read this stuff

[Bug]: joplin-blog: no notes are processed

  • I checked FAQ

The tool/kit where the error occurred

joplin-blog

Describe the bug

I can't get started on joplin-blog on macOS 10.15.7. Nothing happens.

I followed the instructions and I just get:

$ joplin-blog wiki
    _             _ _             _     _
   (_) ___  _ __ | (_)_ __       | |__ | | ___   __ _
   | |/ _ \| '_ \| | | '_ \ _____| '_ \| |/ _ \ / _` |
   | | (_) | |_) | | | | | |_____| |_) | | (_) | (_| |
  _/ |\___/| .__/|_|_|_| |_|     |_.__/|_|\___/ \__, |
 |__/      |_|                                  |___/
⚠ No notes to be processed
  Start filtering joplin notes
✨  Done in 1.75s.

What am I doing wrong?

Steps to reproduce the behavior

Just follow the instructions in the README.

Here's my package.json:

❯ cat package.json
{
  "scripts": {
    "gen": "joplin-blog wiki"
  },
  "devDependencies": {
    "joplin-blog": "^0.7.0"
  }
}

Here's my .joplin-blog.json:

❯ cat .joplin-blog.json
{
  "type": "vuepress",
  "language": "en",
  "rootPath": ".",
  "joplinProfilePath": "/Users/huy/.config/joplin-desktop",
  "token": "c8a14932....846490",
  "port": 41184,
  "tag": "wiki"
}

Additional context

No response

[Bug]: folder 和 note 圖示找不到

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-vscode-plugin

描述这个错误

在左側 panel 顯示筆記目錄和筆記, 應該會有 icon theme 的圖示顯示
我目前使用 material icon theme 在一般檔案目錄圖示如下

2021-10-28-00-29-45

复现错误的步骤

2021-10-28-00-30-54

其他上下文

打開 devtool 顯示錯誤:

GET vscode-file://vscode-app/home/csj/.vscode/extensions/resources/light/folder.svg net::ERR_FILE_NOT_FOUND
note.svg:1 
GET vscode-file://vscode-app/home/csj/.vscode/extensions/resources/light/note.svg net::ERR_FILE_NOT_FOUND

而在我這邊路徑應該要是 /home/csj/.vscode/extensions/rxliuli.joplin-vscode-plugin-0.5.2/resources/light
中間少了 rxliuli.joplin-vscode-plugin-0.5.2

如果我強制 link 就可以顯示, 雖然應該要抓 dark 不是 light 這邊似乎也有問題

cd ~/.vscode/extensions
ln -s rxliuli.joplin-vscode-plugin-0.5.2/resources .

2021-10-28-00-20-45

做了 link 之後顯示有點奇怪, 有些沒圖示 這個問題重啟之後就沒發生了, 每個檔案目錄的圖示都有顯示出來

2021-10-28-00-39-04

[Feat]: toggle default to edit/preview mode

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

no

Describe the solution you'd like

when double clicking a note, I'd like it open markdown preview to read it instead of editing it

Describe alternatives you've considered

a toggle option to set default mode between edit and preview

Additional context

No response

[Feat]: 给「检查没有父级目录的笔记」增加自动移除重复项功能

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-batch-web

您的功能请求是否与问题有关?请描述。

似乎笔记的父级目录丢失的一个可能原因是多个设备同时向一个同步目标同步。这种情况下同一个笔记会存在两个副本,一个有父级目录,一个没有,除此之外笔记内容几乎完全相同(可能 attachment id,或者链接到其他笔记的引用 id 不同)。是否有可能改进这一工具,使其支持对笔记完全相同情况下,一键删除没有父级目录的笔记副本?

描述您想要的解决方案

我自己解决这一问题,使用了两个步骤

  1. 用 SQL 筛选出 parent_id 不存在于当前 Joplin 实例的笔记,然后把所有含有相同 title 的笔记找出来(相当于找出同一个笔记的两个副本)。将结果导出成 csv 文件。
select * from notes where notes.title in (select title from notes where notes.parent_id not in (select id from folders))
  1. 用一个简单的 Python 脚本找出两个副本中 body 存在不一致的 note pair,其他的理论上就可以安全移除了。
import csv
with open("result_csv.csv", "r", encoding="utf8") as f:    
    reader = csv.DictReader(f)
    all_notes = list(reader)
	
len(all_notes)

title_to_note_dict = {}
for item in all_notes:
    if item["title"] not in title_to_note_dict:
        title_to_note_dict[item["title"]] = []
    title_to_note_dict[item["title"]].append(item)
	
len(title_to_note_dict)

all([len(i)==2 for i in title_to_note_dict.values()])

all([i[0]["body"] == i[1]["body"] for i in title_to_note_dict.values()])

for title, notes in title_to_note_dict.items():
    if notes[0]["body"] != notes[1]["body"]:
        print(title)

描述您考虑过的替代方案

按照 joplin-batch-web 中「检查没有父级目录的笔记」输出的每个标题手动确认,但是太慢了,而且每次确认需要手动复制到其他 diff 工具中来确认两个副本是否完全一致。

其他上下文

No response

[Feat]: Support extension running on host

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

Currently, the vscode plugin will only run on the remote host, so will not work with Joplin running locally for remote workspaces. Error message:
image

My setup is Windows 10 (or macOS), where I run Joplin, VSCode and other gui apps. My code development all happens in remote containers (wsl2 & docker). I can only connect to my Joplin instance from a local workspace.

Describe the solution you'd like

I'd like to be able to utilize the Joplin extension, running locally, even when my VS-Code workspace is remote.

Describe alternatives you've considered

I can only use the plugin in a local workspace, which must be in a separate window. That mode provides no advantages over using the native windows Joplin app.

Additional context

From what I've seen on other extensions, this may be just a configuration setting when you build. E.g.
image

[Bug]: It does not work from remote containers

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

It does not work in remote containers.

Steps to reproduce the behavior

  • Create a remote container
  • Install the plugin in remote container (it does so automatically if you are in the container when you first install)
  • You can verify that the url/port is not recognized.

log file

Not necessary

Additional context

It requires to be installed in the remote container while it should not.
Installing it that way can work only if you change the container network_mode to "host", which is unnecessary and annoying, because you have to add that setting to all the containers and rebuild each one of them.

The work around is overriding its extensionKind setting:

{
    "remote.extensionKind": {
        "rxliuli.joplin-vscode-plugin":"ui"
    },
}

That way it works as expected from the local host and you don't need to modify anything in your remote containers setup.

However the actual fix is changing its extension kind in the source, so it will work without a hitch without any overwriting workaround.

Remote install joplin-vscode-plugin opens documents in editor on remote server

  • I checked FAQ <-- URL is 404

Describe the bug

Attempting to open a joplin note from a remote client opens it on the server side instead.

To Reproduce
Steps to reproduce the behavior:

  1. Install Joplin on server, copy clipper access token
  2. Connect to Server with VSCode "Connect to Host..." over ssh
  3. Install Joplin-vscode-plugin, configure "Server" tab with clipper access token
  4. Vscode: Reload Window
  5. Joplin notes list appears
  6. Clicking on a note opens the document on the server -> oops

Expected behavior

Clicking the document should open it on client

Screenshots

vscode-joplin-remote-server.mp4

(Download and play in VLC if doesn't show up in browser)

Desktop (please complete the following information):

  • OS: Windows VSCode + Linux Server
  • Joplin platform-version: 2.3.3
  • VSCode version: 1.59.0
  • joplin-vscode-plugin version: 0.5.2

Additional context

This is probably a pretty unusual use case, so I full understand if you don't want to or cannot fix it. 🍻

[Bug]: unwanted autoplacement

Ubuntu 20.04
VSC 1.65.2
joplin-vsc-code 0.6.0
joplin 1.7.11 (prod, linux)

Each occurrence of ".properties" or "resources" is replaced by an empty string when I save a document.

I don't know what I'm doing wrong. Is it a setting issue or a bug?
I have no clue where to look for.
May be it's not the right place to ask but any help will be appreciated.

docs: 补充 joplin-vscode-plugin 的文档

说明现有 joplin plugin 在 vscode 的替代插件或功能

  • 特殊粘贴(例如 csv)
  • vim 编辑 -- vim 插件
  • 笔记大纲侧边栏 -- 使用快捷键或侧边栏的面板
  • 格式化 -- prettier
  • 编辑器中的持久折叠 -- vscode 默认支持
  • 模板功能 -- vscode 默认支持
  • diff 对比 -- vscode 默认支持
  • math 模式 -- vscode 原生支持
  • rich markdown -- 插件
  • 编辑器布局 -- 原生支持
  • 展开面板 -- html 代码片段即可

[Bug]: 开发者你好,关于 joplin-search-integration 插件无法使用的问题

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-search-integration

描述这个错误

我在配置到最后一部,填写Token的时候,点击Submit没有任何反应,请问如何解决?
望回复,谢谢

1、我的 joplin 不是安装在 C 盘的。(在桌面快捷方式使用 --profile G:\JoplinData 命令)
2、我使用的是 360 极速浏览器。

复现错误的步骤

...

其他上下文

No response

bug: 解决导入笔记的性能很慢的问题

现状

目前导入笔记 400+ 大约需要 415s,吾辈观察到每次创建笔记都会有多个流程,还有可能需要更新 FTS 索引之类的,但问题最大的还是最后会卡住的问题

13:02:31: Request (1631163750325): Created note a4e396bcba984ae19962d87ace79f956
main-html.js:48 13:02:31: Request (1631163751126): Downloading images: 0
main-html.js:48 13:02:31: Request (1631163751126): Creating resources from paths: 0
main-html.js:48 13:02:31: Request (1631163751126): Saving note...

image

[Bug]: Note name breaking

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

When using a # in first line of note break the note title after saving.

Steps to reproduce the behavior

  1. Create a note in joplin
  2. Name it "Good name"
  3. Rigth "# Bad name" on the first line of the note
  4. Open the note in VSCode
  5. Save the note
  6. Congratulation, the name of the note break.

log file

{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad Name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Bad Name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: c7f12ff25eed4942b8116c051aa000c8, title: Good name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Good name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad Name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Bad Name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: c7f12ff25eed4942b8116c051aa000c8, title: Good name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Good name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad Name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Bad Name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: c7f12ff25eed4942b8116c051aa000c8, title: Good name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Good name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad content","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.showLogFileDir","pluginVersion":"0.7.9"}

Additional context

It seems that the plugin display the note name on the first line as "# Title".
If note already contain a "#Content" on the first line, it skip the adding of the true title.
Then, when saving using the "#Content" as title and rename the note with the wronf name.

[Feat]: Force notes to be opened in VSCode

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

My primary markdown editor is Typora, so by default when I double click a markdown file it will be opened in Typora. However, when I'm using the joplin-vscode-plugin, I noticed that if I double click to open a note, it will be opened in Typora but not in VSCode.

Describe the solution you'd like

I would like to add a setting in the plugin that forces notes to be opened in VSCode. (As I am already using the VSCode plugin, I would probably want to edit my notes in VSCode.)

Describe alternatives you've considered

I could change the file association so VSCode will be come the default editor for Joplin. But that would break some other workflows that I rely on.

Additional context

This happens on Windows 11. I mostly just use the main Joplin program, and only uses VSCode if I need to compare / cross-edit multiple notes.

Can not run joplin-batch-web with local http server

  • I checked FAQ

Describe the bug

When open the http://127.0.0.1/index.html,chrome returns a blank page with warning in console:

Failed to load module script: The server responded with a non-JavaScript MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

To Reproduce

Steps to reproduce the behavior:

  1. unzip the repo downloaded from github, and make the joplin-batch-web directory as http server root
  2. open http://127.0.0.1/index.html with chrome

Expected behavior
Should open the joplin-batch-web page

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: win10
    -joplin-batch-web version : master

Additional context
Add any other context about the problem here.

[Bug]: joplin-blog 无法运行

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-blog

描述这个错误

当我尝试运行你的example yarn gen 命令 时出现下面的错误
my_blog/node_modules/.bin/joplin-blog:行1: 未预期的符号“'./dist/cjs/bin.js'”附近有语法错误
my_blog/node_modules/.bin/joplin-blog:行1: `require('./dist/cjs/bin.js')

复现错误的步骤

  1. 使用 vscode 打开 .joplin-blog.json 配置文件
  2. 修改 joplinProfilePath/token/port 三个配置
  3. 删除 source/_posts 目录
  4. 为一些笔记添加 blog 标签
  5. 运行 yarn gen 从 joplin 读取 blog 标签的笔记并写入到当前目录
    执行到第5步时出现错误

日志文件

[waves@waves-pc blog-hexo-example]$ yarn gen
yarn run v1.22.18
$ joplin-blog blog
/home/waves/Downloads/joplin_blog/blog-hexo-example/node_modules/.bin/joplin-blog:行1: 未预期的符号“'./dist/cjs/bin.js'”附近有语法错误
'home/waves/Downloads/joplin_blog/blog-hexo-example/node_modules/.bin/joplin-blog:行1: `require('./dist/cjs/bin.js')
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

其他上下文

joplin-blogv0.82
yarn run v1.22.18

Add ability to specifiy IP/hostname of Joplin API Server

Is your feature request related to a problem? Please describe.
By default, Joplin only exposes the API server on localhost/127.0.0.1, and this plugin rightly assumes that is where it is running. I have a different use case: I'm using socat to forward the Joplin API port (from an always-on server) to a network-accessible IP address. I would like to use this plugin, from a different host than my Joplin API server, to connect to my Joplin API server to serve as a Joplin webui behind a reverse proxy.

Describe the solution you'd like
I believe that adding the ability to specify an IP address/hostname for the Joplin API server in addition to the port in plugin config would meet this need.

Describe alternatives you've considered
I cannot think of another way to achieve this with this plugin. Given the current state of Joplin web interface initiatives, I think that your plugin + some additional VS Code plugins in the style of Foam may be a good path toward a usable Joplin web interface.

Additional context
The Node-Red Joplin node palette allows specification of the IP & port for Joplin API server and works well with my Joplin + socat setup currently.

Thanks for your work creating this plugin!

[Feat]: 增加选项控制是否把 note title/name 带到 .md 文件中

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

目前 joplin-vscode-plugin 会把 note name 以 H1 添加到 markdown 文件中,而 note 内容中原本就有一个 H1 作为标题,就会出现两个一样的 H1,这也违反了 single h1 的语法规范,在编辑和预览的过程中都比较难受。

image

Describe the solution you'd like

Joplin 里关于 note name 和 the first header in the markdown text 的争论一直没有定论(Remove superfluous note names - Features - Joplin Forum),使用者们也有各自的喜好。

所以是不是可以增加一个选项,用户根据自己的使用习惯来决定是把 note name 添加为 H1 还是直接忽略掉它。

Describe alternatives you've considered

N/A

Additional context

No response

[Bug]: 图片无法显示

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

joplin内图片可以正常显示
vscode markdown previewOffice Viewer 均无法正常显示
p.s. 已设置 markdown.showPreviewSecuritySelector

Steps to reproduce the behavior

  1. 设置markdown.showPreviewSecuritySelector
  2. 打开markdown预览

log file

{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.10"}
{"level":"info","message":"openNote start, id: e498b6d5f20748a8b75aab82d8f7fe0e, title: Go 语言垃圾收集器的实现原理","pluginVersion":"0.7.10"}
{"level":"info","message":"openNote write tempFile: /Users/songe/Library/Application Support/Code - Insiders/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Go 语言垃圾收集器的实现原理.md","pluginVersion":"0.7.10"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.10"}
{"level":"info","message":"command execute: joplinNote.showResources","pluginVersion":"0.7.10"}
{"level":"warn","message":"showResources.noteId: undefined","pluginVersion":"0.7.10"}
{"level":"info","message":"command execute: joplinNote.showResources","pluginVersion":"0.7.10"}
{"level":"warn","message":"showResources.noteId: undefined","pluginVersion":"0.7.10"}
{"level":"info","message":"command execute: joplinNote.showLogFileDir","pluginVersion":"0.7.10"}

Additional context

image

image

image

[Feat]: host specific joplin token

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

Using VSCode on 2 different machines work + home with settings sync

As the token is generated by Joplin is immutable + individual the extension works only on one machine - the one with the matching token.

Describe the solution you'd like

ability to enter hostname:token instead of token only

Describe alternatives you've considered

none found

Additional context

No response

[Feat]: 为什么标签页名字显示的是笔记ID,可读性很差

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-vscode-plugin

您的功能请求是否与问题有关?请描述。

image

描述您想要的解决方案

可以替换成笔记标题吗

描述您考虑过的替代方案

其他上下文

No response

[Bug]: 图片无法导出

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-blog

描述这个错误

win11上试了一下joplin-blog,发现图片无法导出,具体报错如下:

图片

复现错误的步骤

yarn gen后,出现错误,无图笔记全部正常,有图片的报错

其他上下文

joplin0.7
nodejs16.13.2
win11

[Bug]: Request failed with status code 500

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-vscode-plugin

描述这个错误

VSCode 安装 joplin-vscode-plugins 插件后,可以看到笔记列表,但尝试打开笔记时报错:

command error: joplinNote.openNote{"name":"Error","message":"Request failed with status code 500","stack":"Error: Request failed with status code 500\n\tat createError (c:\\Users\\tianx\\.vscode\\extensions\\rxliuli.joplin-vscode-plugin-0.6.0\\dist\\extension.js:634:15)\n\tat settle (c:\\Users\\tianx\\.vscode\\extensions\\rxliuli.joplin-vscode-plugin-0.6.0\\dist\\extension.js:652:12)\n\tat IncomingMessage.handleStreamEnd (c:\\Users\\tianx\\.vscode\\extensions\\rxliuli.joplin-vscode-plugin-0.6.0\\dist\\extension.js:3124:11)\n\tat IncomingMessage.emit (events.js:327:22)\n\tat endReadableNT (internal/streams/readable.js:1327:12)\n\tat processTicksAndRejections (internal/process/task_queues.js:80:21)"}

复现错误的步骤

  1. 执行Ctrl+J, Ctrl+J
  2. 双击一个笔记

其他上下文

操作系统: Windows 11
Joplin:
image

VSCode:
image

[Feat]: Deploy joplin-util at https://open-vsx.org/

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

Allow Codium users to participate in Joplin-Util without manual installation.

Describe the solution you'd like

Release of Joblin-Util on https://open-vsx.org/

Describe alternatives you've considered

...

Additional context

Thank you for Joblin-Util. Rarely has a plugin inspired me so much! Keep it up.

[Bug]: Note name clashes and loss of data

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

I will describe a couple of bugs relating to a likely similar cause.

name clash issue:

When a note shares the same name a clash can occur which stops the user from changing between two identically named notes.

Missing data issue:

Another issue I have observed which relates the the temporary file naming used. This resulted in actual lost data due to the data not being synced.

Steps to reproduce the behavior

Overwritten data issue:

  • open notes.md found in folder folder1
  • open notes.md found in folder folder2

I am unable to change back to folder1/notes.md and I can only edit folder2/notes.md

Missing data issue:

  • open notes.md in vscode window
  • in vscode pallet Developer: Reload Window
  • add changes to notes.md
  • observe that no changes are made to the original file as synced to the joplin app.

I was fortunate that vscode has local history and I was able to restore the version using vscode functionality.

log file

Additional context

No response

[Bug]: joplin-batch-web: unused images are not displayed

  • I checked FAQ

The tool/kit where the error occurred

joplin-batch-web

Describe the bug

For the "Check for unused resources" functionality, it successfully finds unused resources, but the img links are broken.
For example, it looks like this in the HTML:

http://localhost:undefined/resources/5c060c09fc1b4e6c4919c/file?token=undefined

So the port and token aren't filled in. If I open a new tab and manually fix the link, the image link does work.

Steps to reproduce the behavior

  1. Set up the port and token
  2. Go to "Check for unused resources"
  3. Click Check
  4. Notice the broken image links

Additional context

No response

[Bug]: 插件错误地将一级标题处理为笔记名

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

如果文档的第一行是# 1 一级标题,处理时会被当做标题处理,如果对文件做了任何修改而保存,文档的名字会被修改为第一个一级标题的名称。

Steps to reproduce the behavior

  1. 在joplin下有文档的第一行是#1一级标题
  2. 使用VSCode打开
  3. 做出任何改动后保存
  4. 文档的标题被错误地改变

log file

没有找到打开log的命令,这个BUG复现较容易,应该不会碍事

Additional context

No response

[docs] Setting up extension to work with Joplin as a Flatpak package

Just wanted to document this solution to a problem I ran into. Please add it to the documentation or FAQ if it's interesting.

On Linux, Joplin is available as a Flatpak package. When setting up the joplin-vscode-plugin with Joplin installed as a flatpak package, it will fail with a 500 error because of flatpak sandbox restrictions.

The solution is to set up Joplin to work correctly with VS Code as an external editor. Here's forum discussion on Joplin flatpak and external editors.
Go to Joplin > Options > General, and use the following parameters:
Path: /bin/flatpak-spawn
Arguments: --host /usr/bin/code --wait
I hope this is helpful. Thanks for a useful extension!

[Bug]: 图片显示

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

无法显示joplin中的图片

Steps to reproduce the behavior

  1. 在joplin中上传图片,样式如dc9abd89e7a7f6f6cc8f88eb100feb8d.png
  2. 在VScode中使用Joplin插件打开包含图片的文档
  3. 图片没有显示

Additional context

值得注意的是 如果使用joplin自带的切换外部编辑,图片是可以显示的

[Bug]: I cant open notes

Confirmation

  • I checked FAQ

The tool/kit where the error occurred

joplin-vscode-plugin

Describe the bug

When I click on a note and try to open with double click this is what I get

command error: joplinNote.openNote{"name":"Error","message":"Request failed with status code 404","stack":"Error: Request failed with status code 404\n    at createError (c:\apps\\VSCODE\\.vscode-oss\\node_modules\\.pnpm\\[email protected]\\node_modules\\axios\\lib\\core\\createError.js:16:15)\n    at settle (c:\apps\\VSCODE\\.vscode-oss\\node_modules\\.pnpm\\[email protected]\\node_modules\\axios\\lib\\core\\settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (c:\apps\\VSCODE\\.vscode-oss\\node_modules\\.pnpm\\[email protected]\\node_modules\\axios\\lib\\adapters\\http.js:269:11)\n    at IncomingMessage.emit (events.js:327:22)\n    at endReadableNT (internal/streams/readable.js:1327:12)\n    at processTicksAndRejections (internal/process/task_queues.js:80:21)"}

I am using Vscodium 1.65 and Joplin extension 0.6 on Windows, against Joplin Cli

Steps to reproduce the behavior

I cant read this stuff

Additional context

I cant read this stuff

docs: 整合所有的 joplin-utils 中工具的文档为一个网站

动机

目前各个文档是分散的,而吾辈希望能在一个网站找到所有的文档,也能让其他人更容易找到相关的工具。

步骤

  1. 重整 joplin-vscode-plugin 的文档,将之作为一个子目录
  2. 将 joplin-api/joplin-plugin-api 的文档打包为 markdown 嵌入到 docs/ 目录中
  3. 完善其他模块的文档
  4. 废弃的功能应该标记为废弃

[Feat]: 是否可以有一个自动发布博客的方案?Is there any solution to auto pub the blog?

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-blog

您的功能请求是否与问题有关?请描述。

我想要一个自动发布博客的方案。

描述您想要的解决方案

我还没有开始使用这个插件,我想了解一下,现在有没有一个方案可以把插件布署到一个服务器中,比如docker,当joplin更新笔记后,自动地在服务中更新、打包并发布到静态网站。

描述您考虑过的替代方案

将 joplin、插件安装到docker中,并定时更新笔记,如果有更新,就执行编译、发布!

其他上下文

我会在多台设备上进行工作,如果每台设备都配置发布环境,太繁琐了。这个活动最好可以自动进行!

No response

[Bug]: 在VScode新版上无法安装

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-vscode-plugin

描述这个错误

安装报错:

Unable to install because, the extension 'rxliuli.joplin-vscode-plugin' compatible with current version '1.32.3' of VS Code is not found.

复现错误的步骤

vscode中安装joplin-vscode-plugin

其他上下文

No response

[Feat]: 希望能够指定ip

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-vscode-plugin

您的功能请求是否与问题有关?请描述。

如题. 我正在使用VSCode的一个Online版本code-server, 编写markdown包括生成TOC进行跳转、粘贴剪切板图片都不怎么支持. 想用安卓端的joplin,但由于安卓端的joplin没有实时预览比较苦恼。然后我发现了这个vscode插件, 但是很遗憾server版本的joplin并不支持(https://discourse.joplinapp.org/t/action-api-not-setup-in-1-6-4-cli/16735)

描述您想要的解决方案

如题, 希望能够提供设定访问ip的选项, 便于我远程连接到宿舍的电脑上的joplin cli, 而不是目前默认的连接到localhost的joplin

描述您考虑过的替代方案

暂无, 由于code-server是运行在远程服务器的vscode, 限制非常多.

其他上下文

No response

[Bug]: exception on one of the attachments

  • I checked FAQ

The tool/kit where the error occurred

joplin-blog

Describe the bug

I'm running joplin-blog on my entire set of notes and for some reason an exception is thrown for one of the attachments:

$ joplin-blog wiki
    _             _ _             _     _
   (_) ___  _ __ | (_)_ __       | |__ | | ___   __ _
   | |/ _ \| '_ \| | | '_ \ _____| '_ \| |/ _ \ / _` |
   | | (_) | |_) | | | | | |_____| |_) | | (_) | (_| |
  _/ |\___/| .__/|_|_|_| |_|     |_.__/|_|\___/ \__, |
 |__/      |_|                                  |___/
  Filter to get 766 notes to be processed
  End reading note attachments and tags
  End frame initialization action
  0 cached notes have been skipped
  End of parsing the Joplin internal links and attachment resources in the notes
  End writing notes to local file
⠼ 30/59 Copying attachment resource: IMG_20130708_200823.020.jpgnode:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, copyfile '/Users/huy/.config/joplin-desktop/resources/7de408d4ec98e0fa8314c6b092156956.' -> '/Users/huy/dev/joplin-blog-export/p/resource/7de408d4ec98e0fa8314c6b092156956.'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'copyfile',
  path: '/Users/huy/.config/joplin-desktop/resources/7de408d4ec98e0fa8314c6b092156956.',
  dest: '/Users/huy/dev/joplin-blog-export/p/resource/7de408d4ec98e0fa8314c6b092156956.'
}
error Command failed with exit code 1.

It seems the extension is missing from the filename.

The files do exist:

❯ ls /Users/huy/.config/joplin-desktop/resources/7de408d4ec98e0fa8314c6b092156956.*
/Users/huy/.config/joplin-desktop/resources/7de408d4ec98e0fa8314c6b092156956.crypted
/Users/huy/.config/joplin-desktop/resources/7de408d4ec98e0fa8314c6b092156956.jpg

I checked the relevant note and the markdown says:

![IMG_20130713_134357.026.jpg](:/7de408d4ec98e0fa8314c6b092156956)

I don't see anything weird.

Steps to reproduce the behavior

I don't know if you can reproduce it as the tool works for most attachments. It only fails on this one so far.

Additional context

No response

[Bug]: 和PicGo插件冲突,picgo在使用浏览文件上传和剪贴板上传的时候会返回本地路径。

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-vscode-plugin

描述这个错误

picgo在使用浏览文件上传和剪贴板上传的时候会将图片保存到joplin目录下的resources目录中。

禁用 joplin插件后picgo插件功能就正常了。

image

复现错误的步骤

  1. vscode 安装 picgo插件
  2. 安装joplin插件
  3. 编辑md
  4. picgo使用浏览文件上传和剪贴板上传图片。
  5. picgo返回本地路径。图片页保存在本地。

其他上下文

No response

使用当前的 vscode 打开笔记

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-vscode-plugin

您的功能请求是否与问题有关?请描述。

目前的插件点击笔记后,会打开新的 vscode 实例。
由于我按 portable 规范将 vscode 整合成便携版本,不能同时运行两个实例,以避免配置冲突。
所以希望该插件能够在“当前的 vscode 中打开笔记”。

描述您想要的解决方案

在“当前的 vscode 中打开笔记”。

描述您考虑过的替代方案

使用其他的 markdown 外部编辑器,但是明显不方便。

其他上下文

No response

[Feat]: 能不能出一个docker版本?

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-blog

您的功能请求是否与问题有关?请描述。

能不能出一个docker版本?想在群晖上部署这套系统

描述您想要的解决方案

如上

描述您考虑过的替代方案

如上

其他上下文

No response

[Feat]: Publish on open-vsx

app

joplin-vscode-plugin

Is your feature request related to a problem? Please describe.

Hi, at first thanks for your work in this repo! I'm using vscodium and wanted to install the Joplin plugin via extension manager. However, it's not available.

Describe the solution you'd like

This is because the Joplin plugin isn't released on open-vsx.org. It would be very convenient to have it available in the extension manager. Would you consider to publish it as described in https://github.com/eclipse/openvsx/wiki/Publishing-Extensions?

Describe alternatives you've considered

I know it's probably much work for only one user. It might be sufficient for me to install the plugin manually. Could you share where i could get the .vsix file?

Edit: The .vsix file is available for example at https://marketplace.visualstudio.com/items?itemName=rxliuli.joplin-vscode-plugin -> Download Extension

docs: Document optimization progress

  • Add documentation on how to contribute
  • Need to translate and proofread how to share related documents (due to the knowledge curse, it is difficult for me to find some problems that may arise from non-developers)
  • joplin-vscode-plugin: English translation needs to be touched up, most of the previous ones were machine translated
  • The prompt information of joplin-blog cli, specifically: https://github.com/rxliuli/joplin-utils/blob/master/apps/joplin-blog/src/i18n/en.json -- deprecated
  • joplin-blog: need to add Chinese and English documentation, the main goal is to make it available to non-developers -- deprecated
    • zh-CN
    • en-US
  • joplin-batch-web: English translation needs to be added
  • joplin-search-integration: not working on this side for now, can be a bit later
  • joplin-api: need to add Chinese api documentation
  • joplin-vscode-plugin: Description of existing joplin plugin in vscode as an alternative plugin or function
    • Special pastes (e.g. csv)
    • vim editor -- vim plugin
    • notes outline sidebar -- panel with shortcuts or sidebar
    • Formatting -- prettier
    • Persistent folding in the editor -- vscode default support
    • Template functionality -- vscode default support
    • diff comparison -- supported by vscode by default
    • math mode -- natively supported by vscode
    • rich markdown -- plugins
    • Editor Layout -- natively supported
    • Expanding panels -- html code snippets are fine

[Bug]: linux ubuntu 系统中粘贴图片功能无效

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-vscode-plugin

您的功能请求是否与问题有关?请描述。

在vscode粘贴的图片无法与joplin同步。
如下图左边是vscode粘贴的图片,下图右边的joplin中只是显示一串数字,进而在移动端(手机上)也无法显示。
下图的右边joplin的第三张图是我自己在joplin在粘贴的图片,可以直接显示图片,并且在手机上也能看到
image

我的设备信息
Ubuntu20.04
同步是的joplin的坚果云web服务

描述您想要的解决方案

我觉得应该是文件路径的关系

joplin-vscode-plugin中的图片文件代码为![1663421899239](image/testst1/1663421899239.png)
而在原版的joplin中图片代码为![521edd1b8de8a58522b8268e3afa1a6b.png](:/5eae3085df9140bf948a76470dcb74b7)

区别在于小括号前面有个:路径,我觉得这是joplin能同步文件里的图片关键因素。

描述您考虑过的替代方案

不是很清楚joplin同步文件里图片的机制,这也是我第一次用能同步文件的笔记软件,所以没有想法。

其他上下文

No response

[Bug]: 请问打不开md里的链接是bug吗

确认事项

  • 我检查了 FAQ

发生错误的工具/包

joplin-vscode-plugin

描述这个错误

在vscode的预览里想用链接在joplin笔记间跳转,提示无法打开:/xxxxx 没有找到文件,请问这是一个bug吗? 我该如何解决它?

复现错误的步骤

  1. 使用joplin-复制markdown地址添加一个链接
  2. 在vscode中试着打开这个链接

其他上下文

No response

这个插件不能触发代码自动补全等操作吗

确认事项

  • 我愿意实现它

您运行的是我们软件的哪个版本?

joplin-vscode-plugin

您的功能请求是否与问题有关?请描述。

这个本质上还是在joplin中写,vscode只是外部编辑器吗

描述您想要的解决方案

简单问问

描述您考虑过的替代方案

简单问问

其他上下文

简单问一下

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.