You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Command that takes the current word or selection and sends it as an arg #201
There's a function runSelectionOrWord that if called with runSelectionOrWord(["t", "head"])) will send t(head(SELECTION)) to the console. It sounds like that would do the job if it were exposed in package.json.
I've been thinking of changing it so you'd call it like with 'before selection' and 'after selection' arguments: runSelectionOrWord("t(head(", "))"). That would enable more control, such as quoting the selection or passing it to a named parameter. Knitting the selection could then be done as discussed here: #155 (comment)
Activity
andycraig commentedon Jan 24, 2020
There's a function
runSelectionOrWordthat if called withrunSelectionOrWord(["t", "head"]))will sendt(head(SELECTION))to the console. It sounds like that would do the job if it were exposed inpackage.json.I've been thinking of changing it so you'd call it like with 'before selection' and 'after selection' arguments:
runSelectionOrWord("t(head(", "))"). That would enable more control, such as quoting the selection or passing it to a named parameter. Knitting the selection could then be done as discussed here: #155 (comment)EDIT: Fixed order of functions
andycraig commentedon Apr 16, 2020
Closed by #237. Thanks again @MilesMcBain!