Re: if-shell 'tmux has-session' hangs

2011-04-29 Thread Nicholas Marriott
If you kill tmux entirely and export EVENT_NOEPOLL=1 before starting it again does the problem go away? On Thu, Apr 28, 2011 at 09:43:12AM -0700, Randy Stauner wrote: >I was trying to source a conf file to create default windows, >but it seems that when doing >if-shell "tmux has-sessi

Re: Mouse issue

2011-04-29 Thread Nicholas Marriott
Hi I don't follow, what is the problem? If you turn on mouse-select-pane it eats the scroll wheel button events? I think it would be better for scroll wheel to select panes not windows. Maybe it is about time we had mouse-button-1-command options etc... On Thu, Apr 28, 2011 at 05:33:41PM +0200,

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Nicholas Marriott
I'd like to see copy-line-to-end like C-k in emacs. On Thu, Apr 28, 2011 at 08:11:53AM -0700, Randy Stauner wrote: >With: >bind-key Y send-keys '^' Space '$' Enter >I can hit prefix + Y in copy-mode and get it to copy the line. >Not an optimal solution, but an acceptable workarou

Re: Highlighting in vi copy mode

2011-04-29 Thread Nicholas Marriott
The whole search stuff wasn't trivial to add so it doesn't really match either emacs or vi very well. If you want to do it then go for it, emacs also highlights search terms during interactive searches so if tmux could do the same that'd be cool. On Wed, Apr 27, 2011 at 09:11:32PM +0530, Raghave

Re: Mouse issue

2011-04-29 Thread marcel partap
> I don't follow, what is the problem? If you turn on mouse-select-pane it > eats the scroll wheel button events? no, it seems to alter them. ncmpcpp reacts on wheel events, less not. > I think it would be better for scroll wheel to select panes not > windows. The patch only enables mouse wheel wi

Re: selection gets cleared when cursors blinks

2011-04-29 Thread Nicholas Marriott
Applied to OpenBSD, thanks. On Wed, Apr 27, 2011 at 10:20:54AM +0200, LEVAI Daniel wrote: > On Wed, Apr 27, 2011 at 08:28:53 +0100, Nicholas Marriott wrote: > > Doh, try this: > > > > Index: status.c > > === > > RCS file: /cvs/src/u

Re: if-shell 'tmux has-session' hangs

2011-04-29 Thread Randy Stauner
yes it does. i also had my first experience of tmux completely not responding... (only happened once so far). since i have "tmux list-sessions" in my .bashrc I had to open a new xterm with a different shell (dash) just to be able to issue a "killall tmux". Was this hang related to the NOEPOLL or s

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Randy Stauner
is this patch missing something? it looks awfully short and doesn't make sense to me... it just looks like a line was moved up. It doesn't apply to sf cvs and if i just add the line it won't compile. Is there some other patch i need to apply first, or is this for a different branch or is the patch

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Randy Stauner
Very nice! I will use this. I must admit I still find myself too lazy to want to hit Enter afterwards, though, since this only selects the lines. I did think the feature might be useful, though, so I changed your function to 'select-line' and defined 'copy-line' to additionally copy the selection

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Randy Stauner
I added copy-end-of-line on top of the last two patches. In copy mode it selects from the cursor to the end of the line, then copies and exits. Is that what you were thinking Nicholas? I tested it in vi and emacs mode, it works for me. I bound it to D (vi) and C-k (emacs) to be consistent with edi