Skip to content

Instantly share code, notes, and snippets.

@TheBox193
Last active July 18, 2016 21:26
Show Gist options
  • Save TheBox193/d599e143e1e8e1ec048bd73dba046980 to your computer and use it in GitHub Desktop.
Save TheBox193/d599e143e1e8e1ec048bd73dba046980 to your computer and use it in GitHub Desktop.
Redux Action Sublime Snippets
<snippet>
<content><![CDATA[
export function ${1:action_name}(${2:arguments}) {
return {
type: ${3:type},
payload: {
${2:arguments}
}
};
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>funact</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
export function ${1:action_name}(${2:arguments}) {
return function(dispatch, getState) {
${3}
};
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>funthunk</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@TheBox193
Copy link
Author

Just place them in your /Users/{username}/Library/Application Support/Sublime Text 3/Packages/User folder.
They are activated when typing funthunk and funact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment