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

Add plugin API openMobileFileById #9738

Closed
frostime opened this issue Nov 24, 2023 · 2 comments
Closed

Add plugin API openMobileFileById #9738

frostime opened this issue Nov 24, 2023 · 2 comments
Assignees
Milestone

Comments

@frostime
Copy link
Contributor

frostime commented Nov 24, 2023

In what scenarios do you need this feature?

近期更新后, createdDailyNote API 的实现发生了变化。

export const fetchNewDailyNote = (app: App, notebook: string) => {

image

openMobileFile 方法没有对外开放,导致无法通过插件在移动端打开文档。frostime/siyuan-dailynote-today#179

Describe the optimal solution

新的API,可以在移动端打开指定 id 的文档。

Describe the candidate solution

No response

Other information

No response

@Vanessa219
Copy link
Member

fetchNewDailyNote, openMobileFileById, openFileById 这几个都没开放

@frostime
Copy link
Contributor Author

fetchNewDailyNote, openMobileFileById, openFileById 这几个都没开放

这几个是没开放,我是自己实现,通过访问后端 createDailyNote 然后调用 openTab 打开对应的日记。

但是在移动端目前缺少一个打开文档的 API,在 createDailyNote API 的行为改变之后,无法通过程序在移动端打开文档了。

@Vanessa219 Vanessa219 changed the title 前端API:移动端打开 File Add plugin method openMobileFileById Nov 24, 2023
@Vanessa219 Vanessa219 self-assigned this Nov 24, 2023
@Vanessa219 Vanessa219 added this to the 2.11.0 milestone Nov 24, 2023
Vanessa219 added a commit that referenced this issue Nov 24, 2023
@88250 88250 changed the title Add plugin method openMobileFileById Add plugin API openMobileFileById Nov 25, 2023
Vanessa219 added a commit to siyuan-note/plugin-sample that referenced this issue Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants