Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Rotate shell words widget



On May 11, 10:39am, Sebastian Gniazdowski wrote:
}
} $(( 1 )) $( 2 ) 3
} 
} becomes
} 
} 3 $(( 1 )) $( 2 )

What common usage did you have in mind for this?

I presume rotate acts on $RBUFFER and rotate-backwards works on $LBUFFER
(approximately).

Might want to have $NUMERIC mean something, e.g. <ESC 2 ESC r> rotates
the 2nd word after the cursor, <ESC - ESC 2 ESC r> rotates the 2nd
word counting back from the end of the line; invert for <ESC 2 ESC R>.

Or not.  Whether that's useful depends on why you want this in the first
place (hence my first question).



Messages sorted by: Reverse Date, Date, Thread, Author