* cmd.c (delete_cmd_local): New function. Remove file under the
cursor, regardless of marks. * screen.c (panel_keymap): Bind it to F18.
Этот коммит содержится в:
родитель
df6365e737
Коммит
3f4d7934b3
@ -1,10 +1,14 @@
|
||||
2003-08-18 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cmd.c (delete_cmd_local): New function. Remove file under the
|
||||
cursor, regardless of marks.
|
||||
* screen.c (panel_keymap): Bind it to F18.
|
||||
|
||||
* file.c (panel_operate_generate_prompt): Remove source
|
||||
calculation, it doesn't belong here.
|
||||
(panel_operate): Change arguments: drop ask_user and thedefault,
|
||||
introduce force_single. force_single changes default to the
|
||||
current file and ignores selection. Adjust all dependencies.
|
||||
current file and ignores selection. Adjust all dependencies.
|
||||
|
||||
2003-08-17 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
|
15
src/cmd.c
15
src/cmd.c
@ -319,7 +319,7 @@ copy_cmd (void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Invoked by F6. Move/rename, default to the other panel. */
|
||||
/* Invoked by F6. Move/rename, default to the other panel, ignore marks. */
|
||||
void ren_cmd (void)
|
||||
{
|
||||
save_cwds_stat ();
|
||||
@ -329,7 +329,7 @@ void ren_cmd (void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Invoked by F15. Copy, default to the same panel. */
|
||||
/* Invoked by F15. Copy, default to the same panel, ignore marks. */
|
||||
void copy_cmd_local (void)
|
||||
{
|
||||
save_cwds_stat ();
|
||||
@ -390,6 +390,17 @@ void delete_cmd (void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Invoked by F18. Remove selected file, regardless of marked files. */
|
||||
void delete_cmd_local (void)
|
||||
{
|
||||
save_cwds_stat ();
|
||||
|
||||
if (panel_operate (cpanel, OP_DELETE, 1)){
|
||||
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
|
||||
repaint_screen ();
|
||||
}
|
||||
}
|
||||
|
||||
void find_cmd (void)
|
||||
{
|
||||
do_find ();
|
||||
|
@ -22,6 +22,7 @@ void copy_cmd (void);
|
||||
void ren_cmd (void);
|
||||
void copy_cmd_local (void);
|
||||
void ren_cmd_local (void);
|
||||
void delete_cmd_local (void);
|
||||
void free_vfs_now (void);
|
||||
void reselect_vfs (void);
|
||||
void mkdir_cmd (void);
|
||||
|
@ -2086,6 +2086,7 @@ static const key_map panel_keymap [] = {
|
||||
{ KEY_F(14), edit_cmd_new },
|
||||
{ KEY_F(15), copy_cmd_local },
|
||||
{ KEY_F(16), ren_cmd_local },
|
||||
{ KEY_F(18), delete_cmd_local },
|
||||
{ ALT('y'), directory_history_prev },
|
||||
{ ALT('u'), directory_history_next },
|
||||
{ ALT('+'), select_cmd },
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user