Multi Commander Support Forum

Multi Commander => Beta Releases => Topic started by: Mathias (Author) on October 22, 2016, 15:13:30

Title: Multi Commander 6.5 BETA
Post by: Mathias (Author) on October 22, 2016, 15:13:30
Major new feature is TabSession. And also some minor new features and many fixes

MC is now in Release Candidate, No major changes or text changes will be added before release, Final will be released ASAP. When most langauge packs are updated
and if no major issues are found


185+ Changes


-- Build 2301 - 17-Dec-2016
  FIXED - Forward button on toolbar now works again
  FIXED - Create registry key from context menu now works again.
  FIXED - Some Multi Language issues
  FIXED - 2 stability issue reported by crash report system

-- Build 2299 - 11-Dec-2016
  FIXED - Creating a new TabSession and trying to access it directly caused a crash,

-- Build 2298 - 11-Dec-2016
  UPDATE- Updated the 3rd party audio library used when getting Audio Metadata. (More file formats should be supported in some places)
  ADDED - TabSessionManager now allows customization of slot id

-- Build 2296 - 10-Dec-2016
  ADDED - TabSession Dialogs and text are now using MultiLanguage texts
  ADDED - TabSession now have options for FileColoring, ButtonPanel, How to close existing tabs.
  CHANGE- Default hotkey for the double hotkey to switch tabsession is change to Ctrl+I,  So Ctrl+I and then Ctrl+1, to switch to first tab session
  ADDED - Double click on panel item in TabSessionManager dlg will now show the panel properties
  ADDED - Menu > File > Tab Session > Save , will now works. (Overwrite the current tab session with the current tab layout)
  ADDED - Loaded Tab session name is shown on title bar

-- Build 2294 - 6-Dec-2016
  ADDED - Beginning of support for double hotkeys (Eg  Ctrl+K followed by Ctrl+F )
  ADDED - Double Hotkey for to Switch TabSession Ctrl+O and then Ctrl+1 to switch to first TabSession, and Ctrl+O + Ctrl2 for second and so on, up to 0
  ADDED - Starting to internal support for TwoStep Hotkeys
  ADDED - TabSessionManager now starting to work
  ADDED - Added option to Explorer Panel so 'Remember of item on focus on path change' change be disabled
  FIXED - 7Zip password boxdo not show its entered password hidden ( as * )

-- Build 2290 - 26-Nov-2016
  ADDED - TabSessionManager where sessions can be inspected and modified
  ADDED - TabSessions can now be Saved and switch to from Menu > File > Session  (VERY ALPHA)
  ADDED - Custom Command "MC.ChangeTabSession" to change App Session from script
  FIXED - 1 stability issue reported by crash report system

-- Build 2282  - 30-Okt-2016
  ADDED - Creating SFV/MD5 from CheckSum Menu it can now remember the selected text encoding and will not ask again. (Force show the Ask dialog by Hold Ctrl when starting checksum)
  ADDED - Commandline field command ":doc" will take active explorer panel to the documents folders.
  ADDED - Search will no longer cache all scanned items, Making search use less memory
  ADDED - Garbage collection of objects not used anymore will now be processed faster
  ADDED - Simple FindFiles dialog can now save filter to a quickload slots using Ctrl + (F1 to F12)
  ADDED - Simple and Advanced FindFiles dialog can now load quick filters using F-Keys
  ADDED - Advanced FindFiles dialog can reassign quick load key for filters.
  ADDED - Settings for Favorites windows to show path instead of name
  ADDED - Popup in favorite window now got an option submenu where showpath option can be toggled
  CHANGE- FindFiles - Content matching option "Case Sensative" have change to "Ignore Case", This may break some saved filters
  CHANGE- Simple FindFiles dialog got some UI changes.
  FIXED - Resized Change DateTime/Attributes dialog so am/pm will fit in time fields.
  FIXED - 3 stability issue reported by crash report system

-- Build 2276  - 22-Okt-2016
  ADDED - New Language - Korean - Created by pCsOrI
  ADDED - ExplorerPanel settings for not saving none locked tabs on exit (Only keep locked tabs)
  ADDED - Popup menu on Tabs now have command to "Close all none locked tabs"
  ADDED - CustomCommand "MC.CloseAllTabs" now have the option "KEEPLOCKED", that will close all tabs except locked.
  ADDED - Tweak settings for ExplorerPanel : "Send file to commandline field also takes the input focus"
  ADDED - ExplorerPanel send current item to command line field (Ctrl+Return / Ctrl+Shift+Return)
          will now add trailing slash to folders and only quote characters if it have spaces
  ADDED - Change DateTime/Attribute dialog now got "*" buttons next to the Modified/LastAccess dates, Pressing this will sync the datetime with value in modified
  CHANGE- Change some default for new installation (Colors and some default options)
  FIXED - Sometimes when input focus was returned to MC an not needed refresh was done causing strange jump of item in focus
  FIXED - Fixed issue with unpacking rar created on linux
  FIXED - Fixed issue with unpacking zip archive created by google drive
  FIXED - 4 stability issue reported by crash report system
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on October 30, 2016, 14:19:48
Thanks for this Mathias.

These I will find very useful: :)

  ADDED - ExplorerPanel settings for not saving none locked tabs on exit (Only keep locked tabs)
  ADDED - Popup menu on Tabs now have command to "Close all none locked tabs"
  ADDED - CustomCommand "MC.CloseAllTabs" now have the option "KEEPLOCKED", that will close all tabs except locked.

Haven't managed to break anything in testing yet ;)
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on November 13, 2016, 11:25:23
Using multi-commander 6.5 build 2282 x64 (w7 x64), I have noticed a couple of things that seem worth mentioning:-

I've noticed that the column settings often change widths within my open/saved tab selections & I need to use the restore columns right-click function after a system restart or MC restart.

The strange selection bug is very rare now but will still occasionally manifest if I have a folder of more than 400 files and complete some operations like move delete copy rename etc between selections.

I find the move copy function seems to grab focus more than previously.
E.g. if I set a file to copy to a USB stick I could previously click to return back up the hierarchy of folders and initiate further move/copy operations which then would be queued from different folders.
If I try that now I find MC will to some extent 'hang', & although it will always recovers it takes time to make the transition between folders & to queuing further commands.
Previously MC would change dirs & queue as fast as i clicked through them. (I am using a no dialog command in a button for the move/copy ops.  Don't know if that may be relevant.)

I notice on the Find dialogue that the old setting for search within results is no longer present. I'm guessing that it can in most instances be replaced with a Regex, but is there any likelihood that that switch will be returning?

I haven't looked too closely at the script/internal commands relating to the new Find Filters yet. :-[   But  I wondered if I could assign a MC command or script a button to use a find preset & then use that as a selection to be assigned to a following operation.
E.g.  Find <filter selection preset> & move selection to opposite pane.

Thanks your continued efforts on this Mathias - always lots of great things in MC!   8)
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on November 13, 2016, 12:33:05
I think most (All?) of them are not new to the Beta ?? but old issue ?


Using multi-commander 6.5 build 2282 x64 (w7 x64), I have noticed a couple of things that seem worth mentioning:-

I've noticed that the column settings often change widths within my open/saved tab selections & I need to use the restore columns right-click function after a system restart or MC restart.
After you clicked restore then also click "Save current layout as default", else it is not resaved as the default

The strange selection bug is very rare now but will still occasionally manifest if I have a folder of more than 400 files and complete some operations like move delete copy rename etc between selections.
? What strange selection bug. ?? Might need some more description on what is happening or not happening.

I find the move copy function seems to grab focus more than previously.
E.g. if I set a file to copy to a USB stick I could previously click to return back up the hierarchy of folders and initiate further move/copy operations which then would be queued from different folders.

If I try that now I find MC will to some extent 'hang', & although it will always recovers it takes time to make the transition between folders & to queuing further commands.
Previously MC would change dirs & queue as fast as i clicked through them. (I am using a no dialog command in a button for the move/copy ops.  Don't know if that may be relevant.)
Not sure what you mean with "grab focus" I can't find any issue with this.. I can queue multiple copy operations after each other with not issue.. Not sure what the issue it ?

I notice on the Find dialogue that the old setting for search within results is no longer present. I'm guessing that it can in most instances be replaced with a Regex, but is there any likelihood that that switch will be returning?
The new FileSearch do not support that yet.. It is planned to add it again.. But almost nobody was really using it so it is not highest priority.

I haven't looked too closely at the script/internal commands relating to the new Find Filters yet. :-[   But  I wondered if I could assign a MC command or script a button to use a find preset & then use that as a selection to be assigned to a following operation.
E.g.  Find <filter selection preset> & move selection to opposite pane.
Not yet







Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on November 26, 2016, 17:28:23
As of build 2290 The first "Preview" of the TabSessions feature is now included.

Before you had to script it your self using MultiScript. But now there is starting to be built in support for it.

Menu > File > Tab Sessions

   Select "Save As" to save current tab layout to a session that you then can Quickly swap to.
    In "Tab Sessions Manager" dialog you can remove and tweak the sessions. There is still a lot missing there. It is very much under development right now so a lot can change.


 
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on November 27, 2016, 17:05:11
TabSessions will be useful.  Quite a lot for me to play with.  ;D
 Thanks Mathias ;)
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 06, 2016, 21:58:44
As of 2294 the TabSession  should start to work a lot better.. Test it and let me know of any issue.
Let me know if the TabSession also should store any special other setup. Like if button panel should be visible or not. or something else.


Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 07, 2016, 12:25:39
Testing Tab Sessions in 2294.  Two issues arise:

1. When loading a saved session, I get the "Tab is locked - close it any way?" Dialog for every locked tab in the current session. Yuk!

2. The double hotkeys for saved sessions do not seem to work.  I saved my "Default Session" to slot #1, but ctrl+0, ctrl+1 does nothing.

Or is it me?
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 07, 2016, 13:10:22
Testing Tab Sessions in 2294.  Two issues arise:

1. When loading a saved session, I get the "Tab is locked - close it any way?" Dialog for every locked tab in the current session. Yuk!

2. The double hotkeys for saved sessions do not seem to work.  I saved my "Default Session" to slot #1, but ctrl+0, ctrl+1 does nothing.

Or is it me?

1. It is because you have locked tabs. 

2. Slots does not work . and might be removed.
1 is the first , 2 is the seconds and so on.
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 07, 2016, 14:21:09
Hi Mathias.

I know why I get the dialogs, but that is not a very user-friendly way to restore tab sessions, IMHO.

Are you saying that:
Quote
ADDED - Double Hotkey for to Switch TabSession Ctrl+O and then Ctrl+1 to switch to first TabSession, and Ctrl+O + Ctrl2 for second and so on, up to 0
does not work at all?
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 07, 2016, 16:33:14
Quote
Are you saying that:
Quote
ADDED - Double Hotkey for to Switch TabSession Ctrl+O and then Ctrl+1 to switch to first TabSession, and Ctrl+O + Ctrl2 for second and so on, up to 0
does not work at all?

Works everytime for me..  Ctrl+O (O as OPEN not Zero) ,Followed by Ctrl+1 to switch to the first TabSession that is defined,  Ctrl+2 for the second..
But Ctrl+O always first..     So you press 2 hotkeys..  Like many of the extended hotkeys you find in Visual Studio, Office and other MS products what have lots of features.

(If you already defined something else for Ctrl+O the default Ctrl+O might be override...)
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 07, 2016, 23:34:11
Hi Mathias.

My bad - I read that as "Ctrl + zero".

But the "tab is locked..." dialog for every locked tab is still a pain in the ass!!

Thanks for the clarification.
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 09, 2016, 23:08:03
Seems my random selection issue is back since installing b2294 re:-
http://forum.multicommander.com/forum/index.php/topic,1877.msg7080.html#msg7080
--tripped me up a quite few times today.  :-\ 
Seems to follow the mouse some of the time.  I.e. if I sweep the mouse up & select, the selection will be rising in a block to the clicked item, & mouse moving down & clicking selects randomly above clicked item.  This is without using <shift> or <ctrl>.
Not always the case though as I had the selection of every file above the clicked item a few times.  I cannot pin down a pattern, but it happens...  ???  maybe I need to delete the mouse driver & see what happens.

I wondered ref. the quick filter box (bottom right of pane), is there is a way to enter "-" as I can only use it as an exclude modifier?
I can always run a rename first & after but had sto ask ;)

Thanks for the update Mathias :)
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 09, 2016, 23:44:09
Seems my random selection issue is back since installing b2294 re:-
http://forum.multicommander.com/forum/index.php/topic,1877.msg7080.html#msg7080
--tripped me up a quite few times today.  :-\ 
Seems to follow the mouse some of the time.  I.e. if I sweep the mouse up & select, the selection will be rising in a block to the clicked item, & mouse moving down & clicking selects randomly above clicked item.  This is without using <shift> or <ctrl>.
Not always the case though as I had the selection of every file above the clicked item a few times.  I cannot pin down a pattern, but it happens...  ???  maybe I need to delete the mouse driver & see what happens.
Well Back, well depend on how you see it :) The issue have never been "fixed" since I have never been able to reproduce it

I wondered ref. the quick filter box (bottom right of pane), is there is a way to enter "-" as I can only use it as an exclude modifier?
I can always run a rename first & after but had sto ask ;)
You can click the filter icon and use advanced filters..
and you can try to use double --  it works in some situations.


Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 10, 2016, 11:40:40
Thanks Mathias.  I will try defining an advanced filter.
I have a MS mouse & although I do not use the feature it has 'gesture' capability & I wondered if it somehow was being called when MC is active for some reason.  So I am going to mess with drivers for a bit ;)
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 10, 2016, 15:35:45
Thanks Mathias.  I will try defining an advanced filter.
I have a MS mouse & although I do not use the feature it has 'gesture' capability & I wondered if it somehow was being called when MC is active for some reason.  So I am going to mess with drivers for a bit ;)

Im not sure how the gesture thing works.. I don't think so..
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 10, 2016, 15:39:54
in bulid 2296

Tab Session is starting to be complete.
If you miss any features/options around the tab sessions. Now is the time to let me know.. else it might take longer for it to be added.

Also the Default hotkey for the DoubleHotKey to switch tab session is change..  From Ctrl+O to Ctrl+I
So Ctrl+I followed by Ctrl+1 will switch to TabSession 1 and so on.

But each TabSession item is also its own command you can can assign separate keys to each tab session if you want.

If everything goes as planned next weekend (17-Dec) will be RC release. (or maybe even sooner)
So count this release as PreRC :) So any minor issues you find around stuff that been changed lately. Please report them asap. Final version will be out before end of year.
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 10, 2016, 16:50:50
Build 2296.

Hi Mathias,
  Tab Sessions now deals correctly with locked tabs (well done!).

However, there is a truncated string in the Manage Sessions screen; should be "Session Name", I guess, but reads "Sessio" (see attached screenshot).

Shame you dropped slots - I was just getting used to using them  :(
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 10, 2016, 16:58:41
Build 2296.

Hi Mathias,
  Tab Sessions now deals correctly with locked tabs (well done!).

However, there is a truncated string in the Manage Sessions screen; should be "Session Name", I guess, but reads "Sessio" (see attached screenshot).

Shame you dropped slots - I was just getting used to using them  :(
Yes, I notice that right after I publish the beta. I had fixed that but I forgot to send that change to the server, So it got not include into the build that was published.. Whops :)
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 10, 2016, 17:00:09
Well, nobody's perfect ;)

Any plans to bring back slots at some stage...?
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 10, 2016, 17:08:45
Well, nobody's perfect ;)

Any plans to bring back slots at some stage...?

Not sure. Maybe, There are issues with it. because it collides with how the normal commands for them are setup
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 10, 2016, 17:23:50
Maybe I have misunderstood something here...

I assumed the Session stored in slot #1 would accessed by Ctrl+I, Ctrl+1; the Session in slot #2 by Ctrl+I, Ctrl+2, and so on.  Was that correct?

If I cannot assign slots, what determines which hot key access which Session?


TIA
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 10, 2016, 17:39:52
Maybe I have misunderstood something here...

I assumed the Session stored in slot #1 would accessed by Ctrl+I, Ctrl+1; the Session in slot #2 by Ctrl+I, Ctrl+2, and so on.  Was that correct?

If I cannot assign slots, what determines which hot key access which Session?


TIA

The order they are stored in and show up in the menu when loaded.
Menu > File > Tab Session
You have the session there as  "Session #1 : blabla"  it is Ctrl+I,Ctrl+1,  the one that is #2 is Ctrl+I,Ctrl+2 and so on.
And you can have up to 10.
And this 10 command are actually connected to 10 internal command that you also see in if you look in Keyboard customization dialog.
Problem with moving them around in the dialog with "slot" is that they then also need to move around in the menu so they are connected to the correct internal command.

So some way to rearrange them might be needed in the dialog. But Im not sure the way it was is the correct way.
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 10, 2016, 19:53:16
Thanks Mathias.

I kinda guessed that was the issue.

Happy with the final result - you probably want to hear that I can't break it so far ;)

VERY  useful feature :)
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 11, 2016, 13:38:30
Thanks Mathias.

I kinda guessed that was the issue.

(Build 2298)
I redesigned some internal stuff. So the 'Slot' options should work now.
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 11, 2016, 19:05:51
Thanks for that!

I have managed to crash Build 2298 (but in an - admittedly - unusual way ;) )...

I created an expermental tab session with only C: on the left and D: on the right pane and saved it as "Root Tabs".  It showed correctly in slot #2.

I then switched back to Session #1 with Ctrl+I, Ctrl+1, but - by accident - hit Ctrl+I, Ctrl+2 (ie., the new session hotkey for the newly-created session in slot #2).  A crash report was created & sent to you & (of course) MC exited "ungracefully".

I realise that this sequence of events will not normally happen, but users do the strangest things ;)  And that is what Beta testing is all about.

Please take a look at the report & let me know if you need more info.
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 11, 2016, 19:41:36
Thanks for that!

I have managed to crash Build 2298 (but in an - admittedly - unusual way ;) )...

I created an expermental tab session with only C: on the left and D: on the right pane and saved it as "Root Tabs".  It showed correctly in slot #2.

I then switched back to Session #1 with Ctrl+I, Ctrl+1, but - by accident - hit Ctrl+I, Ctrl+2 (ie., the new session hotkey for the newly-created session in slot #2).  A crash report was created & sent to you & (of course) MC exited "ungracefully".

I realise that this sequence of events will not normally happen, but users do the strangest things ;)  And that is what Beta testing is all about.

Please take a look at the report & let me know if you need more info.

Damn,, I will fix that.. You dont have to access via shortcut. It will fail when trying to access any newly created.
Workaround is to go into TabSessionmanager and do any change so it is resaved (And it is then reload.. that that fixes it) or restart MC.

*edit*
I will actually push out a new release with this fixed asap (2299). Since it kind of breaks the new feature that should be tested :)
Title: Re: Multi Commander 6.5 BETA
Post by: AlanJB on December 11, 2016, 23:19:42
Thank you my friend - so far, so good in 2299 :)
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 12, 2016, 13:36:20
Thanks Mathias.  I will try defining an advanced filter.
I have a MS mouse & although I do not use the feature it has 'gesture' capability & I wondered if it somehow was being called when MC is active for some reason.  So I am going to mess with drivers for a bit ;)

Im not sure how the gesture thing works.. I don't think so..

Realized that I should probably have posted these msgs in the other thread :(

I spent some time with the MS drivers & with this latest 2299 build & different intellipoint drivers the problem has gone away.  Hopefully it is *fixed* now!
I can now get back to causing trouble with the MC scripting  :D
Title: Re: Multi Commander 6.5 BETA
Post by: Suncatcher on December 14, 2016, 15:39:56
I noticed new icons for folders, and they are cool! Implement them in the release :)
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 14, 2016, 16:28:51
I noticed new icons for folders, and they are cool! Implement them in the release :)

No. There are no new icons.
The Icons for folders comes from Windows. It is the icon that Windows gives MC when MC ask for the icon for that item.
Title: Re: Multi Commander 6.5 BETA
Post by: Suncatcher on December 14, 2016, 16:35:48
Well, maybe it's because I use MC on both Win7 and Win10, and Win10 icons look sleeker, what I've never noticed)
Title: Re: Multi Commander 6.5 BETA
Post by: Tom on December 15, 2016, 20:37:35
-- Build 2276  - 22-Okt-2016
  ADDED - Tweak settings for ExplorerPanel : "Send file to commandline field also takes the input focus"
  ADDED - ExplorerPanel send current item to command line field (Ctrl+Return / Ctrl+Shift+Return)
          will now add trailing slash to folders and only quote characters if it have spaces

Thanks Mathias, that is exactly what I requested and what I need.

