Skip to content

Instantly share code, notes, and snippets.

@alloy-d
Created June 11, 2012 16:53
Show Gist options
  • Save alloy-d/2911223 to your computer and use it in GitHub Desktop.
Save alloy-d/2911223 to your computer and use it in GitHub Desktop.
Issues I have with Sublime Text 2 that I want to solve.

Autopairing

  • Automatic insertion of {} when typing # in strings in Ruby (not in CoffeeScript). This would be fine if those soaked up the next { that is typed, as happens with quotes.
    • Ideal behavior here is treating {} like quotes—only insert the pair when the first is typed.
  • Occasional misinterpretation of typed quotes—they get soaked up into existing quotes instead of being inserted as new quotes.

Spacing

  • Extra spacing is not stripped from blank lines.
    • Fixed by setting trim_trailing_white_space_on_save to true.

Indentation

  • No keyboard shortcut for smart reindentation of a section.
    • ...but = is implemented in Vintage, which is good enough for me.

Vintage

  • R is unimplemented.
  • Tab navigation (gt, gT, 3gt, etc.) is unimplemented.
    • ...but I've gotten used to Cmd-{ and Cmd-} for single-tab navigation.
  • :q (at the very least, for closing a tab) is unimplemented.
    • ...but I've gotten used to Cmd-W.

Miscellaneous

  • Apparently no ack plugin.
  • No way to create and edit a file (currently, I do touch $FILE in a terminal before editing in Sublime).
    • I believe the proper Sublime way of doing this is to just open a new file and then give it a name when you save it. This doesn't fit nicely in my workflow, and there are two issues I have with it: you don't get filetype detection until you've named the file, and it uses the stock system save dialog.
  • No menu option or quick toggle for changing when spaces are shown.

Language-specific

  • CoffeeScript indentation (or lack thereof) sucks.

Color Schemes

  • Made of Code is nice, but the current line highlight is too jarring.
    • lineHighlight was set to fully-transparent black. I set it to #45c1ea33, which looks to be a bit nicer.
  • Bad Wolf is quite nice, but there's no Sublime port.
@muchzill4
Copy link

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