Add emacs and vi keymap config logic

* Add emacs and vi keymap config logic
This commit is contained in:
Fredrik Lindell
2025-05-17 10:34:35 +02:00
committed by Jari Sundell
parent ac4afeb4bc
commit a51f367671
13 changed files with 123 additions and 37 deletions
+3
View File
@@ -824,6 +824,9 @@ initialize_command_ui() {
CMD2_ANY_LIST ("ui.status.throttle.up.set", std::bind(&cmd_status_throttle_names, true, std::placeholders::_2));
CMD2_ANY_LIST ("ui.status.throttle.down.set", std::bind(&cmd_status_throttle_names, false, std::placeholders::_2));
CMD2_ANY ("ui.keymap.style", std::bind(&ui::Root::keymap_style, control->ui()));
CMD2_ANY_STRING_V("ui.keymap.style.set", std::bind(&ui::Root::set_keymap_style, control->ui(), std::placeholders::_2));
// TODO: Add 'option_string' for rtorrent-specific options.
CMD2_VAR_STRING("ui.torrent_list.layout", "full");