Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Neil Sarkar April 06, 2012
file 9 lines (7 sloc) 0.286 kb
1 2 3 4 5 6 7 8
import sublime, sublime_plugin
import os

class CopyPathToClipboard(sublime_plugin.TextCommand):
  def run(self, edit):
    line_number, column = self.view.rowcol(self.view.sel()[0].begin())
    line_number += 1
    sublime.set_clipboard(self.view.file_name() + ":" + str(line_number))
Something went wrong with that request. Please try again.