How to pipe input to sublimetext on linux?

Assuming Sublime still doesn’t support opening STDIN, a straightforward solution is to dump the output to a temporary file, open the file in sublime, and then delete the file. Say you create a script called tosubl in your bin directory as follows: #!/bin/bash TMPDIR=${TMPDIR:-/tmp} # default to /tmp if TMPDIR isn’t set F=$(mktemp $TMPDIR/tosubl-XXXXXXXX) cat … Read more

Sublime Text 2 – Auto-complete/suggest from other files

I’ve implemented the same idea and published it as a package so it can be installed directly from within Sublime with Package Control: Press ctrl+shift+p (Windows, Linux) or cmd+shift+p (OS X) to open the Command Pallete. Start typing ‘install’ to select ‘Package Control: Install Package’, then search for AllAutocomplete and select it. Code is here: … Read more

Highlighting comments containing TODO in Sublime Text 2 [closed]

Sublime Linter should do the trick. You can add underlining for custom static text. All you need is the Sublime Package Manager: Press Ctrl/Cmd+Shift+P Search for “Package Control: Install Package” Search for “SublimeLinter” As stated by jon in the first comment: For ST3, the SublimeLinter-annotations plugin highlights TODO, FIXME etc.

Sublime Text on Ubuntu 14.04 – Keeps attempting to remove it

This page in Ubuntu’s bug tracker describes this particular situation. Apparently this is a known bug with 14.04, possibly because of a regression with GLib, or a mismatch between GLib and GTK (so says one of the commenters). Nothing is trying to remove Sublime, it’s just an error in a programming library. If nothing is … Read more

How do I add Sublime Text 2 keybindings?

If you just want to literally insert those characters, you can set up your “User Key Bindings” like this: [ { “keys”: [“ctrl+.”], “command”: “insert”, “args”: {“characters”: “<%= %>”} } ] You can use the Default Key Bindings file as an example for possible key binding commands. Both User and Default are located in Sublime … Read more