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

Tab​Nuker​Nuker

Fix sublime text's broken spaces indentation

Labels indentation

Details

Installs

  • Total 144
  • Win 81
  • OS X 40
  • Linux 23
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 0 1 0 2 0 0 0 0 0 1 2 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0
OS X 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

TabNukerNuker

Sublime text is an incredibly popular text editor. The first thing I noticed when I started using it, was that it's a basket full of hacks.

Spaces for indentation is the single most popular indentation method across all languages (With the notable exception of go) and in sublime text it's implemented as one of the dirtiest hacks of all time.

As a result, any attempt to use a real tab will be thwarted.

  • The default “Insert tab” command inserts spaces
  • Using sublime TextCommands to duplicate text with tabs in them will change them into spaces
  • Anything you paste in containing tabs will be changed to spaces
  • Anything you paste in containing tabs will be changed to spaces
  • Sublime text's indentation settings will mangle your pastes
  • This is perfectl͝y̡ n̵orma̶l̵ ̢f̷o҉r a text̶ ̡e̢di͘͡͡t͏̵o̕r ͘͟a̸͟n̸̨d̸̶ s̷͡ho̶ul̨͞d͢ ͝n̡o̸t҉̢͢ ́͘b͎̤̆̓̽ͧȇ̠͙͖̼̻͉̫̦̱ͣ̉͐̅̔͗̉̀͜ ̡̫̝̹̳̲͎̊́͌q̶͓̤͚̻̤̩͎̈̄͊̒̽̕͡ṷ̖̟̦̻̟̜͍͇̓̽ͤ̋̔̐͜ê̓ͪ̆ͭͥ͏̶̫̱̺s̲̱̦̱͉͙̫̐͋ͨͤ̅͐ͩ͜͢t̨̛̰͙͇̲̮̤͒̂i̢̠͐̐͆̿ͫ͟͞o̱̘̻͓̼͍ͤͦ͘n͂͌͟͏̮͎̘̲̜ĕ̹̝̳̪͎͇̱ͦ͊ͧ̂d̨͋͒ͨ̃ͮ̀҉̠̪̤̫͈̱̝͙̞

This is unacceptable for a text editor, and this plugin fixes it without breaking spaces for indentation