Re: new-session vs. new-session -d

2010-01-23 Thread Nicholas Marriott
I was rambling a bit when I wrote this (had just got home), I'll add your suggestion to the todo list, but if you want to send me the changes it'd be great :-). On Sat, Jan 23, 2010 at 02:42:42AM +, Nicholas Marriott wrote: > On Fri, Jan 22, 2010 at 04:21:06PM -0500, Sudish Joseph wrote: > >

[Patch] Using C-y/C-e for scroll-up/down in vi-mode

2010-01-23 Thread Micah Cowan
Since October, Ctrl-Up and Ctrl-Down allows the user to scroll up and down by single lines. The vi-copy mode provides an additional set of bindings for this, to K and J. Vi has had this feature bound to C-y and C-e for ages, so I've written a patch to use these instead. Well, "instead" as far as t

Re: mouse support

2010-01-23 Thread Ankur Nayak
> > A related question. Is there a way to switch between panes with home key > shortcuts? For example, I'd like to switch to the pane to the right of my > current pane using C-t C-l. Similarly for up/down/left panes using C-t C-k, > C-j, C-h keys. > > > On Fri, Jan 22, 2010 at 9:02 PM, Nicholas M

Re: mouse support

2010-01-23 Thread Nicholas Marriott
Someone is working on a diff to do this. On Sat, Jan 23, 2010 at 11:52:56AM -0500, Ankur Nayak wrote: >A related question. Is there a way to switch between panes with home key >shortcuts? For example, I'd like to switch to the pane to the right of my >current pane using C-t C-l. Simil

Re: Patch for square copy.

2010-01-23 Thread Nicholas Marriott
Hi Thanks for updated diff, Comments inline. > Index: mode-key.c > === > RCS file: /cvsroot/tmux/tmux/mode-key.c,v > retrieving revision 1.36 > diff -u -r1.36 mode-key.c > --- mode-key.c4 Dec 2009 22:14:47 - 1.36 >

Re: [Patch] Using C-y/C-e for scroll-up/down in vi-mode

2010-01-23 Thread Nicholas Marriott
Committed, thanks! On Sat, Jan 23, 2010 at 03:59:24AM -0800, Micah Cowan wrote: > Since October, Ctrl-Up and Ctrl-Down allows the user to scroll up and > down by single lines. The vi-copy mode provides an additional set of > bindings for this, to K and J. > > Vi has had this feature bound to C-y

Re: man page updates (was Re: launch tmux with several window and command)

2010-01-23 Thread Nicholas Marriott
Hi Thanks for the diff, > Index: tmux.1 > === > RCS file: /cvsroot/tmux/tmux/tmux.1,v > retrieving revision 1.221 > diff -u -r1.221 tmux.1 > --- tmux.119 Jan 2010 00:46:30 - 1.221 > +++ tmux.121 Jan 2010 09:33:23 -00

Re: [Patch] Using C-y/C-e for scroll-up/down in vi-mode

2010-01-23 Thread Micah Cowan
Micah Cowan wrote: > Since October, Ctrl-Up and Ctrl-Down allows the user to scroll up and > down by single lines. The vi-copy mode provides an additional set of > bindings for this, to K and J. > > Vi has had this feature bound to C-y and C-e for ages, so I've written a > patch to use these inste

server crash bug

2010-01-23 Thread Robin Lee Powell
Playing with link-window to try to understand it, I discovered this in HEAD: tmux new-session tmux link-window exit [lost server] -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

Re: server crash bug

2010-01-23 Thread Nicholas Marriott
Pretty simple, please test: Index: server-fn.c === RCS file: /cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.33 diff -u -p -r1.33 server-fn.c --- server-fn.c 3 Jan 2010 12:51:05 - 1.33 +++ server-fn.c 23 Jan 2010 1

Re: server crash bug

2010-01-23 Thread Nicholas Marriott
In fact this is probably safer: Index: server-fn.c === RCS file: /cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.33 diff -u -p -r1.33 server-fn.c --- server-fn.c 3 Jan 2010 12:51:05 - 1.33 +++ server-fn.c 23 Jan 20

Re: man page updates (was Re: launch tmux with several window and command)

2010-01-23 Thread Robin Lee Powell
On Sat, Jan 23, 2010 at 06:15:00PM +, Nicholas Marriott wrote: > Hi > > Thanks for the diff, > > > Index: tmux.1 > > === > > RCS file: /cvsroot/tmux/tmux/tmux.1,v > > retrieving revision 1.221 > > diff -u -r1.221 tmux.1 > > --- t

Re: man page updates (was Re: launch tmux with several window and command)

2010-01-23 Thread Robin Lee Powell
Hold off on that diff; I'm going to see about incorporating Sudish's suggestions. -Robin On Sat, Jan 23, 2010 at 12:02:52PM -0800, Robin Lee Powell wrote: > On Sat, Jan 23, 2010 at 06:15:00PM +, Nicholas Marriott wrote: > > Hi > > > > Thanks for the diff, > > > > > Index: tmux.1 > > > =

Re: server crash bug

2010-01-23 Thread Robin Lee Powell
Bizarrely, that wouldn't apply with patch; had to do it manualy. Anyhoo, yep, looks fine! -Robin On Sat, Jan 23, 2010 at 07:27:30PM +, Nicholas Marriott wrote: > In fact this is probably safer: > > Index: server-fn.c > === > RC

Re: new-session vs. new-session -d

2010-01-23 Thread Robin Lee Powell
On Sat, Jan 23, 2010 at 02:42:42AM +, Nicholas Marriott wrote: > On Fri, Jan 22, 2010 at 04:21:06PM -0500, Sudish Joseph wrote: > > Nicholas Marriott writes: > > > On Thu, Jan 21, 2010 at 01:33:56AM -0800, Robin Lee Powell wrote: > > >> Why does "tmux new-session vim \; split-window \; attac

Re: new-session vs. new-session -d

2010-01-23 Thread Robin Lee Powell
On Fri, Jan 22, 2010 at 04:21:06PM -0500, Sudish Joseph wrote: > Nicholas Marriott writes: > > On Thu, Jan 21, 2010 at 01:33:56AM -0800, Robin Lee Powell wrote: > >> Why does "tmux new-session vim \; split-window \; attach" not > >> work? Why does it need the -d, I mean? Seems like attaching

Re: server crash bug

2010-01-23 Thread Nicholas Marriott
Committed to OpenBSD, will be in SF later. Thanks. On Sat, Jan 23, 2010 at 12:16:37PM -0800, Robin Lee Powell wrote: > Bizarrely, that wouldn't apply with patch; had to do it manualy. > > Anyhoo, yep, looks fine! > > -Robin > > On Sat, Jan 23, 2010 at 07:27:30PM +, Nicholas Marriott wrote:

Re: new-session vs. new-session -d

2010-01-23 Thread Nicholas Marriott
> Index: tmux.1 > === > RCS file: /cvsroot/tmux/tmux/tmux.1,v > retrieving revision 1.222 > diff -u -r1.222 tmux.1 > --- tmux.122 Jan 2010 17:28:34 - 1.222 > +++ tmux.123 Jan 2010 20:37:14 - > @@ -111,6 +111,8 @@ >

Bug and fix: Graphic glitch on scroll-up when cursor on last line

2010-01-23 Thread Micah Cowan
To reproduce (in HEAD): In a tmux window running the shell, type "seq 1 100", letting the output scroll the screen (if you've got more than 100 lines on your term, then give a higher value to seq's second arg). ... 97 98 99 100 micah$ Enter copy-mode, leaving the cursor still at the last line, a