Hi,
I'd like to know how I can assign the "Ctrl+Shift+M" shortcut to the forthcoming pipe-operator in R, "|>"? I.e. I'd like to make the shortcut Ctrl+Shift+M insert |>.
Is this currently possible in RStudio?
Thanks in advance
Daniel
I use a snippet, “mag”. Tools, global, code, edit snippets (down on the bottom in teeny font) for the Magritte version. Probably will repurpose it.
We plan to address this in the near term, shortly after 1.4 releases.
opened 09:22AM - 04 Dec 20 UTC
closed 06:07PM - 25 Jan 21 UTC
enhancement
While not a trivial feature request ask, a toggle to have `cmd-shift-M` use the … new native pipe symbol vs {magrittr}'s would be great! The suggestion for an alternate keybinding by @Robinlovelace (in the parallel feature req) for a separate keybinding would be a fine alternative as well, cmd-shift-> (greater than) seems to be available at least on macOS and seems like a pretty good one.
A cosmetic A++ parallel request to this is to figure out why |> does not render ligatured (as a right-facing triangle) as it does in Sublime, iTerm, VS Code, etc. (this may be an un-fixable-by-RStudio QT issue, tho).
The ligature rendering works fine when backtick-quoted or single/double quoted.
<img width="93" alt="image" src="https://user-images.githubusercontent.com/509878/101150005-aebbda00-35ed-11eb-857c-3d4dd181eb81.png">
1 Like
system
Closed
December 30, 2020, 8:34pm
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.