I think it is not a good idea to overload -R like this. There are only about four commands where this would make sense, so why not add cursor-down-and-cancel, scroll-down-and-cancel, etc. We don't need two ways to do this so then we should remove -e.
On Wed, Oct 25, 2017 at 11:39:22AM -0700, Stephen Hicks wrote: > I appreciate the patch that went in a while back to add "copy-mode -e", > allowing to automatically exit copy-mode when reaching the bottom of the > buffer.A But I find that this functionality is a bit of "spooky action at > a distance": the decision to exit depends not on the input the caused the > scroll-down, but instead of the input that initially scrolled up. > I've put together a small patch to allow opting into the auto-exit > behavior on scroll-down commands instead.A Currently I've overloaded the > send-keys -R argument (which seems somewhat appropriate given that exiting > copy-mode is a sort of "reset"), but I'd also be happy to find a different > way to pass the option (either adding an additional argument to send-keys, > or adding scroll-down, etc, to the 1-arg branch so that you'd write > "send-keys -X scroll-down -e", though in that case I'm not sure what to do > if the argument is anything *other* than -e - currently it silently does > nothing if a command has the wrong (number of) arguments, which isn't > great. > Please let me know how to proceed so that this functionality can be > added.A Or if you'd rather continue on a GitHub pull request, that would > be great as well. > Thanks! > steve > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
