Sublime Forum

Drag Commands? Only Python for Commands?

#1

Hi,

  1. Could one write Drag Commands like in Textmate?
  2. Could one only use Python to write Commands? In Textmate you can write commands in more languages like PHP.

Thanks.

Best regards, S

0 Likes

#2

push :frowning:

0 Likes

#3

push :smiling_imp: :smiling_imp:

0 Likes

#4

I don’t know what drag commands are in Textmate, can you explain?

The Sublime API only allows you to write new commands in Python. That Python code can call command line programs like php.

0 Likes

#5

In Textmate when you drag a file from the desktop or wherever onto an open file you can define a command on how to handle the situation. More:
manual.macromates.com/en/drag_commands.html

That Python code can call command line programs like php.

That would defeat the purpose. So just Python. Are the Docs for the Sublime Python version still missing?

0 Likes