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

支持设置编辑器只读模式 #2648

Closed
Mrxiang-Plus opened this issue Aug 18, 2021 · 13 comments
Closed

支持设置编辑器只读模式 #2648

Mrxiang-Plus opened this issue Aug 18, 2021 · 13 comments
Assignees
Labels
Milestone

Comments

@Mrxiang-Plus
Copy link

In what scenarios do you need this function?

阅读模式/文件锁

在阅读模式/文件锁下,文件只能读,不能修改
因为有时候读笔记没有修改的意愿,不小心的拖动就导致某些改动

Describe the optimal solution

方案一:阅读模式,所有文件只能读
方案二:文件锁,可以对指定文件进行加锁/解锁

Other information

个人觉得,使用场景还是蛮多的

@88250 88250 changed the title 阅读模式/文件锁功能 只读预览模式 Aug 19, 2021
@88250
Copy link
Member

88250 commented Aug 19, 2021

感谢反馈,后期考虑。

@88250 88250 added this to the backlog milestone Sep 1, 2021
@88250 88250 added the Feature label Sep 1, 2021
@88250 88250 removed this from the backlog milestone Oct 13, 2021
@Zuoqiu-Yingyi
Copy link
Contributor

目前可以使用 导出预览模式 先顶顶

@TankNee
Copy link

TankNee commented Apr 16, 2022

移动端很需要这样的只读功能。

@88250
Copy link
Member

88250 commented Apr 17, 2022

@TankNee 移动端默认就是只读的。

@TankNee
Copy link

TankNee commented Apr 17, 2022

@88250 我在iPad上使用思源笔记的时候会直接进入编辑模式。

@Zuoqiu-Yingyi
Copy link
Contributor

@TankNee 移动端默认就是只读的。

貌似还能通过块标拖动

@88250
Copy link
Member

88250 commented Apr 18, 2022

@TankNee 哦,Pad 端和桌面一样,没有算作移动端。

@Mrxiang-Plus
Copy link
Author

我觉得单独的文件锁,是个比较好的方案。
我去研究一下代码实现。

@joyhu
Copy link

joyhu commented Sep 28, 2022

In what scenarios do you need this function?

阅读模式/文件锁

在阅读模式/文件锁下,文件只能读,不能修改 因为有时候读笔记没有修改的意愿,不小心的拖动就导致某些改动

Describe the optimal solution

方案一:阅读模式,所有文件只能读 方案二:文件锁,可以对指定文件进行加锁/解锁

Other information

个人觉得,使用场景还是蛮多的

非常需要此功能,一直以来都想找一个笔记软件,即可以离线使用(经常在机房处理故障,需要截图或记录信息),这些问题思源现在都已经可以完善的解决,但还需要将自己本地整理好的一些笔记同步到互联网上的思源笔记作为知识库共享,但是现在是只要能打开就能编辑,这就非常麻烦。

@88250
Copy link
Member

88250 commented Sep 28, 2022

@joyhu Docker 部署的话看下内核 readonly 参数。

@ballghost
Copy link

这个功能啥时候支持啊,都一年多了,经常无意间编辑了都不知道

@88250
Copy link
Member

88250 commented Oct 9, 2022

@ballghost 近期版本会开展。

@88250 88250 changed the title 只读预览模式 支持设置只读预览模式 Oct 9, 2022
@88250 88250 added this to the 2.4.0 milestone Oct 9, 2022
@terwer
Copy link
Contributor

terwer commented Oct 10, 2022

终于开始了,太需要这个功能了,D大加油💪🏻。

@88250 88250 changed the title 支持设置只读预览模式 支持设置编辑器只读模式 Oct 11, 2022
Vanessa219 added a commit that referenced this issue Oct 11, 2022
Vanessa219 added a commit that referenced this issue Oct 11, 2022
Vanessa219 added a commit that referenced this issue Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants