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

Clicking on the asset should open with the default program #10650

Closed
3 tasks done
TCOTC opened this issue Mar 19, 2024 · 10 comments
Closed
3 tasks done

Clicking on the asset should open with the default program #10650

TCOTC opened this issue Mar 19, 2024 · 10 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Mar 19, 2024

点击资源文件应使用默认程序打开

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

因为浏览器不支持很多格式的文件,所以目前点击资源文件(大多数情况下)会打开浏览器下载。要使用默认程序打开还要打开二级菜单,非常麻烦。

思源笔记 3.0.4 点击附件弹出浏览器下载 - 链滴

升级之后打开笔记内的 excel 文件变成默认浏览器下载了 - 链滴

Expected result

至少在桌面端,点击资源文件应使用默认程序打开

Screenshot or screen recording presentation

No response

Version environment

- Version: v3.0.4
- Operating System: Windows 10

Log file

More information

No response

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 19, 2024

#10604

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 19, 2024

#10641

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 19, 2024

还有个 BUG :无论使用哪种方式点击,都会先唤起浏览器下载。而打开菜单点击就正常

image

@88250 88250 added the Bug label Mar 19, 2024
@88250 88250 added this to the 3.0.5 milestone Mar 19, 2024
@88250 88250 changed the title 点击资源文件应使用默认程序打开 Clicking on the asset should open with the default program Mar 19, 2024
@88250 88250 added Enhancement and removed Bug labels Mar 19, 2024
@5kyfkr
Copy link

5kyfkr commented Mar 19, 2024

另外在移动端有没可能实现直接跳转打开word excel ppt等文件?现在也是先下载到浏览器才能打开,在平板端可以内部打开pdf,手机端pdf也是跳到浏览器下载了

@88250
Copy link
Member

88250 commented Mar 19, 2024 via email

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 19, 2024

另外在移动端有没可能实现直接跳转打开word excel ppt等文件?现在也是先下载到浏览器才能打开,在平板端可以内部打开pdf,手机端pdf也是跳到浏览器下载了

手机端只能浏览器统一对接

能不能实现点击之后弹出手机自带的「打开方式...」界面?

@88250
Copy link
Member

88250 commented Mar 19, 2024

@TCOTC

能不能实现点击之后弹出手机自带的「打开方式...」界面?

暂时不确定如何实现,请单独开一个 issue 记录。

@Vanessa219
Copy link
Member

目前为了保持一致,click 为右侧打开;alt+click 为当前页签打开;ctrl+click 为打开当前文件所在的文件夹;shift+click 为使用默认程序打开。其中:

  1. 基于以上原则,如果为思源内部文件且后缀不为 [".apng", ".ico", ".cur", ".jpg", ".jpe", ".jpeg", ".jfif", ".pjp", ".pjpeg", ".png", ".gif", ".webp", ".bmp", ".svg", ".avif", ".mp3", ".wav", ".ogg", ".m4a", ".mov", ".weba", ".mkv", ".mp4", ".webm", ".pdf"] 的, click、alt+click、shift+click 都为使用默认程序打开
  2. 如果不是思源内部资源文件则使用浏览器打开
  3. 如果无法调用默认程序打开、无法打开所在文件位置的则由各端使用对应的方式进行打开。

Vanessa219 added a commit that referenced this issue Mar 20, 2024
@luo-chuan
Copy link

目前为了保持一致,click 为右侧打开;alt+click 为当前页签打开;ctrl+click 为打开当前文件所在的文件夹;shift+click 为使用默认程序打开。

V大,我想让ctrl+click为默认程序打开

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 24, 2024

目前为了保持一致,click 为右侧打开;alt+click 为当前页签打开;ctrl+click 为打开当前文件所在的文件夹;shift+click 为使用默认程序打开。

V大,我想让ctrl+click为默认程序打开

请看 #10641

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

5 participants