You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, with a prefix ARG, smart-shift-right will shift to the right with tab-width by ARG times. I'm wondering how useful this would be in practice. In my point of view, often times user who uses this shift function only wants to shift a region by a sort distance, most likely some odd number of spaces. For example, consider below coffee-script snippet,
if I want to align all foos properly with console.log, I can't just hit TAB or use smart-shift because both will shift by even spaces. I could adjust each line one by one, or use rectangle edit, but that requires more keystroke.
On the other hand, if smart-shift only support shifting by even number of space, I don't see much value of using it, because most of the major mode has support of shifting by tab-width already.
Thus may I suggest that instead of shifting by ARG times, shift by ARG spaces with a prefix.
Thanks,
The text was updated successfully, but these errors were encountered:
Fair enough, but we might be willing to take a few trial before decide to change the ARG used for.
First of all, I recommend you take a try with the multiple-cursors @bbatsov, any suggestion?
Currently, with a prefix ARG,
smart-shift-right
will shift to the right withtab-width
byARG
times. I'm wondering how useful this would be in practice. In my point of view, often times user who uses this shift function only wants to shift a region by a sort distance, most likely some odd number of spaces. For example, consider below coffee-script snippet,if I want to align all
foo
s properly withconsole.log
, I can't just hitTAB
or usesmart-shift
because both will shift by even spaces. I could adjust each line one by one, or use rectangle edit, but that requires more keystroke.On the other hand, if smart-shift only support shifting by even number of space, I don't see much value of using it, because most of the major mode has support of shifting by
tab-width
already.Thus may I suggest that instead of
shifting
by ARG times, shift byARG
spaces with a prefix.Thanks,
The text was updated successfully, but these errors were encountered: