Closed jonocarroll closed 7 years ago
Just some further thoughts though;
library()
call on it be deleted?library()
calls? What if I have plyr
then dplyr
in there? (actually, I see #2 already highlights this).Thanks Jono. Handling comments is a useful addition!
Unfortunately I don't think the addin can delete the line. This is a limitation of rstudioapi
which I have opened an issue on.
Reordering is tricky. I think it's very hard to please everyone. I thought that at least if it's alphabetical it's easy to then juggle the order to avoid masking issues. But I get your point that if you had already got an order that worked this could be annoying.
Now moves entire lines. :) Fix for leftover empty lines hanging out on deletelines
branch until the related RStudio fix has been in stable for a little while.
I gave this package a go (love it) and noticed it went wonky when I had a comment after my library call, which got orphaned. This PR allows the entire line to be collected and moved, so
ends up as