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 6 7 8 ... 23
76
Support and Feedback / Re: My standard toolbar is incomplete
« on: November 19, 2023, 20:13:25 »
Menu > View > Toolbars > File Commands ?

77
Support and Feedback / Re: unreadable fonts after change of OS
« on: November 14, 2023, 16:10:21 »
Is it only MC-related issue or other apps are also affected?

78
Support and Feedback / Re: Files are selected when using Drag&Drop
« on: October 24, 2023, 18:04:37 »
Sorry,I typed the wrong option. You should check “Configuration - Explorer Panel Settings - Display - Selection and Checking of items - Unselect other files and folders when single selecting”

And now it is impossible to select multiple files. What magmalive (and me too) would like to see is clearing selection after drag'n'drop.

79
1. Open Multiscript debugger
2. Invoke some function which waits for user response (e.g. AskText);
3. Close Multiscript debugger
4. Close dialog box shown by AskText

Result: MC freezes.

80
Support and Feedback / Re: Create URL shortcut?
« on: October 23, 2023, 20:55:59 »
JPCoetzee, try this MultiScript

Code: [Select]
@var $shortcut_name = AskText( "Enter shortcut name:", "", 0 );

if ( 0 == StrLen( $shortcut_name ) )
{
  return;
}

//@var $url_name = GetClipboardText();
@var $url_name = "";

$url_name = AskText( "Enter shortcut URL:", $url_name, 0 );

if ( 0 == StrLen( $url_name ) )
{
  return;
}


$shortcut_name = GetSourcePath() ^ $shortcut_name + ".url";
$url_name = "URL=" + $url_name;

@var $content[];

arrayAdd( $content, "[InternetShortcut]" );
arrayAdd( $content, $url_name );

@var $result = SaveArray( $shortcut_name, $content, 0, 1 );

if ( 0 == $result )
{
  MessageBox( "Error", "URL shortcut was not created!", 0 );
}

81
Support and Feedback / Re: Start folders
« on: October 19, 2023, 21:01:24 »
You can manage sessions via File > Tab sessions

Open desired tabs, then save this session. In menu File > Tab sessions choose Manage... you can now select this session and mark it as startup

82
Support and Feedback / Re: Create URL shortcut?
« on: October 17, 2023, 19:03:07 »
URL shortcut to a file? Could you explain in details? It might be possible via MultiScript.

83
Support and Feedback / Re: Go to first file
« on: October 11, 2023, 20:27:15 »
You may create user defined command of type "Multi-Script" and bind it a to a shortcut or/and put it to the quicklaunch bar or button bar.

Code: [Select]
@var $src_path = GetSourcePath();
@var $names = GetSourceItems();

@var $count = arrayCount( $names );
@var $i;

for( $i = 0; $i < $count; $i++ )
{
  @var $file = $src_path ^ $names[ $i ];
  @var $result = FileExists( $file );
 
  if ( 1 == $result )
  {
    MC.Explorer.SetItemFocus ITEM="{$names[ $i ]}"
    break;
  }
}

I'm not sure about performance in case of too many files/folders. Also I haven't tested it with different sorting styles.

84
I've enabled hidden/system files showing, so they're displayed in the explorer panels and can be obtained via MultiScript function GetSourceItems().

But there're some files like e.g. pagefile.sys and swapfile.sys which "don't exist" for the FileExists() function. It means that function returns 0. I consider it a bug. As long as they exist in the filesystem and MC is able to "see" them, they should as well be visible to FileExists() function (and to others possibly affected).

Win 10/11, MC v13.1.2955

85
I've created a password-protected *.7z archive via 7z File Manager (official GUI).

When I enter such archive and try to copy some file via F5, password dialog appears which shows entered symbols instead of "*"

If I enter wrong password, MC freezes

86
I have a bitlocker password-protected drive. When I connect and try to access it via MC, nothing happens. When I try to access it via Windows Explorer, Bitlocker password dialog appears. After unblocking the drive becomes available in MC.

Is it possible to add this behaviour to MC?

1. Attempt to access a drive
2. Invoke password dialog
3. If unblocked -> show drive contents

87
I've created a password-protected *.7z archive via 7z File Manager (official GUI).

