Exemplo n.º 1
0
Arquivo: menu.c Projeto: acklinr/vifm
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);
}
Exemplo n.º 2
0
/* 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);
}
Exemplo n.º 3
0
/* 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);
}
Exemplo n.º 4
0
Arquivo: menu.c Projeto: acklinr/vifm
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);
}
Exemplo n.º 5
0
Arquivo: menu.c Projeto: cfillion/vifm
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);
	}
}
Exemplo n.º 6
0
Arquivo: menu.c Projeto: cfillion/vifm
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);
}
Exemplo n.º 7
0
/* 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);
	}
}
Exemplo n.º 8
0
Arquivo: menu.c Projeto: acklinr/vifm
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();
	}
}
Exemplo n.º 9
0
Arquivo: menu.c Projeto: acklinr/vifm
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);
	}
}
Exemplo n.º 10
0
Arquivo: menu.c Projeto: cfillion/vifm
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);
}
Exemplo n.º 11
0
Arquivo: menu.c Projeto: acklinr/vifm
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);
	}
}
Exemplo n.º 12
0
/* 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));
}
Exemplo n.º 13
0
Arquivo: menu.c Projeto: acklinr/vifm
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();
}