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)
Copy filename [DONE]
-
- Posts: 102
- Joined: Tue Jun 28, 2016 6:17 pm
- Location: NN, Russia
Re: Copy filename
Oh yes, I could use that too.
Re: Copy filename
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?
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?
-
- Posts: 102
- Joined: Tue Jun 28, 2016 6:17 pm
- Location: NN, Russia
Re: Copy filename
Newlines, please. As we seemike 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?
Re: Copy filename
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
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