When I enter such archive and try to copy some file via F5, password dialog appears which shows entered symbols instead of "*"

If I don't enter an archive but unpack it via Alt+F6, password dialog shows "*"

---

I've also created a password-protected *.zip archive via 7z File Manager (official GUI).

When I enter such archive and try to copy some file via F5, password dialog appears. If I press Esc, password dialog reappears.

If I don't enter an archive but unpack it via Alt+F6, password dialog is correctly closed via Esc and is not reshown.

MC v13.1.2955 x64 Portable

88
1. Enable hover preview
2. Move the mouse over some pdf file and wait for preview to appear

Results:
  • preview window can't be closed neither by Esc nor by moving the mouse over other files (even in the opposite panel);
  • it stays on top even after switching to other application;
  • it disappears after closing the tab (Ctrl+W);
  • after closing the tab Hover Preview no longer works for that panel (but still works for the opposite one).
P.S. I haven't changed the settings. Just updated MC from the previous version and left everything "as is".
P.P.S MC v13.1 b2955, Win 11 x64

89
1. Open some txt file in MDV
2. Type some text in the "Find" field
3. Press Ctrl+A

Expected: all the text in the "Find" field is selected
Result: all the text in the view area is selected

90
Support and Feedback / Re: How to change the tab color?
« on: February 27, 2023, 12:13:47 »
Core Settings > Colors

91
Support and Feedback / Re: Call ImageMagick to convert file format
« on: January 28, 2023, 17:46:24 »
2. Menu Help > MultiScript debugger...

1. I'm almost sure that PathGetNamePart( ${sourcefocusname}, 1).webp will not work inside ARG="...". I think you would need to write something like
Code: [Select]
@var $path = GetSourceFocusPath();
@var $new_name = GetSourcePath() ^ PathGetNamePart( $path, 1 ) + ".webp";

MC.Run CMD="D:\ImageMagick\convert.exe" ARG="${focusfilepath} ${new_name}";

92
Double click on empty panel will open a tab with default path (which can be changed in Explorer Panel setttings > Display > Tab > Default settings for new tab)
It is also possible to load existing tab set or session (File > Tab; File > Tab Sessions)

93
Support and Feedback / Re: Custom date format for F9 shortcut
« on: January 20, 2023, 17:45:26 »
You can create a User Defined Command of MultiScript type and bind it to a hotkey or insert it on QuickLaunch bar. The simple one could look like

Code: [Select]
@var $now = GetTime();
@var $date = FormatDate("dd-MM-yy" , $now);
@var $path = GetSourcePath() ^ $date;
MakeDir($path);

If you'd like to have different formats available.
Code: [Select]
@var $now = GetTime();
@var $options[];

arrayAdd( $options, FormatDate("dd-MM-yy" , $now) );
arrayAdd( $options, FormatDate("dd-MM-yyyy" , $now) );
arrayAdd( $options, FormatDate("yyyy_MM_dd" , $now) );
arrayAdd( $options, FormatDate("ddd MMM yyyy" , $now) );

@var $o = AskOption( "Make new dir: select date format", $options, 0 );
if( $o > -1 )
{
  @var $path = GetSourcePath() ^ $options[$o];
  MakeDir($path);
}

94
Support and Feedback / Re: Multi-Rename Syntax
« on: January 01, 2023, 17:08:42 »
What do I have to put in "Find" and "Replase with" so that everything disappears behind the first "["?

In Multirename
- check RegEx
- select Replace only name
- in Find edit box type (.*)( \[.*)
- in Replace edit box type $1

Test on fake files at first

95
Feature Requests and Suggestions / Re: Multiscript StrSplit improve
« on: December 10, 2022, 17:20:26 »
Is Option 2 really needed ? if you enter many delimiters . dont you always want it to split at the position where any of the delimiters are found ? (option 1 ?)

Actually, there may also be 3 option :) The first char of the delimiter param would be the delimiter (";" in the code above). If not found, then the second one etc. So:
- 1st from the input string disregarding delimiters order
- 1st from the input string regarding delimiters order
- 1st from the delimiter string disregarding input string index

