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

feat: Enable Text Editor for Unknown file #172

Closed
wants to merge 2 commits into from

Conversation

Sakura-Byte
Copy link

Enable Text Editor for Unknown file, while making Download stays at the first place for Unknown files.

(close: alist-org/alist#6417)

Sakura-Byte and others added 2 commits May 11, 2024 23:07
Enable Text Editor for Unknown file, while making Download stays at the first place for Unknown files.

(close: alist-org/alist#6417)
@Sakura-Byte
Copy link
Author

As alist backend doesnt support anytype proxy,
AND modify the backend to remove the limit would be a breaking change,
This simple PR would be closed. If you have any idea, please leave a reply.

@Sakura-Byte
Copy link
Author

Sakura-Byte commented May 11, 2024

I think make a option to enable AnyType Proxy in the config/admin console may be a solution.
What If we add a check for "enable_anytype_proxy" in the conf/admin console in the "server\handles\down.go" of backend AND "src\pages\home\previews\index.ts" of the frontend to display Text Editor?
I dont know if checking the status of the option in the frontend is feasible.
I need your decision, @xhofe. Thanks a lot. And I hope this wont interrupt your work.

@xhofe
Copy link
Member

xhofe commented May 12, 2024

We could consider adding wildcards to text file types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

希望添加对无后缀文件的预览选项
3 participants