Re: binding PageUp to enter copy-mode

2013-04-10 Thread Nicholas Marriott
Well, no, it won't. The diff changes so that "copy-mode -u" will page up if run inside or outside copy mode. On Tue, Apr 02, 2013 at 02:53:18AM +, Daniel wrote: > On 2013-03-28, Nicholas Marriott wrote: > > Try this please: > > > > diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c > > index f0

Re: binding PageUp to enter copy-mode

2013-04-01 Thread Daniel
On 2013-03-28, Nicholas Marriott wrote: > Try this please: > > diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c > index f014be8..40584a2 100644 That works for me, given the original binding of >> bind-key -n PageUp copy-mode -u But if bound without "-u", pageup still doesn't work while in copy mo

Re: binding PageUp to enter copy-mode

2013-03-28 Thread Nicholas Marriott
Try this please: diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c index f014be8..40584a2 100644 --- a/cmd-copy-mode.c +++ b/cmd-copy-mode.c @@ -54,9 +54,11 @@ cmd_copy_mode_exec(struct cmd *self, struct cmd_q *cmdq) if (cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp) == NULL)

binding PageUp to enter copy-mode

2013-03-28 Thread Kenny Ranerup
I'm trying to map PageUp key without prefix-key to enter copy mode. I do it using: bind-key -n PageUp copy-mode -u This works but it has a side effect that when in copy mode, PageUp no longer works, i.e. it doesn't scroll up. I also tried to explicitly map PageUp in copy-mode (which already def