mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Instead of numbering choose mode items 0-9a-z and then nothing, number
them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
This commit is contained in:
9
tmux.h
9
tmux.h
@ -503,6 +503,7 @@ enum mode_key_cmd {
|
||||
MODEKEYEDIT_TRANSPOSECHARS,
|
||||
|
||||
/* Menu (choice) keys. */
|
||||
MODEKEYCHOICE_BACKSPACE,
|
||||
MODEKEYCHOICE_CANCEL,
|
||||
MODEKEYCHOICE_CHOOSE,
|
||||
MODEKEYCHOICE_DOWN,
|
||||
@ -510,6 +511,7 @@ enum mode_key_cmd {
|
||||
MODEKEYCHOICE_PAGEUP,
|
||||
MODEKEYCHOICE_SCROLLDOWN,
|
||||
MODEKEYCHOICE_SCROLLUP,
|
||||
MODEKEYCHOICE_STARTNUMBERPREFIX,
|
||||
MODEKEYCHOICE_UP,
|
||||
|
||||
/* Copy keys. */
|
||||
@ -851,14 +853,16 @@ struct window_choose_data {
|
||||
struct client *client;
|
||||
struct session *session;
|
||||
struct format_tree *ft;
|
||||
struct winlink *wl;
|
||||
char *ft_template;
|
||||
char *command;
|
||||
u_int idx;
|
||||
};
|
||||
|
||||
struct window_choose_mode_item {
|
||||
struct window_choose_data *wcd;
|
||||
char *name;
|
||||
struct window_choose_data *wcd;
|
||||
char *name;
|
||||
int pos;
|
||||
};
|
||||
|
||||
/* Child window structure. */
|
||||
@ -2087,6 +2091,7 @@ struct window_pane *window_pane_find_left(struct window_pane *);
|
||||
struct window_pane *window_pane_find_right(struct window_pane *);
|
||||
void window_set_name(struct window *, const char *);
|
||||
void winlink_clear_flags(struct winlink *);
|
||||
void window_mode_attrs(struct grid_cell *, struct options *);
|
||||
|
||||
/* layout.c */
|
||||
u_int layout_count_cells(struct layout_cell *);
|
||||
|
Reference in New Issue
Block a user