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 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} always
> returns the same value
> (session height - 1) making that snippet useless. Also from the
> documentation for
> me it isn't really clear what #{scroll_region_*} should expand to and 
> represent.
> 
> --
> Enrico Ghirardi
> 
> --
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> ___
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


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} always
returns the same value
(session height - 1) making that snippet useless. Also from the
documentation for
me it isn't really clear what #{scroll_region_*} should expand to and represent.

--
Enrico Ghirardi

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


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

2015-05-02 Thread Thomas Adam
On 2 May 2015 at 13:44, David Verhasselt  wrote:
> A couple of weeks ago the mouse-related code was refactored and a feature
> was removed: This feature exited copy-mode when scrolling with the mouse
> down past the bottom. Combined with the feature that entered copy-mode when
> scrolling up with the mouse, this was useful to emulate intuitively expected
> behaviour of scrolling in the terminal.

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"

-- Thomas Adam

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users