LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Command line copying and moving with GUI dialogs in case of identical file names? (https://www.linuxquestions.org/questions/linux-desktop-74/command-line-copying-and-moving-with-gui-dialogs-in-case-of-identical-file-names-4175575936/)

the dsc 03-26-2016 09:19 PM

Command line copying and moving with GUI dialogs in case of identical file names?
 
KDE has tools such as kde-mv (recently also kdemv5) and kde-cp (likewise).

The interesting thing it offers is that not only there would be a prompt in case of overwriting, but it will bring the file manager GUI with file previews and info as well, for comparison, along with options such as "auto rename all", or "skip all".

But such functions, from command line or in the file manager themselves, are broken nowadays. From what I understand the problem is with "KIO" and it has only been solved in kio 15.20. Even Ubuntu's "unstable" is still 15.18, and the "stable" (Wily, I think it's the stable, at least) is only 15,15. So I assume it will take a while in order to have it working again...

https://quickgit.kde.org/?p=kio.git&...99d9bdf7428fe0


Does anyone know of similar tool(s), accessible from command line? Thanks a lot.

malekmustaq 03-27-2016 04:04 AM

find, diff, cp, mv, and/or invoke midnight commander?

There is also a search monkey that invokes file manager at your choice.

Well I'm not sure but I hope it helps. Good luck.

m.m.

WayneB 03-27-2016 02:52 PM

@the dsc : You can add the -i switch to cp and mv. This will prompt you before overwriting your files.

the dsc 03-27-2016 07:24 PM

Thanks, I know that. But cp/mv/ln alone don't tell me automatically how these files look/what they are/any property, I only know that they have the same file name. In some GUI file managers (or those "within-X cli" KDE tools) the prompt would bring a preview of such files along with other info such as their file size and date.

I'll see if I can use yad to make a pop-up dialog mimicking those applications. I was going to do a hack with misusing a SVG + imagemagick's display to fake a GUI, but that's beyond ridiculous, and apparently yad allows you to easily put images in windows generated through scripts. I don't know if it allows two images side by side, but I think concatenated thumbnails are an acceptable hack. I seriously need to learn some basic real GUI programming.


All times are GMT -5. The time now is 08:00 AM.