Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - xiubo

Pages: [1]
1
I frequently find myself needing to copy full paths of files and paste them into programming environments (e.g. terminals, source codes, etc.). By default, Multi Commander sends Windows-style file paths where backslashes are used as delimiters between folders; unsurprisingly, most programming environments treat those as invalid paths due to the escape-semantics of the backslashes. The following script will copy full paths of currently selected files in the explorer panel and replace the backslashes with forward-slashes before sending them to the clipboard:

Code: [Select]
@var $paths = GetSelectedPaths();
@var $result = "";
@var $i;
@var $N = arrayCount($paths);
for ($i = 0; $i < $N; $i++) {
$result = $result + StrReplaceChars( $paths[$i], "\\" , "/" ) + "\n";
}
SetClipboardText(StrTrim($result, "\n"));

Hope people may find this useful.

2
Hi Mathias,

I had been a TC user for years; I recently discovered Multi Commander and I instantly got excited --- it really feels like a quality piece of art. One of the features of MC that I loved most is the ability to sort folders together with files by date (I know some other file managers also have that but their implementations are nowhere near as fast as MC). The only problem with it is that the file explorer layout resets to sorting on file name for newly opened tabs --- I might missed something here, but if not could you allow the user to configure the default sorting column for the file explorer layouts?

Thanks,
Xiubo

Pages: [1]