diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-09-11 18:28:41 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-09-11 18:28:41 +0530 |
commit | c3ce5bc705e2918cd21815611c21cd1d2c15b19e (patch) | |
tree | 21ae56d21074d9914a9fa03a1c2967b4a291c29d /src | |
parent | bb5ef221b31c61576b50547487035362f4fad09d (diff) | |
download | nnn-c3ce5bc705e2918cd21815611c21cd1d2c15b19e.tar.gz |
Preserve attributes on duplicate, update docs
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -151,6 +151,7 @@ #define F_NORMAL 0x08 /* spawn child process in non-curses regular CLI mode */ #define F_CMD 0x10 /* run command - show results before exit (must have F_NORMAL) */ #define F_CLI (F_NORMAL | F_MULTI) +#define F_SILENT (F_CLI | F_NOTRACE) /* CRC8 macros */ #define UCHAR_BIT_WIDTH (sizeof(unsigned char) << 3) @@ -4279,7 +4280,7 @@ nochange: if (sel == SEL_RENAME) { /* Rename the file */ if (dup == 'd') - spawn("cp -r", dents[cur].name, tmp, path, F_CLI | F_NOTRACE); + spawn("cp -rp", dents[cur].name, tmp, path, F_SILENT); else if (renameat(fd, dents[cur].name, fd, tmp) != 0) { close(fd); printwarn(&presel); @@ -4535,7 +4536,7 @@ static void usage(void) " -a use access time\n" " -b key open bookmark key\n" " -d detail mode\n" - " -f run filter as cmd on ^P\n" + " -f run filter as cmd on prompt key\n" " -H show hidden files\n" " -i nav-as-you-type mode\n" " -n version sort\n" |