zeallot icon indicating copy to clipboard operation
zeallot copied to clipboard

Create RStudio addin for %<-%

Open dkahle opened this issue 4 years ago • 2 comments

Simple adding for %<-%. I think I crossed all t's and dotted all i's, but let me know if I've missed something!

dkahle avatar Nov 30 '20 17:11 dkahle

Hello @dkahle, thank you for the pull request. Could you provide a little more context and detail about your PR?

nteetor avatar Dec 17 '20 03:12 nteetor

Sure @nteetor. RStudio has native modifiable hotkeys for the assignment operator <- and the pipe %>% (see Tools > Modify Keyboard Shortcuts...), but there is no similar hotkey for %<-%. This commit allows for the addition of one in the sense that, after installing the update (and maybe reopening RStudio), there will be an option in that modify keyboards shortcut menu allowing users to map %<-% to a hotkey sequence. Does that help? It shouldn't change any behavior of in the package other than making it mappable, but not defaulted to anything.

Here's a link to a (now somewhat dated) overview of RStudio addins, if it helps: https://rstudio.github.io/rstudioaddins/

dkahle avatar Jan 14 '21 16:01 dkahle