Skip to content

Instantly share code, notes, and snippets.

import sublime
import sublime_plugin
status_key = 'AlwaysShowFilenameOnStatusBar'
class AlwaysShowFilenameOnStatusBar(sublime_plugin.EventListener):
def on_activated(self, view):
global status_key
filePath = view.file_name()
@evanemolo
evanemolo / gist:6046988
Last active December 20, 2015 01:09 — forked from pithyless/gist:1208841

Install Python

$ brew install readline sqlite gdbm --universal
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@evanemolo
evanemolo / SublimeBlockCursor.py
Created October 27, 2012 22:49 — forked from kellishaver/SublimeBlockCursor.py
Sublime Text 2 Block Cursor - outside of Vintage Mode
# Add this file to a directory called SublimeBlockCursor in the Packages directory.
import sublime
import sublime_plugin
class SublimeBlockCursor(sublime_plugin.EventListener):
def view_is_widget(view):
settings = view.settings()
return bool(settings.get('is_widget'))
@evanemolo
evanemolo / launch_sublime_from_terminal.markdown
Created October 27, 2012 15:13 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation