Re: Patch to add "exit copy mode when scrolling past bottom" + option

2015-05-03 Thread Nicholas Marriott
scroll_region_* are for something else (the scroll region). This would need a new format. Which would be a reasonable solution. On Sun, May 03, 2015 at 04:26:18PM +0200, Enrico Ghirardi wrote: > On Sun, May 3, 2015 at 1:28 AM, Thomas Adam wrote: > > I haven't tested this, but I don't think this

Re: Patch to add "exit copy mode when scrolling past bottom" + option

2015-05-03 Thread Enrico Ghirardi
On Sun, May 3, 2015 at 1:28 AM, Thomas Adam wrote: > I haven't tested this, but I don't think this patch is needed, given > something like: > > bind -n WheelDownPane if -Ft= > "#{?pane_in_mode,#{?scroll_region_lower},,},," "send c-m" I'm not sure if it's only me, but #{scroll_region_lower} al

Re: [PATCH] Window reference printable flag/format option

2015-05-03 Thread Thomas Adam
On Sun, May 03, 2015 at 09:08:51AM +0100, Nicholas Marriott wrote: > Possibly you should just add the format and then add > #{?window_references,+,,} to window-status-format yourself rather than > making it a new fixed flag. Yeah, fair enough. I've done this, and hence this leaves an extra space

Re: running a bash function from with in tmux.

2015-05-03 Thread Marcel Partap
> I have a user defined bash function which takes one string parameter > and does some operation on that string. i want to be able to call this > function from with-in tmux and also pass the parameter from tmux > itself. how can i achieve that ? You can invoke bash with a command s

Re: [PATCH] Window reference printable flag/format option

2015-05-03 Thread Nicholas Marriott
Hi format_defaults_window can't rely on ft->s being set. Perhaps you want to put it in format_defaults_winlink, although check if that always has the session. I don't think it's good that every window in a grouped session should suddenly grow a +. Possibly you should just add the format and then