implementation of copy_file and paste
This commit is contained in:
@@ -18,6 +18,8 @@ static const char clipboard_cmd[] = "echo ^ | xsel -ib --trim"; /*used in yank_t
|
||||
static const char rename_cmd[] = "mv"; /* as used in rename_hovered, makedir and makefile */
|
||||
static const char makefile_cmd[] = "touch"; /*as of now both only do ``rename_cmd new_name``*/
|
||||
static const char makedir_cmd[] = "mkdir";
|
||||
static const char copy_cmd[] = "cp -r";
|
||||
static const char cut_cmd[] = "mv";
|
||||
|
||||
static const mimetype mimetype_default_cmd[] = {
|
||||
/* mimetype shell command
|
||||
@@ -74,8 +76,8 @@ static const binding key_binding[] = {
|
||||
* this means that it does not delete the hovered files if files are already selected */
|
||||
{ "yn", yank_file_name, NULL, "yank filename of hovered file" },
|
||||
{ "yp", yank_file_path, NULL, "yank path of hovered file" },
|
||||
{ "yy", yank_file, "copy", "copy/yank file/directory" },
|
||||
{ "dd", yank_file, "cut", "cut file/directory" },
|
||||
{ "yy", copy_file, COPY_FILE, "copy/yank file/directory" },
|
||||
{ "dd", copy_file, CUT_FILE, "cut file/directory" },
|
||||
{ "pp", paste, NULL, "paste" },
|
||||
|
||||
{ "G", jump_bottom, NULL, "jump to last file in dir" },
|
||||
@@ -150,5 +152,8 @@ static const char ui_makedir_text[];
|
||||
static const char ui_makefile_text[];
|
||||
static const char ui_rename_text[];
|
||||
static const char ui_delete_text[];
|
||||
static const char copy_cmd[];
|
||||
static const char cut_cmd[];
|
||||
|
||||
#endif
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user