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 - Mathias (Author)

Pages: [1] 2 3 4 5 ... 177
1
From Build 3036 (beta) there is now a new function that can be used to be able to colors folder with no files.. (subfolder are not counted as files)

It is a bit tricky and many steps to connect everything together.

Create a User defined Command
Create a Userdefined command of type MultiScript
Code: [Select]
#options (AllowAsFileProp)
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
  @gvar $_FILEPROP_FILEPATH = GetSourceFocusPath();
}

@var $isEmpty = "";
@var $isFolder = IsFolder($_FILEPROP_FILEPATH);

if($isFolder)
{
    $_FILEPROP_FILEPATH = $_FILEPROP_FILEPATH  ^ "*";
   @var $found = FindFirstFileEx($_FILEPROP_FILEPATH, "SUBFOLDERS,ONLYFILENAME, IGNOREFOLDERS");
   if(!StrIsEqual($found, ""))
   {
     $isEmpty = "Empty";
   }
}

@var $_FILEPROP_DISPLAYNAME = $isEmpty;

Save it.

Define a Scriptable File Property (Column in filelist)
Right click on column header and go to customize.
Click the Script button at the side to define a new Scriptable file property.
Create a new, and from the Dropdown select the MultiScript function you created before. It should be shown in the dropdown list.
Save it
Then Add That scriptable column to the columns that should be show.

Create a File Coloring Rule.
Click on color wheel icon and and Select File Coloring Rules Editor.
Add a new rules and enter a name for it. (rules are matched from top to button, so if you have multiple rules maybe you need to move it to the top so it is not overwritten by anohter rule)
And click Modify rules.
Select "Plug-in (Extended Properties)"
Add New
Then select the scriptable column you defined before
In Text matching selet "IS" and "Empty"
Then save it configure the color you want for that rule and then save it

The only current issue is that the scriptable column need to be shown for it to work.




2
Depending on the size you set , However a 0/100% split is not saved. Hiding one panel is not saved becuse the panel is still there. and you can still do things to it, MC is designed around a source/target panel pattern. And many things in MC is using that.
You can force do it using script that starts at startup. but it is highly not recommended because of the why MC works.

3
Thank you.

Quote
So you want it to return directly if it finds any files. Not sure you can do that efficient with script yet.
I have not yet looked at the scripting limitations. Are you saying that the script does not have a return command that you could call if it encounters a file? Seriously? Well, as I just said, I will yet have to look at the scripting. Maybe it works differently than I would expect?

Yes you can return from script when you want.. That is not the problem.
The script commands are simpler then normal API. You can do FindFirstFile() that return first match or get all items from a folder using FindFiles(..) But it return all matched files from a path.
That is  not be optimal if the folder has MANY files, And also you need to do the subfolder check in script. and issue new FindFiles call for each folder and walk down the folder tree.
It is possible but not optimal.

What is needed is a FindFirstFile that supports going down in subfolders.
I remember that I needed a script function like that for my self too.. so the next beta that will have FindFirstFileEx that support subfolders..



4
Hold Ctrl+Shift  (You get the Link overlay on the cursor )
Then when dropping you have a couple of different option you can do.

like if you want to Link the dropped file to that place, Or Replace the drop file with the file you drop on.
Or if You want to RUN the dropped file with the application you dropped it on.

5
I got it in my list, to add support for that with the file coloring.

Might be able to do with custom columns. and then a color rule for that, like you say.

Problem is that you do not want to get a list of all sub items that are recursive. That will cause performance issue.
So you want it to return directly if it finds any files. Not sure you can do that efficient with script yet. I will check.

