commit 8dc60352fb6004d15c7f04a3e192148e485d9d37 from: Omar Polo date: Tue Jun 15 17:40:23 2021 UTC teach telescope how to backtab commit - 741428e3b7a7cf600e8c91baabfb960559e2680d commit + 8dc60352fb6004d15c7f04a3e192148e485d9d37 blob - 7983a140af5472a2628a733ac109e5ffaf3be6a7 blob + 260a14156b80e217e0df0f1dc4bb37e509a824f6 --- keymap.c +++ keymap.c @@ -108,6 +108,7 @@ static struct keytable { { "enter", CTRL('m') }, { "ret", CTRL('m' )}, { "tab", CTRL('i') }, + { "backtab", KEY_BTAB }, /* ... */ { NULL, 0 }, }; blob - 4c300fbeeba6e9f7382de84a7e6ec47f896ae74e blob + 5402a10d4c331aef2b035d659cf024c95c4bd854 --- telescope.1 +++ telescope.1 @@ -132,6 +132,9 @@ Space Enter .It tab Tab +.It backtab +Depends on the configuration of the terminal emulator. +Usually is shift tab though. .El .Ss GNU Emacs-like keys .Bl -tag -width xxxxxxxxxxxx -offset indent -compact @@ -270,6 +273,8 @@ push-button push-button-new-tab .It M-tab previous-button +.It backtab +previous-button .It tab next-button .El blob - f61b3530d23f6d35b384fcff8ec6eac81cfa9812 blob + 856e0a01b9cbe04a8337b3a66c34759c575470e2 --- ui.c +++ ui.c @@ -274,6 +274,7 @@ load_default_keys(void) global_set_key("C-m", cmd_push_button); global_set_key("M-enter", cmd_push_button_new_tab); global_set_key("M-tab", cmd_previous_button); + global_set_key("backtab", cmd_previous_button); global_set_key("tab", cmd_next_button); /* === minibuffer map === */