Cross posting from Stack Overflow.
I'm transitioning from RStudio to Positron, and one thing I'm missing about my RStudio setup is an addin that I had installed. I got the idea from @mine, which is to add dashes from where ever you are, up to 80 characters (see original addin code on GitHub). So the addin idenfities where your cursor is in the editor (e.g., column 20), and then adds the appropriate number of dashes so that dashes go all the way to column 80.
Is there a way to create a snippet that will achieve the same thing? I've found solutions for inserting a fixed number of dashes, but I'm looking for something that will allow for a variable number, based on the current cursor location.