6
Support and Feedback / Re: Unpack files function
« on: November 09, 2024, 14:01:39 »
Quote
Not sure what you issue is.
Quote
So my question still stands: I have an archive in panel A. I want to decompress it in panel B (that's why panel B is there - for convenience). My archive does not contain a top level directory so I want MC to create it for me, naming it like the archive. All in a single operation. How can I do that in MC?

OMG, man!

Yes OMG exactly.. This is how it already works..

I can select myfile.zip in panel A.. and just press enter in the unpack dialog and it gets unpack to panel b in a subfolder named after the zip archive.
What with how it already works today is different from what you describe..?




7
Support and Feedback / Re: Unpack files function
« on: November 09, 2024, 10:38:43 »
Quote
Most people expect unpack to end up in same folder. (since it was is happening by default in Windows explorer.)
This might be true to Windows Explorer, which does not have the other half, which the user can use for convenience.
MC is an orthodox file manager, meaning it has a dual panel interface. This is a very good idea, and all the operations and the default settings should be implemented considering this aspect. I am sure the other type of file managers, the Windows Explorer-like ones, also do things their way.
MC should not copy file managers from a different category.
Quote
But you can press the Target button and the entire path is change to the location of the Target panel.
and if you press the checkbox.. the default is change to always use the target panel location.
I know, but this does not help in any way with the creation of a directory for a single archive unpack.

So my question still stands: I have an archive in panel A. I want to decompress it in panel B (that's why panel B is there - for convenience). My archive does not contain a top level directory so I want MC to create it for me, naming it like the archive. All in a single operation. How can I do that in MC?
Can't please all. so by default it is the safest and most common way.

Not sure what you issue is. It does work like that.
You only have to check the checkbox ONCE.. it will remember that, and after that the target path will always be the target location. and it will place it in a folder named after the archive..




 

8
Support and Feedback / Re: Unpack files function
« on: November 08, 2024, 18:13:36 »
> That setting is if you select multiple files and want to unpack all of them into own subfolders.
Indeed, if the user selects more archives, the checkbox is automatically selected. A choice that seems a little odd to me.
I think the most common situation is that you want them into separate folders. it is also what is most safe. You risk overwriting files from other archive if you unpack them into same location

>By default it should unpack it into a folder named after the archive.
Yes, but this happens in the same directory the archive is.
Consider this scenario:
- in the left side I have an archive;
- I want to unpack it in the right side, in a directory with the same name.
How can I do that fairly common operation with MC?
Most people expect unpack to end up in same folder. (since it was is happening by default in Windows explorer.)
But you can press the Target button and the entire path is change to the location of the Target panel.
and if you press the checkbox.. the default is change to always use the target panel location.

What you also can do. Is to handle the Zip/7z as a folder and just browse into it and select that you want to copy and copy from it to target as normal,  You do not need to "unpack" to unpack an archive..


9
Support and Feedback / Re: Unpack files function
« on: November 08, 2024, 17:18:17 »
By default it should unpack it into a folder named after the archive..

That setting is if you select multiple files and want to unpack all of them into own subfolders..

10
Support and Feedback / Re: Archive testing function
« on: November 08, 2024, 15:09:27 »
The abort test issue look to be 7zip related

11
Support and Feedback / Re: Archive testing function
« on: November 08, 2024, 14:59:59 »
Test Hm might be that I forgot to update the Test interface after the latest changes. I will check

12
Support and Feedback / Re: Column autosizing in List view
« on: November 08, 2024, 11:17:44 »
Doing it in List mode is even worse. If you have many files, and just 1 file is very long, all then columns are very width And Alternative is to use dynamic size of each column, but then you run into other issue.
I don't remember all. But the code for it is there but disabled at the moment (This is was trying to do dynamic size for all columns in list mode). mostly because I never use list mode my self. If I get some over i might enabled it and see a simpler version can be added.


13
Picture viewer is getting rewritten in the beta, But Arrow key are used to move the image around when zoomed.
I think in previous version if you viewed multiple items you navigated using page up/dn and space/backspace.

Oh I see, hopefully we can map a key to it in the Beta Picture Viewer so that navigating images is a cinch.

No. First version of viewer is just to make it at par with the current viewer.. Then for next version after that new things are added.

14
Picture viewer is getting rewritten in the beta, But Arrow key are used to move the image around when zoomed.
I think in previous version if you viewed multiple items you navigated using page up/dn and space/backspace.

15
Support and Feedback / Re: Column autosizing in List view
« on: November 07, 2024, 23:14:41 »
What about optional wordwrap, multiline ?
For wordwrap to work, dynamic row height need to be supported, and it is not becuse of performance issue.. I would cause a noticeable draw delay when entering a folder with just a couple of 100 files.

16
Support and Feedback / Re: Column autosizing in List view
« on: November 07, 2024, 23:10:47 »
MC do display long file names.. up to over 4000+ characters, Just make sure you have a large monitor to view it

And MC do auto size column it is just turned off.

17
Support and Feedback / Re: Column autosizing in List view
« on: November 05, 2024, 16:40:42 »
So every time I enter a directory where I want to see long names I have to resize the Name column by double clicking the splitter?

If they are so long that they do not normally fit in the view.. you can also temporary switch to 100/0 view to use full with or go Top/Bottom splitting instead of left/right

Constant autosize the column every time you navigated in and out of folder made people kind of dizzy. specially if you navigate using keyboard and go fast in and out. So it was disabled.



18
Support and Feedback / Re: Column autosizing in List view
« on: November 04, 2024, 22:05:04 »
I am not sure we are on the right track here...  :D

The fact is that if MC wants to show long file names, it has to read the list of files, find the longest and adapt the column width to fit as many characters as possible.

Can you make this an automated process, like in the other file managers?
If you dubble click on header splitter between column it will auto size it. There is was full automatic before, But it was removed. Too messy when going in and out of folder and columns was resizing all the time automatically.

19
Support and Feedback / Re: Column autosizing in List view
« on: November 04, 2024, 16:19:02 »
Okay, unchecked the auto size of the columns. I can literally see no difference. It is exactly like the option does not have any effect.
I scroll through the list of files and I see about 50% of the name on all of them.

If you uncheck autosize, column should not resize it self when you make them very large.. and you can get a horizontal scrollbar.. that does not happen ?
Then you can dubble click on the divider between Name and the column you have next to it, and it will calculate the minimum size it can be set to change change the size to that

20
Support and Feedback / Re: Column autosizing in List view
« on: November 04, 2024, 15:45:41 »
Then you do NOT want autosize on.
Autosize column will adjust the columns to fit into the view, So when you adjust the size of date column for example., it will autosize the other columns so they still fit into the view.

Then you want to disable autosize so you can size the column and get an horizontal scrollbar

21
Support and Feedback / Re: sync view
« on: November 04, 2024, 07:51:24 »
currently not supported.. Something like that is on the "Things to add list"

22
Support and Feedback / Re: How to Drop&Run?
« on: October 12, 2024, 08:48:37 »
Drop to run in filelist conflict with the Copy and replace feature.. (Drag file to replace another)
I also would like to have the ability to just drop files on an executable or a batch file or else to launch it as a parameter. This would be much more useful to me than the replace option. It would be nice to be able to configure which behaviour should be used or to toggle it with an unused modifier key.
The workaround with Quick Launch Bar or Button panel is only useful when you only have few applications to use.
By now I have to temporarily switch to another explorer :( when I have to use this functionality although I use Multi Commander for all the other stuff.
If you drag and drop and hold CTRL+SHIFT while dropping on a .exe (so you get the Link overlay on the mouse icon) you get a popup menu whatr do to..  and there you have execute the exe with the dropped file as parameter

23
Should work in latest beta 3029

24
Beta Releases / v14.3 Beta
« on: October 10, 2024, 10:19:42 »

-- 3036 ( 2024-11-12 )
 FIXED - A case where color rules did not always refresh
 ADDED - MultiScript function "FindFirstFileEx" that also support recursive search
 ADDED - New PictureViewer - Gamma and Hue/Saturation can now be changed
 FIXED - New PictureViewer - Added icon and toolbar button for Slideshow and fullscreen
 ADDED - New PictureViewer - Image size shown in statusbar
 FIXED - New PictureViewer - Tooltips for toolbar buttons now using multilanguage system
 FIXED - New PictureViewer - Many minor fixed

-- 3034
 FIXED - New PictureViewer - Fixed icons in the toolbar
 FIXED - New PictureViewer - Key issue with keyboard navigation when zoomed
 FIXED - New PictureViewer - Can now show photo information like ISO,Exp,FNum (Press P in viewer)
 FIXED - New PictureViewer - Can now turn off "interpolation" for rendering.
 FIXED - New PictureViewer - Can now adjust brightness and contrast
 FIXED - When testing archive, The wrong colorprofile was used.
 FIXED - When testing archive the volume name is now also shown
 FIXED - When testing 7z archive and aborting. It said it was successful even if it was not.

-- 3033
 ADDED - If image is rotated in PictureViewer and is a JPG. it can be be rotated and saved lossless. (Unless size format is unusual)
 ADDED - Update Languages was missing

( Build 3032 - 2024-11-04 )
 CHANGE- MCPictureViewer extension rewritten to use WIC and D2D. Still missing some features.
 FIXED - When drag and dropping file on a .exe the option to start the exe with the dropped files as parameters that option was not always enabled
 FIXED - 3 Stability issues

( Build 3029 - 2024-10-10 )
 Added - After folder sizing you can enable columns that show number of sub files/folders items
 Added - During folder sizing on normal filesystem the UI will update during the process and you see the folder size increase.
 FIXED - Alias Editor now support type search
 ADDED - Option to always show tab list button
 FIXED - GetFolder Size now follow settings for how to handle links (Symlinks/junctions)
 CHANGE- Changed so when symlink is created. The target does not need to exists. Symlink are allowed to point to non existing files/folders.


Build 3032+
MCPictureViewer - The internal picture viewer has change from a 3rd party image component that is abandoned and not supported anymore to be using WIC (Windows Imaging Component).
WIC is using installed codec in Windows to decode and encode images. and as default on Windows more formats are supported then the old code.
Also the drawing of the images are now done using Direct2D instead of GDI, Allowing for better and faster rendering.

Currently the new MCPictureViewer support almost all the features that the old one did. Some are missing like changing brightness, HUE and so.
They might be added if needed.
Also some new features are planed. So If you have any features you would like to have in the picture viewer. lets me know and I will take them under consideration.

If you tweaked the FileType setup. Like changed what files type the viewer should react to. You might need to reset that.
To reset the FileType setup for Viewers. then go to Menu > Configuation > FileType Setup > Viewer (Tab)
And then press Reset. Then you will get several entries for MCPicture viewer. The supported file types times are split into different section
So that you easily can just remove one if needed.

Changes to Picture Viewer
* Now using WIC. More formats supported. both for viewer and converting. (Type ":wicformats" in commandline field to get a list of formats your machine support)
* Images are rendered with Direct2D. However it is rendered in a way to improve quality.  There will be a setting to disabled this so it can render pixel perfect so you see pixels.
* Picture Window has a toolbar most common commands for easy access. Some icons are not correct yet

Know Issues
* Some zoom issue that make the image jump a bit.
* If rotating a jpg in the viewer and then saving. Image is recodoed when saving.
  If the only modification is a rotate then a lossless rotate can be done

* Some icons are wrong
* Auto rotate, is not rotating when opening according to exif information
* Add Support for Encoding of WebP format, creating WebP is not supported by WIC (decoding "viewing" is)

New script function
FindFirstFileEx

FindFirstFileEx( <str> path, <str> options)

Options can be a comma separated list with
DBG - Show debug info in Appication log window
SUBFOLDERS - Scan all subfolders
ONLYFILENAME - Return only the filename, else whole path is returned
IGNOREFOLDERS - Ignore folders. Only search for a matcning File





25
Support and Feedback / Re: File symlinks not copied
« on: October 07, 2024, 16:51:25 »
Ah does not exists.. Yes it check when creating the file that the target exists..
Symlink can be created to none existing files/folders. So I think I can remove that check.

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