textmate / css.tmbundle

TextMate support for CSS
54 stars 36 forks source link

Fix for the Insert Color command #8

Closed fredb closed 11 years ago

fredb commented 11 years ago

Workaround to make the Insert Color command work again. It uses "Applescript Runner" to launch the picker as TM2 can't send an applescript command to itself for now (see this issue).

Beside that, the only differences are:

Due to these changes, the command is self contained and doesn't use the TextMate::UI.request_color() anymore.

The commit messages aren't precise enough, when I stupidly started with the command alone they were obvious, but I had to export and patch the bundle to send the pull request. Sorry about that. Feel free to do what it takes to clean it if you want.

infininight commented 11 years ago

Pulled thanks. Finessed the commits a bit to be cleaner. :)