Ticket #29 (new)

Opened 7 years ago

Last modified 8 months ago

Ability to configure key binding

Reported by: Eldwin Owned by: rakshasa
Priority: normal Component: rtorrent
Version: HEAD Severity: normal
Keywords: customizable key binding Cc:

Description

Would that be possible to add to the rtorrent client the possibility to customize (by using a configuraiton file for example) the key binding ? This will be great for people not using an us keybord.

For example, I'm using a french keybord (azerty), and so the default keys for the bandwidth throttling will be q/s/d and w/x/c if we want to keep a well organized block of keys on the keyboard (default a/s/d and z/x/c binding makes the controls scrambled all over the keyboard).

As it is just some UI enhancement, I think this ticket can be treated in 1.0 milestone (unless it needs only trivial changes, and can be treated really quickly).

Attachments

custom_key_layout.patch Download (3.6 KB) - added by Matthias Bartsch 4 years ago.

Change History

Changed 7 years ago by rakshasa

  • version set to HEAD
  • milestone changed from 1.0 Soggy Rabbit to 0.9 Moist Wombat

It would require some work but 0.9 seems a better target.

Changed 6 years ago by anonymous

I'd like this, too. As a  DSK user, it's rather hard to use the default keybindings when they're scattered all over the keyboard.

Changed 5 years ago by orthopteroid

I'm using rtorrent with telnet and screen and find some control codes are filtered by these other apps (ctrl-q for example). I would find rtorrent more flexible to use in these circumstances if there was the ability to do some key remapping.

Changed 5 years ago by anonymous

I use rtorrent via screen and, as I use the default meta-character for screen (ctrl-a), I often hit ctrl-s by mistake. As a result, I have a habit of hitting ctrl-q to make sure that the terminal isn't stopped. Unfortunately given rtorrent's keybindings, this.. exits the client. Which is.. not something I generally want to do.. and is probably not something anyone using screen wants ctrl-s and ctrl-q to do in any application.

Why would you use ctrl-s and ctrl-q in a client MADE FOR TERMINALS, which have been mapped to "stop" and "start" in terminals for.. ever? It's very confusing to me why anyone who has ever used a terminal with screen would use ctrl-s and ctrl-q for something important, especially something like "quit" ...

I'd prefer more sane default keybindings for "quit" and "start torrent" ... but in lieu of that, here's another vote for user configurable keybindings. Rtorrent rocks, but it rocks an awful lot less when you keep accidentally shutting it down in the middle of a bunch of torrents. :)

%$%

Changed 5 years ago by carmen

yeah. ctrl-s is a bad choice. it worked right, at least on linux in localhost in urxvt.

but right now ive tried putty, securecrt, and urxvt exported to Xmanager, all of which interpret the ctrl-s as stop.

the only reason i need to press ctrl-s, is because of a longstanding bug where about half of torrents end about 97% complete with 'Inactive: Hash check on download completion found bad chunks, consider using "safe_sync".', even when safe_sync is enabled. i guess it doesnt like my reiserfs or theres a bug or something?

Changed 5 years ago by anonymous

I'll echo most of the stuff above, the default bindings are incredibly annoying. CTRL-Q for shutting things down, what the hell? CTRL-s is equally frustrating.

Changed 5 years ago by nik

I agree with anything mentioned above.

And yes, your client is damn good, thanks.

Changed 4 years ago by Richardus

For those googling to find a way to get ctrl-s working in screen in rtorrent try pressing ctrl-a then s. Seems to work fine as a temporary workaround for me.

Changed 4 years ago by anonymous

Yes. And it would be very useful to be able to bind a key to a user defined command/function.

Changed 4 years ago by anonymous

After reading the screen manpage, I figured one can insert "defflow off" in either /etc/screenrc or ~/.screenrc

Maybe it's useful to someone. Cheers

Changed 4 years ago by Matthias Bartsch

Changed 4 years ago by Matthias Bartsch

I've added a patch that supplies some basic configurability.

Just set

key_layout = custom:azAZsxSXdcDC

for the default layout or replace the characters as you want.

Changed 11 months ago by Digika <digika@yandex.ru>

Hey Matthias

Any patch updates for latest version?

Changed 9 months ago by rakshasa

  • milestone 0.9 Moist Wombat deleted

Milestone 0.9 Moist Wombat deleted

Changed 8 months ago by pyroscope <pyroscope.project@gmail.com>

http ://code.google.com/p/pyroscope/wiki/RtorrentExtended#ui.bind_key=display,key,%22command1=[,...]%22

Patch for 0.8.6, that allows free bindings, for now only in the download list view.

Note: See TracTickets for help on using tickets.