Last active
July 11, 2016 17:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
// 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