Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Centralize cursor
#
# Usage:
# Keybinding: { "keys": ["f1"], "command": "centralize" }
#
# Copyright (C) 2017 Oğuzhan Eroğlu <rohanrhu2@gmail.com>
# The MIT License (MIT)
import sublime_plugin
class CentralizeCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.show_at_center(self.view.sel()[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.