On Thu, Feb 18, 2010 at 02:59:44PM -0800, Robin Lee Powell wrote: > On Thu, Feb 18, 2010 at 10:51:06PM +0000, Nicholas Marriott wrote: > > On Thu, Feb 18, 2010 at 02:36:06PM -0800, Robin Lee Powell wrote: > > > On Thu, Feb 18, 2010 at 02:25:08PM -0800, Micah Cowan wrote: > > > > > Now we just need the rotating behaviour of J (see my other > > > > > post). > > > > > > > > Well, you could of course still rig that up through run-shell, > > > > and some sort of flag-file. But personally, I don't like the > > > > rotating behavior of J: better to have separate bindings for > > > > separate modes, so you only have to hit the binding once to > > > > get the behavior you want (and don't have to figure out what > > > > mode you're already in). The shell solution strikes me as the > > > > most flexible solution, since there are many things you just > > > > wouldn't think to hardcode > > > > > > Copying from my other post: > > > > > > The other aspect to it is having a key that can shift between > > > the various options. My idea there is to store the > > > pass-through-before-pasting command in a (window?) option, and > > > make a tmux command that takes an option name and a list of > > > possible values. Every time it's called, it checks for the > > > current value in the list, and moves to the next one. This > > > would be a fully general solution that people could use for > > > other things. > > > > This doesn't need a special command, just make set-option and > > friends rotate though the options if no argument is given, like it > > does for boolean options. > > I'm lost; what options would it rotate through, exactly, and how > would that be determined?
Eg mode-keys has options "vi" and "emacs", "setw mode-keys" w/o a value could rotate through them. Any new options could work similarly. Or are you thinking of for user-defined option values? > > -Robin > > -- > They say: "The first AIs will be built by the military as weapons." > And I'm thinking: "Does it even occur to you to try for something > other than the default outcome?" See http://shrunklink.com/cdiz > http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users