Skip to content

Support for Sublime3#5

Open
cater wants to merge 2 commits intoAxxL:masterfrom
cater:master
Open

Support for Sublime3#5
cater wants to merge 2 commits intoAxxL:masterfrom
cater:master

Conversation

@cater
Copy link

@cater cater commented Nov 7, 2013

Sublime3.0中通过view.is_read_only接口无法获得文件是否是只读,我修改了判断文件是否只读的接口,以支持Sublime3.0

@AxxL AxxL closed this Nov 17, 2013
@AxxL AxxL reopened this Nov 17, 2013
@AxxL
Copy link
Owner

AxxL commented Nov 17, 2013

Google Translate: Sublime3.0 interfaces can not be obtained through view.is_read_only whether the file is read-only, I modified the judgment whether the file read-only interface to support Sublime3.0

Funny, that I can't reproduce that with build 3047.

@AxxL
Copy link
Owner

AxxL commented Nov 17, 2013

Does your pull reqest include code for changing the os-attributes of that file? My code never intended that. I only want to to change the view (buffer, file reperesentation of the view) to prevent an unintended editing. Like viewing a log-file which updates itself but must not edited by me. I don't want to change the attributes of the file in the operating system itself.

@cater
Copy link
Author

cater commented Nov 18, 2013

Yes, in sublime2.0 calls the view.set_read_only changes the os-attributes ot that file.But not in sublime3.0.
I need to use this feature, so I made some changes to the code

@FranklinYu
Copy link

I think this pull request can be closed? Current version works in Sublime Text 3 without issue, and we do have the "Readonly" in status bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants