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.


Messages - Jungle

Pages: [1] 2 3 4 5 ... 22
1
Support and Feedback / Re: List/Index Of Files and Folders
« on: September 24, 2024, 20:53:47 »
Some options are available under Tools > To Clipboard menu. Something more advanced can potentially be done via MultiScript.

2
Beta Releases / Re: v14.2 BETA
« on: September 18, 2024, 06:56:06 »
ADDED - Tab-area will now show a folder icon if tabs in tabarea is full, When clicking on icon a popup list is shown with all tabs

When tab area is not full, folder icon is not shown, but clicking its "empty" place still invokes pop-up menu

3
There's a file MultiCommander.xml in the config folder (I use portable version, so it is in the .\Config subfolder, for installable version it should probably be somewhere in the user profile). I configured logging to Full/Debug and that's how <log> section of that file looks:

Code: [Select]
  <log>
    <application>
      <level value="2"/>
      <save value="1"/>
    </application>
    <filesystem>
      <level value="1"/>
      <save value="1"/>
      <copy value="1"/>
      <move value="1"/>
      <delete value="1"/>
      <rename value="1"/>
      <mkdir value="1"/>
      <extended value="1"/>
    </filesystem>
    <filesystemscanning>
      <show value="1"/>
      <level value="1"/>
      <extendedscanlog value="1"/>
      <save value="1"/>
    </filesystemscanning>
    <logwindow>
      <font FontName="Courier New" SizePT="9" Style="" SizePt="0"/>
      <color background="$COLOR_WINDOW" foreground="$COLOR_WINDOWTEXT"/>
    </logwindow>
  </log>

4
@Mathias (Author),
I think @Balu just wants to hide the entire header with column names, not the particular column itself.

5
Support and Feedback / Re: Is it possible to rename
« on: July 19, 2024, 18:13:56 »
If I get you right... Let's suppose there's a folder structure:

Code: [Select]
my_folder\
  subfolder1\
    file1.txt
  subfolder2\
    file2.txt
  subfolder3\
    file3.txt

You can enter my_folder\, switch to "Flat" mode (via Ctrl+Shift+B or "View mode" button in the top right corner of the explorer panel). It will show all the files recursively within one list:

Code: [Select]
my_folder\
  file1.txt
  file2.txt
  file3.txt

Now you can select these files and multi-rename them.

6
Support and Feedback / Re: Adding to filename in multiname
« on: July 18, 2024, 20:42:38 »
If all you want is to add some prefix to a filename, you may simply write it in the Filename field:
Code: [Select]
img_[N]

7
Support and Feedback / Re: "file type" language
« on: June 24, 2024, 13:11:06 »
So now we know that MC shows File Type in correct language at least for RUS and ENG.

8
Support and Feedback / Re: "file type" language
« on: June 24, 2024, 11:20:52 »
1) File type names shown from the filetype columns is returned by Windows. MC ask windows for them. It should return same in Windows Explorer.

I don't know what does "is returned by Windows" mean. But I tried simple reading (Default) value for file extension from registry and then LoadString/RegLoadMUIStringW. Simple reading returns unclocalized string (I tested on RUS/ENG lang packs), while the latter return localized one.

9
Support and Feedback / Re: "file type" language
« on: June 24, 2024, 08:42:09 »
I can only suppose that "File type" is simply read from registry as I did in my script. But in order to display localized string, so called FriendlyTypeName should be read either by LoadString or by RegLoadMUIStringW (the latter is only supported on Vista+)

10
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 15:44:51 »
Yes some Windows API report  NOT FOUND and some SHARING VIOLATION..
Its only for some very special system files. Not sure it is worth the time to create some workaround just for them.
Let FileExists() and others return:
* 1 when GetFileAttributes returns true
* 0 when GetFileAttributes returns false and FILE_NOT_FOUND
* 2 (or -1 or whatever else) otherwise

It will guarantee file existence or absence

11
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 14:09:47 »
when checking if file exists the GetFileAttributes(..) API is used. But for the special system files it return false and set error code to FILE_NOT_FOUND.

I tried PathFileExists(). For non-existing file it returns 0x02 FILE_NOT_FOUND while for "hiberfil.sys" it returns 0x20 ERROR_SHARING_VIOLATION. Also FindFirstFile() succeedes.

It looks inconsistent when you see a file in the panel, but script says it doesn't exist.

12
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 11:13:37 »
If FileExists return 0 then Windows return error when checking for those special file. Windows actually return ERROR_FILE_NOT_FOUND when trying to check those files.
But MC somehow shows that files in Explorer Panels. If it can detect them, then I don't see a reason why MultiScript's FileExists could not.
Try IsFolder() for "hiberfil.sys"

13
Support and Feedback / Re: how to add filetyoe column
« on: June 20, 2024, 10:11:42 »
If I get you right, you may try the following script:

Code: [Select]
@var $type_name;

if ( IsFolder($_FILEPROP_FILEPATH) == 0 )
{
  @var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);
  $type_name = RegValueGetSZ("HKCR", $ext, "");
}
else
{
  $type_name = "Directory";
}

@var $_COLUMN_TYPE_DESCRIPTION = RegValueGetSZ("HKCR", $type_name, "");

Create scriptable column and add $_COLUMN_TYPE_DESCRIPTION as the Output variable.

But for unknown extension it will return empty string. I think in such cases Windows [Explorer] constructs description itself in the form "EXT File". And it depends on the OS locale. I'm not sure it's possible (or there's an easy way) to get it from OS.

14
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 10:01:37 »

I don't see it losing defined scripables columns. have you checked  the option for the script to be a FileProp?
Thanks. Checking this option works.

But there's another issue. Some multiscript functions fails with certain files. E.g. FileExists returns 0 for "hiberfil.sys", "pagefilt.sys", "swapfile.sys". And IsFolder fails with script engine error.

This sample code: will variable be visible out of its scope?

Code: [Select]
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
  @var $_FILEPROP_FILEPATH = GetTargetFocusPath();
}

15
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 08:14:09 »
1.
Example of script that will just show the file extension in a column.

Code: [Select]
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
  @var $_FILEPROP_FILEPATH = GetTargetFocusPath();
}

@var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);

@var $_FILEPROP_DISPLAYNAME = $ext;

On the line "@var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);" I get error "Script engine error => Failed to process token - "$ext"" although IsVariableDefined() returns 1.

---

2. Script list for a scriptable column is empty.
3. Scriptable columns are completely lost after closing MC (not only from displayed column, but from the available columns list)

16
For some file invoke MC context menu > File Checksum > Calculate checksum value from file.
Calculation never ends, operation can't be aborted and MC can't be closed (it freezes). File size doesn't matter.

MC v14.0.3016 x64 portable, Win 10 x64 Pro 22H2 build 19045.4529

17
Like in Vivaldi web browser? :)

18
Support and Feedback / Re: How to add Favorite Pairs
« on: May 18, 2024, 19:50:34 »
Is there an easy way to "activate a tab if it exists or create a new one"? Or I have to write a script to check every tabs before create it?
I think you'll have to perform a check.

19
Support and Feedback / Re: How to Drop&Run?
« on: May 16, 2024, 07:50:49 »
It is possible if you put that executable on the QuickLaunch bar or Button panel.

Example for QuickLaunch bar:
1. Drag'n'drop some executable on the QL bar
2. Customize it by right-clicking the icon and selecting "Customize..." (here you can choose how the dropped files shoud be handled)
3. Now you can drag'n'drop other files on that icon, and they will be opened in that program

Example for Button Panel:
1. Enable wizard mode (Menu Configuration > Toggle button panel wizard mode)
2. Drag'n'drop some executable on the desired button
3. In the settings window check "Accept dropped files..."
4. Disable wizard mode (Menu Configuration > Toggle button panel wizard mode)
5. Now you can drag'n'drop other files on that icon, and they will be opened in that program

20
Support and Feedback / Re: How to add Favorite Pairs
« on: May 16, 2024, 07:34:21 »
If I got you right, you can do it via Custom commands. E.g. write MultiScript or use Internal Commands directly.
For example:

Code: [Select]
@var $path1 = 'c:\temp'
@var $path2 = 'c:\temp\22'

MC.Explorer.NewBrowser PATH="{$path1}" SIDE=LEFT
MC.Explorer.NewBrowser PATH="{$path2}" SIDE=RIGHT

Then you can bind that custom command to a button on the button panel or to a hotkey, or put it to a quicklaunch bar

21
MC has a MultiScript function GetWinShortcutTarget(). So the simplest multiscript UDC could look like:
Code: [Select]
@var $lnk = GetSourceFocusPath();

@var $path = GetWinShortcutTarget( $lnk );
MC.Explorer.Goto SOURCE="{$path}";

22
I always have to re-adjust my panels to 50%/50% when starting MC. Where can I set that the % of panel width is always 50%/50%?

There's an option under Menu Configuration > Core settings > Layout > Application layout > Panel Tab > Remember split size
With this option disabled MC should always restore 50/50 ratio

Also I would like to be sure then that column with is also sizing according to panel width (that is wider when panels width get bigger) and where to configure that?

Menu Configuration > Explorer panel settings > Display > Sorting and columns > Autosize columns

23
I tried to create a shortcut to MC on the desktop and input:
"C:\Program Files\MultiCommander (x64)\MultiCommander.exe" -AutoRun=Core.1206

It doesn't work.

It does work, but you have to create a User Defined Command. So you go to Configuration > User Defined Commands, create a command named e.g. AutorunCmd:

Code: [Select]
Command type = Internal Commands
Module = Multicommander (Base)
Command = Full Pane width

Then in the shortcut params specify -AutoRun=AutorunCmd


EDIT. You may also create UDC of type MultiScript:
Quote
MC.RunCmd ID="Core.1206"

24
Support and Feedback / Issue with search in MultiDataViewer
« on: March 14, 2024, 14:12:21 »
I have a txt-file with mixed cyrillic/english text in ANSI encoding. In MDV if I search for cyrillic word, nothing is found. Case dosen't matter. I basically copy some cyrillic text, paste it in the Find field, press Enter and get "No more found". Search for english text works OK.

If I open this file in Windows Notepad, search for cyrillic text works fine. If in Notepad I save this file as UTF-8 or UTF-16, then in MultiDataViewer search works, but only if case matches, so e.g. search for "станислав" can't find "Станислав" even with disabled [Match case] option.

25
1. Move some tab to the opposite panel
2. Press Tab key

Result: Focus doesn't move to the opposite panel. Moreover, if the preeceding panel was not previously opened it is opened empty (see gif)

3. Click mouse in the opposite panel to activate it
4. Press Tab again

Result: the opposite panel is activated but no file/folder is not focused. This only seems to work on fresh MC start.

Pages: [1] 2 3 4 5 ... 22