Copy filename [DONE]

Any wishes
Locked
d0ublezer0
Posts: 102
Joined: Tue Jun 28, 2016 6:17 pm
Location: NN, Russia

Copy filename [DONE]

Post by d0ublezer0 » Mon Oct 24, 2016 5:57 pm

Suggestion: when many files selected (marked with shift or by mask), Shift+Cmd+C should copy list of filenames instead of only one filename (as total commander).
Maybe, copy filenames with paths - too (alt+cmd+c)

User avatar
darek
Posts: 179
Joined: Thu Jul 16, 2015 4:50 pm
Location: Warsaw, Poland
Contact:

Re: Copy filename

Post by darek » Tue Oct 25, 2016 6:18 am

Oh yes, I could use that too.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Copy filename

Post by mike » Wed Oct 26, 2016 3:10 am

Hi guys!

It's not a problem to copy many file names / file paths.
What format should those list have - commas, commas with spaces, spaces, newlines, something else maybe?
I'm not sure about generality of solution - can you give me some examples of use cases?

d0ublezer0
Posts: 102
Joined: Tue Jun 28, 2016 6:17 pm
Location: NN, Russia

Re: Copy filename

Post by d0ublezer0 » Wed Oct 26, 2016 3:47 am

mike wrote:Hi guys!

It's not a problem to copy many file names / file paths.
What format should those list have - commas, commas with spaces, spaces, newlines, something else maybe?
I'm not sure about generality of solution - can you give me some examples of use cases?
Newlines, please. As we see

User avatar
darek
Posts: 179
Joined: Thu Jul 16, 2015 4:50 pm
Location: Warsaw, Poland
Contact:

Re: Copy filename

Post by darek » Wed Oct 26, 2016 12:00 pm

Yes, new lines is what I'd expect by default there. That's what Total Commander does. For bonus points and to satisfy chaps like this one, you can have an option hidden in JSON config for customizing the separator. But in my usage new line was always enough.

Use case: let's say I have a bunch of images I need to resize, but I want to resize only thumbnails. I'd do that in TC this way:

* find files with "_thumb" text in name, feed to panel list, select them all
* copy paths to clipboard, paste in Sublime Text
* select all, split selection on lines, which triggers multiple cursors, then add whatever command I need before and after each path name (so I end up basicaly with lots of similar console commands, each with a different file path)
* save it as a BAT file and execute!

Kind of a brute force, but always faster than dealing with FOR loops in BAT files, filtering by name, etc :)

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Copy filename

Post by mike » Tue Dec 27, 2016 4:23 am


Locked