Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add the pipe operator (%>%) in Databricks as a shortcut

Is there a way to incorporate the R pipe operator (%>%) as a shortcut in Databricks?

like image 361
Ian.T Avatar asked Jan 19 '26 12:01

Ian.T


1 Answers

If databricks workspace runs in your browser you may look into adding shortcuts to your browser directly. I have no way to test this with databricks, but if you are running on Google Chrome you may try this extension

https://chromewebstore.google.com/detail/autocontrol-keyboard-shor/lkaihdpfpifdlgoapbfocpmekbokmcfd

It looks like from there you should be able to run a bit of javascript. I am not super familiar with Javascript and this bit of code was generated by ChatGPT:

document.execCommand('insertText', false, '%>%');

This works for me. It looks like the extension offers some pretty advanced interactions. Nice to learn something new too!

enter image description here

like image 164
proffarnsworth Avatar answered Jan 22 '26 04:01

proffarnsworth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!