BTW, still waiting for correct handling of *.cmd in command line bar and the possibility to send the directory of left or right (resp. above or buttom) panel directly to the command line. Due to this missing features I use MC actually only at home not at work.
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 18, 2016, 15:02:08
Just updated to b2301 & my weird selection thing  (http://forum.multicommander.com/forum/index.php/topic,1877.0.html (http://forum.multicommander.com/forum/index.php/topic,1877.0.html)) has returned. :(

There is one other odd thing that seems to be happening - when clicking back - MC normally goes to the last selected file/folder, now it might decide to go up a level to the root above instead. 
Think this has happened 5 times out of 10 today from the same folder with <200 files to one above with >100 folders - not very clear as to why.  It is the same folder that is generating my selection problem though.  ???

Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 18, 2016, 16:03:52
Just updated to b2301 & my weird selection thing  (http://forum.multicommander.com/forum/index.php/topic,1877.0.html (http://forum.multicommander.com/forum/index.php/topic,1877.0.html)) has returned. :(

There is one other odd thing that seems to be happening - when clicking back - MC normally goes to the last selected file/folder, now it might decide to go up a level to the root above instead. 
Think this has happened 5 times out of 10 today from the same folder with <200 files to one above with >100 folders - not very clear as to why.  It is the same folder that is generating my selection problem though.  ???

There is almost no change between 2301 and previous.. so it can be because of that.

But if it does back all the way to the root then something told MC that it did not have access to scan the current path anymore, and it will revert path to a path that it have access to.

Or if it is just what item in focus that are changing then maybe you uncheck the option "Remember file/Folder in focus when changing path" ?   (ExplorerPanel Settings > Display (tab) > Selection and Checking of items (section)

(You can also try to turn off auto refresh when MC is reactivated.  In Settings > FileSystem (Tab) > Tweaking (section) , Unhceck "Refresh tabs when application focus is returned to MC" However that can make it so some tabs some times are not refresh when you expect it it. You then have to press F2/F5 (refresh) your self) )
 
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 19, 2016, 16:04:38
Thanks for the reply Mathias.

I only needed to Unhceck "Refresh tabs when application focus is returned to MC"  to match your suggestions. 
So far it has not randomly jumped again today. 
It started jumping about in folders containing mixed files & folders after I posted, the example I gave originally was files only in a nested folder.
This reminded me of something that had happened a few builds back that had been fixed.

This may be unrelated to the build but this is very noticeable also (it came & went a few builds back if you recall) - why would a script slow down folder navigation (hold focus) & can I do anything about it?
eg I have a script to rename & move a file.----

If I simply move the file I can immediately navigate away from the folder whilst the process occurs. 
Today I noticed that I must now wait until the copy/move op is completely finished before I can navigate away up the tree.

Is it the mix of MC custom command & script perhaps?
This is my button script:-

Code: [Select]
Log( 1, 10, "Renaming files to %%parent_folder_name%%[_N].*" );

@var $src_path = GetSourcePath();
@var $arr = PathGetParts( $src_path );
@var $name = $arr[0];
@var $prefix = StrReplace( PathGetPathPart( $src_path, 1 ), $name, "" );

@var $n = StrRFind( $prefix, "\\" );

if ( $n > 0 )
{
  $prefix = StrSub( $prefix, $n + 1, StrLen( $prefix ) - $n - 1 );

  @var $i;
  @var $s;
  @var $file;
  @var $files;

  $arr = GetSourceSelectedPaths();

  for ( $i = 0; $i < arrayCount( $arr ); $i++ )
  {
    $file = $arr[$i];
    $s = PathGetFileExtPart( $file );
    $name = $prefix + "*" + $s;

    $files = FindFiles( $src_path + $name );
    $n = arrayCount( $files );

    if ( $n == 0 )
    {
      $s = "";
    }
    else
    {
      if ( $n == 1 )
      {
        $s = $files[0]; 
        RenameFile( $s, StrReplace( $name, "*", "_0" ), "RENAME_RO" );
      }

      $s = "_" + numtostr( $n );
    }           

    RenameFile( $file, StrReplace( $name, "*", $s ), "RENAME_RO" );
  }
}
else
{
  Log( 1, 10, "It seems parent folder is root. Renaming impossible." );
}

// move

@var $arr1 = GetSourceSelectedPaths();
@var $items1 = arrayCount($arr1);
@var $MoveNameFullPath;
@var $targetPath;
@var $sourceFile;
@var $n1 = 0;

for( $n1 = 0; $n1 < $items1; $n1++ )
{
  $MoveNameFullPath = $arr1[ $n1 ];
  $targetPath = GetTargetPath();
  $sourceFile = $MoveNameFullPath;
 
  MoveFile( $targetPath, $sourceFile, "NODIALOG");
 
}
Title: Re: Multi Commander 6.5 BETA
Post by: Mathias (Author) on December 19, 2016, 21:47:28
This may be unrelated to the build but this is very noticeable also (it came & went a few builds back if you recall) - why would a script slow down folder navigation (hold focus) & can I do anything about it?
eg I have a script to rename & move a file.----

If I simply move the file I can immediately navigate away from the folder whilst the process occurs. 
Today I noticed that I must now wait until the copy/move op is completely finished before I can navigate away up the tree.

Is it the mix of MC custom command & script perhaps?
This is my button script:-

Code: [Select]
Log( 1, 10, "Renaming files to %%parent_folder_name%%[_N].*" );

@var $src_path = GetSourcePath();
@var $arr = PathGetParts( $src_path );
@var $name = $arr[0];
@var $prefix = StrReplace( PathGetPathPart( $src_path, 1 ), $name, "" );

@var $n = StrRFind( $prefix, "\\" );

if ( $n > 0 )
{
  $prefix = StrSub( $prefix, $n + 1, StrLen( $prefix ) - $n - 1 );

  @var $i;
  @var $s;
  @var $file;
  @var $files;

  $arr = GetSourceSelectedPaths();

  for ( $i = 0; $i < arrayCount( $arr ); $i++ )
  {
    $file = $arr[$i];
    $s = PathGetFileExtPart( $file );
    $name = $prefix + "*" + $s;

    $files = FindFiles( $src_path + $name );
    $n = arrayCount( $files );

    if ( $n == 0 )
    {
      $s = "";
    }
    else
    {
      if ( $n == 1 )
      {
        $s = $files[0]; 
        RenameFile( $s, StrReplace( $name, "*", "_0" ), "RENAME_RO" );
      }

      $s = "_" + numtostr( $n );
    }           

    RenameFile( $file, StrReplace( $name, "*", $s ), "RENAME_RO" );
  }
}
else
{
  Log( 1, 10, "It seems parent folder is root. Renaming impossible." );
}

// move

@var $arr1 = GetSourceSelectedPaths();
@var $items1 = arrayCount($arr1);
@var $MoveNameFullPath;
@var $targetPath;
@var $sourceFile;
@var $n1 = 0;

for( $n1 = 0; $n1 < $items1; $n1++ )
{
  $MoveNameFullPath = $arr1[ $n1 ];
  $targetPath = GetTargetPath();
  $sourceFile = $MoveNameFullPath;
 
  MoveFile( $targetPath, $sourceFile, "NODIALOG");
 
}

The scripts are run in the same thread so the UI. so the control is not returned back to the UI until the script have finished.

Running the script in the background is possible. But it is not officially supported since you really need to understand threads and the issues with them and race condition.
For example If the script you have above was run in the background.  what would happen if you during the execution of the script moved focus to another tab or location ?
The GetTargetPath() would all of a sudden would to start to return a different path.
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 20, 2016, 16:45:59
The scripts are run in the same thread so the UI. so the control is not returned back to the UI until the script have finished.

Running the script in the background is possible. But it is not officially supported since you really need to understand threads and the issues with them and race condition.
For example If the script you have above was run in the background.  what would happen if you during the execution of the script moved focus to another tab or location ?
The GetTargetPath() would all of a sudden would to start to return a different path.

Ahaa.  That makes sense. Thanks for the info Mathias :)
Title: Re: Multi Commander 6.5 BETA
Post by: Ulfhednar on December 27, 2016, 18:36:57
Strange filter behavior

(Using b2303 w7x64)
I set up an advanced filter for folders >1mb made within the last 2 days, (In the file matching tab I have only the default entry of *).  See pic.
If folders have been size calculated the filter works but when I click 'show all' or enter *.* manually, I get nothing displayed in the pane.   ???
Using F5 or the 'refresh' icon does nothing.  I can only re-display the items in the pane by navigating away & then back.
Broken?