ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Toggle the View Read-Only

by AxxL ALL

Toggle a file in Sublime as readonly

Details

Installs

  • Total 4K
  • Win 2K
  • Mac 766
  • Linux 711
Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21
Windows 0 0 0 1 0 0 0 4 1 0 0 1 0 1 0 0 0 0 0 2 1 1 0 0 1 1 0 2 1 0 0 2 0 0 1 3 1 1 0 0 2 2 1 1 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 2 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Toggle readonly state of buffer from context menu for Sublime Text 2 and 3 (beta)

Installation

Install this repository via Package Control Or put the files into a directory in your {sublime}\Data\Packages\ folder

Usage

You have a context-menu on: - the tab - the open files - and direct in the edit area.

If you toggle the readonly, the status bar says: “Buffer {buffername} is set readonly.” and you cannot make any changes.

If you toggle again the status bar says: “Buffer {buffername} is writeable again.” and the file should be editable again.

This tool doesn't change the file properties in the filesystem. It only changes the readonly attribute of the current view.

See: http://www.sublimetext.com/docs/2/api_reference.html#sublime.View

Update

01.03.2013: Toggle Read Only as command: https://github.com/AxxL/sublime-toggle-readonly/pull/1 Update for Sublime 3: https://github.com/AxxL/sublime-toggle-readonly/issues/2

Well, it takes some time…. Thanks for your patience. :)

Link

https://github.com/AxxL/sublime-toggle-readonly