96
Feature Requests and Suggestions / Re: Some ideas
« on: December 10, 2022, 16:51:33 »
1)
When you have selected several files, and using the windows hotkeys, pressing f2 should open the multirenamer windows, with those files already loaded.

If you want to open MultiRename dialog with F2, it can be done via Menu Configuration > Keyboard Customization

97
So you mean if you set target name like  CopyFile ("C:\NewFile.txt" , C:\MyFile.txt" , "NODIALOG, OVERWRITE_ALL" );
It does not work ?

Code: [Select]
# Error "Source and Target file are the same. Cannot copy a file to itself"
# (err.png)
@var $res = CopyFile("d:\\temp\\abc.txt", "d:\\temp\\1.txt", "NODIALOG")

# $res = 1, but file is not copied
$res = CopyFile("d:\temp\abc.txt", "d:\temp\1.txt", "NODIALOG")

# Shows copy dialog with wrong destination path (err2.png),
# but produce no error, file is not copied
$res = CopyFile("d:\temp\abc.txt", "d:\temp\1.txt")

98
Feature Requests and Suggestions / Multiscript StrSplit improve
« on: December 09, 2022, 14:37:47 »
Now delimiter param in StrSplit function is used as a single separator. It means that the following code will not split input string

Code: [Select]
@var $str = "123,|456;|,789";
@var $arr = StrSplit($str, ";|,");

I request additional optional param like any_char (0/1):
- with the value 0 the function would have current behaviour;
- with the value 1 the character of the delimiter which has the lowest index in the input string would be used as a delimiter (so in the code above it would be "," char)
- with the value 2 the first found char of the delimiter would be used as a delimiter (so in the code above it would be "|" char)

99
Here's updated version with simple CSV parser. Please, don't use in production! :)

Usage example:
 - paste this script into the MultiScript debugger
 - focus your CSV-file on the target panel
 - switch to source panel and select xml-files
 - return to debugger and run

Code: [Select]
# parse csv S&R file
function ParseCSV($file, $separators, $quote_chars)
{
  if ( !(StrLen($separators) == 1) )
  {
    $separators = ",";
  }

  if ( StrLen($quote_chars) == 0 )
  {
    $quote_chars = "\"";
  }

  @var $reg_ex = "^([" + $quote_chars + "])(.*)\\1$";

  @var $lines = LoadArray($file);
  @var $lines_cnt = arrayCount($lines);

  # single-string multiline S&R patterns
  # $pattern[0] - search pattern, $pattern[1] - replace pattern
  @var $pattern[2] = {"", ""};

  @var $i;
  for ($i = 0; $i < $lines_cnt; $i++)
  {
    # $pair[0] - search pattern, $pair[1] - replace pattern
    @var $pair = StrSplit($lines[$i], $separators);

    # invalid line
    if ( !(arrayCount($pair) == 2) )
    {
      continue;
    }

    # append unquoted patterns
    $pattern[0] = $pattern[0] + StrRegExpReplace( $pair[0], $reg_ex, "$2" ) + "\n";
    $pattern[1] = $pattern[1] + StrRegExpReplace( $pair[1], $reg_ex, "$2" ) + "\n";
  }

  return $pattern;
}

###

@var $sar_file    = GetTargetFocusPath();
@var $sar_pattern = ParseCSV($sar_file, ";", "\"`");

if ( ( StrLen($sar_pattern[0]) * StrLen($sar_pattern[1]) ) > 0 )
{
  @var $sel_files = GetSourceSelectedPaths();
  @var $sel_count = arrayCount($sel_files);

  @var $n;
  for($n = 0; $n < $sel_count; $n++)
  {
    @var $file = $sel_files[$n];
    @var $new_file = "*_new.*";

    MC.Utils.FindAndReplace MODE="Many" FIND={$sar_pattern[0]} REPLACEWITH={$sar_pattern[1]} FILE="{$file}" TARGET="{$new_file}" SILENT REPLACEALL OVERWRITE
  }
}

I haven't stress-tested it.

100
Documentation / Re: Missing Documentation - Status
« on: December 08, 2022, 17:26:38 »
StrRegExpReplace description is missing

Pages: 1 2 3 [4] 5 6 7 8 ... 23