示例#1
0
文件: visual.c 项目: phantasea/vifm
/* 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);
}
示例#2
0
文件: visual.c 项目: sshilovsky/vifm
static void
cmd_C(key_info_t key_info, keys_info_t *keys_info)
{
	if(key_info.count == NO_COUNT_GIVEN)
		key_info.count = 1;
	curr_stats.save_msg = clone_files(view, NULL, 0, 0, key_info.count);
	accept_and_leave(curr_stats.save_msg);
}
示例#3
0
文件: visual.c 项目: phantasea/vifm
/* Increments/decrements first number in names of marked files of the view
 * [count=1] times. */
static void
call_incdec(int count)
{
	int save_msg;
	check_marking(view, 0, NULL);
	save_msg = fops_incdec(view, count);
	accept_and_leave(save_msg);
}
示例#4
0
文件: visual.c 项目: sshilovsky/vifm
static void
cmd_ctrl_x(key_info_t key_info, keys_info_t *keys_info)
{
	if(key_info.count == NO_COUNT_GIVEN)
		key_info.count = 1;
	curr_stats.save_msg = incdec_names(view, -key_info.count);
	accept_and_leave(curr_stats.save_msg);
}