static void cmd_gg(key_info_t key_info, keys_info_t *keys_info) { menus_erase_current(menu->state); menus_set_pos(menu->state, def_count(key_info.count) - 1); ui_refresh_win(menu_win); }
/* Navigates to previous word which starts with specified character. */ static void cmd_F(key_info_t key_info, keys_info_t *keys_info) { last_fast_search_char = key_info.multi; last_fast_search_backward = 1; find_goto(key_info.multi, def_count(key_info.count), 1); }
/* Clones selection. Count specifies number of copies of each file or directory * to create (one by default). */ static void cmd_C(key_info_t key_info, keys_info_t *keys_info) { int save_msg; check_marking(view, 0, NULL); save_msg = fops_clone(view, NULL, 0, 0, def_count(key_info.count)); accept_and_leave(save_msg); }
static void cmd_qmark(key_info_t key_info, keys_info_t *keys_info) { last_search_backward = 1; menus_search_reset(menu->state, last_search_backward, def_count(key_info.count)); enter_cmdline_mode(CLS_MENU_BSEARCH, "", menu); }
static void cmd_n(key_info_t key_info, keys_info_t *keys_info) { key_info.count = def_count(key_info.count); while(key_info.count-- > 0) { menus_search(menu, last_search_backward); } }
static void cmd_question(key_info_t key_info, keys_info_t *keys_info) { menu->search_repeat = def_count(key_info.count); last_search_backward = 1; menu->backward_search = 1; free(menu->regexp); enter_cmdline_mode(CLS_MENU_BSEARCH, "", menu); }
/* Continues navigation to word which starts with specified character in initial * direction. */ static void cmd_semicolon(key_info_t key_info, keys_info_t *keys_info) { if(last_fast_search_backward != -1) { find_goto(last_fast_search_char, def_count(key_info.count), last_fast_search_backward); } }
static void cmd_zh(key_info_t key_info, keys_info_t *keys_info) { if(menu->hor_pos != 0) { menu->hor_pos = MAX(0, menu->hor_pos - def_count(key_info.count)); menu_partial_redraw(); } }
static void cmd_N(key_info_t key_info, keys_info_t *keys_info) { key_info.count = def_count(key_info.count); while(key_info.count-- > 0) { menus_search_repeat(menu->state, !last_search_backward); } }
static void cmd_slash(key_info_t key_info, keys_info_t *keys_info) { menu->search_repeat = def_count(key_info.count); last_search_backward = 0; menu->backward_search = 0; free(menu->regexp); menu->regexp = NULL; enter_cmdline_mode(CLS_MENU_FSEARCH, "", menu); }
static void cmd_k(key_info_t key_info, keys_info_t *keys_info) { if(menu->pos != 0) { menus_erase_current(menu->state); menu->pos -= def_count(key_info.count); menus_set_pos(menu->state, menu->pos); ui_refresh_win(menu_win); } }
/* Decrements first number in names of marked files of the view [count=1] * times. */ static void cmd_ctrl_x(key_info_t key_info, keys_info_t *keys_info) { call_incdec(-def_count(key_info.count)); }
static void cmd_zl(key_info_t key_info, keys_info_t *keys_info) { menu->hor_pos += def_count(key_info.count); menu_partial_redraw(); }