A Sublime Text 3 plugin which integrates http://slack.com services.
Search for "Slack" package in Sublime Package Control
Open "Settings - User" from Preferences -> Package Settings -> Slack
{
"team_tokens": {
"Team 1": "team-1-token-goes-here",
"Team 2": "team-2-token-goes-here",
},
"username": "Sublime",
"username_subtext": "via Sublime",
"show_plaform_and_name": true,
"repeat_file_ext": false,
"avatar_url": "http://simionbaws.ro/icons/sublime-48.png"
}
"team_tokens"
(required)"username"
(required)"username_subtext"
(optional)"show_platform_and_name"
setting"show_platform_and_name"
setting is false
, Slack adds the default subtext "bot", e.g., "myUser (bot)""show_platform_and_name"
(optional)true
true
and no setting is given for username_subtext
, will use your name and your platform as the subtext to the username, e.g. "myUser (simion, linux)""repeat_file_ext"
(optional)false
true
, the name of the file being uploaded with have the extension repeated., e.g. script.py
is uploaded as script.py.py
.script.py
shows up in most places in Slack as just having the filename script
.
With this option set to true, it would show up as script.py
in Slack, at the expense of having the actual uploaded filename as script.py.py
"avatar_url"
(required)@user
are sent via IM (private message) rather than to that user's slackbot channel.
Added "repeat_file_ext"
and "username_subtext"
optionsIf you have any suggestions, please leave a reply here: http://simionbaws.ro/sublime-text-3-slack-integration-plugin/
Please use github issues system: https://github.com/simion/sublime-slack-integration/issues
This plugin is constantly being upgraded as the slack.com API team releases new features or fixes existing bugs. If you want to contribute, feel free to fork and make a pull request. The code must pe PEP8 compliant to be accepted (or at least close to that)
I like beer. So if you'd like to support the continuous development of this plugin, you could buy me a beer: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NNPZNQULPETD4
Grab message from user input
Receiver selection
Direct message sending, skips channel/user/group selection
Send message directly to user
Send message to channel
Example of received message
Example of uploaded file - WITHOUT "repeat_file_ext"
setting
Example of uploaded file - WITH "repeat_file_ext"
setting (notice the .py
)
Sidebar right-click
Quick menu