mirror of
https://github.com/tmux/tmux.git
synced 2025-04-04 23:28:51 +00:00
Add a few vi(1) key aliases, from D Ben Knoble.
This commit is contained in:
parent
df7b5292ab
commit
bf6d1aeaa4
@ -933,6 +933,7 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
|
|||||||
case '\016': /* C-n */
|
case '\016': /* C-n */
|
||||||
mode_tree_down(mtd, 1);
|
mode_tree_down(mtd, 1);
|
||||||
break;
|
break;
|
||||||
|
case 'g':
|
||||||
case KEYC_PPAGE:
|
case KEYC_PPAGE:
|
||||||
case '\002': /* C-b */
|
case '\002': /* C-b */
|
||||||
for (i = 0; i < mtd->height; i++) {
|
for (i = 0; i < mtd->height; i++) {
|
||||||
@ -941,6 +942,7 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
|
|||||||
mode_tree_up(mtd, 1);
|
mode_tree_up(mtd, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'G':
|
||||||
case KEYC_NPAGE:
|
case KEYC_NPAGE:
|
||||||
case '\006': /* C-f */
|
case '\006': /* C-f */
|
||||||
for (i = 0; i < mtd->height; i++) {
|
for (i = 0; i < mtd->height; i++) {
|
||||||
@ -1019,6 +1021,8 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
|
|||||||
mode_tree_build(mtd);
|
mode_tree_build(mtd);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case '?':
|
||||||
|
case '/':
|
||||||
case '\023': /* C-s */
|
case '\023': /* C-s */
|
||||||
mtd->references++;
|
mtd->references++;
|
||||||
status_prompt_set(c, "(search) ", "",
|
status_prompt_set(c, "(search) ", "",
|
||||||
|
Loading…
Reference in New Issue
Block a user