urlgrab.py: Pressing enter / home / end does not work
I just installed urlgrab and in the urlgrab buffer, pressing enter to open up an url didn't work. Running /url **enter works, so this is a problem with the keybinding. Pressing the up/down arrows worked normally, but home and end didn't work either.
It seems that there is an extra "meta" in the keybinding that my setup doesn't generate. Also, the home binding had an extra ./ that didn't happen here.
To fix this, I added these lines to the init function, and now all keys work:
weechat.buffer_set(urlgrab_buffer, "key_bind_ctrl-J", "/url **enter")
weechat.buffer_set(urlgrab_buffer, "key_bind_ctrl-M", "/url **enter")
weechat.buffer_set(urlgrab_buffer, "key_bind_meta2-1~", "/url **scroll_top")
weechat.buffer_set(urlgrab_buffer, "key_bind_meta2-4~", "/url **scroll_bottom")
Not sure if the existing bindings were wrong, or if some setups generate different sequences, but perhaps the above bindings should just be added? Or is something broken on my system? I'm running weechat inside tmux inside uxterm, if that helps.