Skip to content

Instantly share code, notes, and snippets.

@dantonnoriega
Last active July 11, 2016 17:54
Show Gist options
  • Save dantonnoriega/0ca9c3a04a3ed6592f134313d3124cf3 to your computer and use it in GitHub Desktop.
Save dantonnoriega/0ca9c3a04a3ed6592f134313d3124cf3 to your computer and use it in GitHub Desktop.
Necessary keymaps to make the sublime plugin `send_magrittr_pipe.py` work correctly. REQUIRES SEND TEXT PLUS. Find the sublime plugin here: https://gist.github.com/ultinomics/49e99cc5b905d96f15af25e07a14935b
[
// search forward and backwards for pipes
{
"keys": ["super+enter"], "command": "send_magrittr_pipe",
"context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "%<>%|<>%|%>%|>%|%", "match_all": false },
{ "key": "selector", "operator": "equal", "operand": "source.r" }
]
},
{
"keys": ["super+enter"], "command": "send_magrittr_pipe",
"context":
[
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^.*%<>%|^.*%<>|^.*%>%|^.*%<|^.*%", "match_all": false },
{ "key": "selector", "operator": "equal", "operand": "source.r" }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment