diff --git a/doc/en/cmds.html b/doc/en/cmds.html index 99d446b5..9d61c26c 100644 --- a/doc/en/cmds.html +++ b/doc/en/cmds.html @@ -233,7 +233,7 @@

2.1. Active Panel

cm_QuickView
cm_QuickView
Ctrl+Q
- Content of selected item shown in opposite panel (instead of a separate window).
As we navigate to next items, displayed content is updated. + Content of selected item shown in opposite panel (instead of a separate window).
See details here. cm_SortByName @@ -338,7 +338,7 @@

2.1. Active Panel

(absent) - will sort with descending order + will sort with ascending order Note: If any of these three parameters are not defined or are defined incorrectly; the default values for these parameters will be: panel=active, column=name and order=ascending. @@ -1134,7 +1134,7 @@

2.7. Miscellaneous

cm_LoadList
cm_LoadList(Beta version)
- Load list of files/folders from the specified text file (plain text file containing full file names, one per line).
+ Load list of files/folders from the specified text file (plain text file containing full file names, one per line). Use UTF-8 without BOM.

@@ -1281,7 +1281,7 @@

2.8. Mark

Note3: When specifying the "mask" parameter, please note you may also use predefined selection type simply by preceding the name of it with symbol ">" like "mask=>Pascal files".
Note4: When using filtering parameter "ignoreaccents=TRUE", the ligatured characters like "œ" for example will be evaluated as the sequence "oe". So for example "cœur" will match "coeur".
Note5: The fact to use parameters like "casesensitive" for example will not affect the subsequent usage the cm_MarkPlus with no parameters which will use the default same parameters of last time it was prompting the user.
- Note6: Regarding the "attr" possible parameter values, see the "The Searching for files with specific attributes." section in the "Find files" help file. The way to specify the filter regarding the attributes is the same.
+ Note6: Regarding the "attr" possible parameter values, see the "Searching for files with specific attributes." section in the "Find files" help file. The way to specify the filter regarding the attributes is the same.
Example1: "cm_MarkPlus mask=*.pas;*.dfm;*.dpr;*.inc casesensitive=false" This will select all the files matching the given filter mask (which is basically common Delphi source file extensions) and ignoring the case of the letters.
Example2: "cm_MarkPlus mask=*ecole*.docx ignoreaccents=true" This will select all the files matching the given filter mask (which is basically Microsoft Word document with the word "ecole" in them) ignoring the accents. This means it will select file with "école" and "ecole" in them since accent are ignored. @@ -1652,7 +1652,7 @@

2.10. Navigation

- + - +
cm_TargetEqualSource
Alt+Z
Show same directory in opposite panel.Open the directory of the active panel in the opposite panel.
cm_TransferLeft diff --git a/doc/en/configuration.html b/doc/en/configuration.html index 90886731..6a61ab97 100644 --- a/doc/en/configuration.html +++ b/doc/en/configuration.html @@ -325,10 +325,10 @@

2. Configuration

- - + + - +
Attributes in Unix/Linux (File Types)
File Types lettersWhat it stands for
b
block
c
character
b
block device
c
character device
d
directory
f
fifo
f
named pipe (FIFO)
l
symlink
s
socket
@@ -337,12 +337,12 @@

2. Configuration

If attribute should not be set, it must be replaced with the "-" symbol, unnecessary attributes should be hidden: symbol "*" means match any number of characters, symbol "?" means any one character. For example, ?r* (Windows) or ?r-* (Linux) will find all read-only files and folders.

You can use a color from the list or specify yours using the ">>" button.

Do not forget to click "Apply" button after customization.

-

Rules are applied strictly in reverse order: a rule higher in the list will overlap any rule below.

+

Double Commander checks the list from top to bottom until the first match: a rule higher in the list will overlap any rule below.


2.6. Keys

Keys

-

Here you can set the action on pressing some keys in the active file panel: Letters, Alt+Letters, Ctrl+Alt+Letters. You can choose one of the following actions: do nothing, set focus to command line and enter command, run quick search or quick filter.

+

Here you can set the action on pressing some keys in the active file panel: Letters, Alt+Letters, Ctrl+Alt+Letters. You can choose one of the following actions: do nothing, set focus to command line and enter command, run

quick search or quick filter.

Left, Right arrows change directory (Lynx-like movement) – right arrow opens directory or runs a program under cursor, left arrow opens parent directory.


@@ -469,7 +469,7 @@

2. Configuration

The first parameter in the Formatting group is Date and time format. You can choose one of the existing templates from the drop-down list or set your own using date and time formatting characters.

Formatting characters are presented below (based on Free Pascal documentation). Some values depends on your regional settings!

-

As example we will use 2021.01.24 09:06:02 (i.e. yyyy.mm.dd hh:mm:ss) and the USA region.

+

As example we will use 2021.01.24 09:06:02 (i.e. yyyy.mm.dd hh:mm:ss) and the USA region.

@@ -641,7 +641,7 @@

2. Configuration

Content plugins are designed to get properties of a file or information about its content (for example, EXIF or ID3 tags). You can use this data in the file search or multi-rename tool, column set, tooltips.
Also Double Commander supports content plugins written in the Lua language (scripts are added in the same way as ordinary plugins). Examples can be found in the program folder (plugins/wdx/scripts).

3. File system plugins (WFX)

-

File system plugins uses their own file systems or provides access to other file systems and devices (local or remote). For example, FTP servers, Samba,mobile devises. Also it can be lists of files, running processes and services, or the Windows registry.

+

File system plugins uses their own file systems or provides access to other file systems and devices (local or remote). For example, FTP servers, network directories, mobile devises. Also it can be lists of files, running processes and services, or the Windows registry.

4. Lister plugins (WLX)

The built-in viewer displays plain text files, some image formats and console commands output, plugins allow to expand this list: electronic documents and databases, audio and video files, font files, content of archives, detailed information about some files, source code files with syntax highlighting.
Order matters: when choosing an appropriate plugin, Double Commander starts checking from top to bottom.

@@ -649,7 +649,7 @@

2. Configuration

Search plugins are Double Commander's own plugin type, these plugins use console programs to find files (for example, Locate, Everything or Recoll). The DSX plugins interface allows to send them search parameter values from the "Standard" and "Advanced" tabs.

Buttons:

    -
  • Add – opens the file selection dialog. Alternatively, you can use the internal cm_AddPlugin command.

  • +
  • Add – opens the file selection dialog. Alternatively, you can use the internal command cm_AddPlugin.

  • Disable – allows to temporarily disable the selected plugin.

  • Remove – removes the selected plugin from the list (but not plugin file!).

  • @@ -769,7 +769,6 @@

    2. Configuration


    2.13.1. Folder tabs > Favorite Tabs

    -

    Favorite Tabs are saved sets of tabs that grouped according to criteria convenient for you (work, projects, hobbies, and so on), they allow to open all the necessary directories in tabs at once.

    The list of saved tab sets is available in the "Favorites" menu and in the popup menu called by the cm_LoadFavoriteTabs command.

    In this section you can manage them: change order, names, delete unnecessary, sort or group in a submenu.

    Favorite Tabs

    @@ -934,7 +933,7 @@

    2. Configuration

    This section contains the settings for tooltips when the mouse cursor is hovering over a file.

    Tooltips

    Show tooltip for files in the file panel – enables the ability to use tooltips.

    -

    File types – contains a list of file groups.

    +

    File types – contains a list of file groups. Double Commander checks the list from top to bottom until the first match: a file group higher in the list will overlap any file group below.

    Buttons:

    • Apply – will save the settings for the selected file type.

    • @@ -961,11 +960,12 @@

      2. Configuration

    • Show DC tooltip only.

    • Show system tooltip only.

    -

    If you have not added your own tooltips for the specified file types, then the DC tooltip will contain only the file name. The content of the system tooltip depends on the operating system:

    +

    The content of the system tooltip depends on the operating system:

    • Windows: File name and the same as in Windows Explorer. If it was not possible to obtain information, then Double Commander will show the same as in Linux and other Unix-like systems.

    • Linux and other Unix-like systems: File name, modification date and size.

    +

    The first line of the tooltip always contains the file name, and if you did not specify anything in the Category hint field, then the DC tooltip will contain only the file name.

    Tooltip hiding delay – sets the duration of displaying the tooltip: system default, 1 sec, 2 sec, 3 sec, 5 sec, 10 sec, 30 sec, 1 min and never hide (the tooltip will be hidden when you move the mouse cursor to another file or outside the file panel).

    In the screenshot at the beginning of the section description, you can see an example of a tooltip with the textline.wdx plugin that shows the contents of the selected lines of a text file (in this case, the first, second and third lines), the Combine DC and system tooltip, system first mode is selected.


    diff --git a/doc/en/directoryhotlist.html b/doc/en/directoryhotlist.html index 565f36a3..9c23b3e2 100644 --- a/doc/en/directoryhotlist.html +++ b/doc/en/directoryhotlist.html @@ -159,6 +159,7 @@

    2.6. Personalize the new added entry in the Directory

    In this example, the folder name is "doc" but the name given to the entry is "Documentation"

    This is also how you will see it in the Directory Hotlist popup menu.

    Customization

    +

    The ampersand character "&" in a name has a special meaning, we can use it to quickly select a directory in the menu using the keyboard, just add an ampersand in front of one of the letters. To use this symbol as is, we must double it ("&&").

    @@ -195,8 +196,9 @@

    2.9. Helper with path and target definition

    Here is a complete summary of what you'll find there:

    • Use Double Commander special path – To point directly to the executable path, the configuration path, etc.
    • -
    • Use Windows special folder (TC) – For Microsoft Windows flavor, will allow to point windows-related path, compatible with TC variable name.
    • -
    • Use other Windows special folder – Same as above but new one, not present in TC.
    • +
    • Use Windows special folder (TC) – Windows only: contains a list of pseudo environment variables.
      + Note: This list corresponds to the list of variables supported in Total Commander and is also used for import from Total Commander and export Directory Hotlist (see below) and toolbar.
    • +
    • Use other Windows special folder – Additional pseudo environment variables.
    • Use environment variable – Certainly some values are not really valid and useful there but for the ones that might be, let's use them!
    • Use hotdir path – This is pure versatility: you may add a Directory Hotlist... from the Directory Hotlist!
    • Make relative to... – Same thing for each of the above BUT instead of straight ADDING the path, it will make the current written one relative to the one you select.
    • diff --git a/doc/en/findfiles.html b/doc/en/findfiles.html index 3f608649..5ee2fe25 100644 --- a/doc/en/findfiles.html +++ b/doc/en/findfiles.html @@ -53,11 +53,11 @@

      1. Introduction

      2. Tab "Standard"

      On this tab we can search for files by name and their content.

      Search: Standard

      -

      Line Start in directory specifies directory to start search, by default will be use the current directory of the active panel.

      +

      The Start in directory field specifies the directory to start the search, by default will be use the current directory of the active panel.

      Additional options for specifying file search locations:

      • Opened tabs – only directories of opened tabs will be used (tabs of active and inactive panels).

      • -
      • Selected directories and files – if enabled, the search will be conducted only among selected files and folders in the active panel.

      • +
      • Selected directories and files – if enabled, the search will be conducted only among selected files and folders in the active panel. If there are selected files/folders in the file panel, this option will be enabled automatically.

      • Follow symlinks – if a symbolic link to a directory is found, the target directory will be read and used, otherwise this symbolic link will be considered a regular file.

      • Exclude subdirectories – a list of directories to be excluded from the search, here we can specify folder names and relative or absolute(Beta version) paths.

      • Search subdirectories can have:

        @@ -66,9 +66,9 @@

        2. Tab "Standard"

      • select number of levels (from 1 to 100),

      • all (unlimited depth).

      -

      This setting controls the depth of the search in the filesystem tree. If set to "current dir only", the search will only be conducted in the directory specified in "Start in directory" (not in any subdirs).

      +

      This setting controls the depth of the search in the filesystem tree. If set to "current dir only", the search will only be conducted in the directory specified in the "Start in directory" field (not in any subdirectories).

    -

    Line File mask sets the mask for the search. Or we can just specify the file name or part of it.

    +

    The File mask field sets the mask for the search. Or we can just specify the file name or part of it.

    Additional options:

    • Search in archives – if enabled, Double Commander will try to additionally read the contents of all archives in the search directory(ies). The list of supported formats depends on the added packer plugins.

    • @@ -77,7 +77,7 @@

      2. Tab "Standard"

    • Exclude files – a list of file names to be excluded from the search. Masks are also supported.

    Note: File mask, Exclude files, Start in directory and Exclude subdirectories allow to enter several values, separated with semicolon ";" without spaces. If we need to find a file with semicolon in the name, we can use regular expressions.

    -

    If the Find text in file checkbox is enabled, the process will search for the specified text in the files. We can also replace this text with any other text, specified in the line Replace by by enabling the checkbox.

    +

    If the Find text in file checkbox is enabled, the process will search for the specified text in the files. We can also replace this text with any other text, specified in the Replace by field by enabling the checkbox.

    Additional options:

    • Find files NOT containing the text – displays files, that do not have the text specified in Find text in file.

    • @@ -100,7 +100,7 @@

      2. Tab "Standard"

      The Start button starts search, Cancel stops search and Close closes the Find files window.

      New search – clears the old results and allows to start a new search (also with new conditions).

      Last search – loads parameters from the previous search (in the current session, before closing Double Commander).

      -

      Use Shift+Del to remove unnecessary entries from the input fields history.

      +

      If history saving is enabled, then we can use Shift+Del to remove unnecessary entries from the history of input fields.

      @@ -163,12 +163,12 @@

      3.1. Searching for files with specific attributes.<

Possible characters
CharactersDescriptionExample
- - + + - + - +
Attributes in Unix/Linux (File Types)
File Types lettersWhat it stands for
b
block
c
character
b
block device
c
character device
d
directory
f
fifo
f
named pipe (FIFO)
l
symlink
r
regular
r
regular file
s
socket

@@ -321,14 +321,14 @@

6. Tab "Results"

  • Remove from list (or Del) – allows to remove unsuitable results from the list (the file system will not be affected).

  • Show all found items – cancels the action of the previous command.

  • -

    To select several files, use the mouse and the Ctrl and Shift keys or Shift and arrows.

    +

    To select several files, we can use the mouse and the Ctrl and Shift keys or Shift and arrows.

    The left arrow and right arrow keys switch the focus between the list of search result and the New search button.

    7. Additional configuration

    -

    Additional parameters associated with the search tool are presented on the File operations > File search settings page.

    +

    Additional parameters associated with the search tool are presented on the File operations > File search settings section.

    Search: Additional configuration

    File search:

      diff --git a/doc/en/help.html b/doc/en/help.html index c9bd5d8f..d5547eae 100644 --- a/doc/en/help.html +++ b/doc/en/help.html @@ -230,9 +230,9 @@

      2.1.1. "Files"

      2.1.2. "Mark"

      There are some commands in this group with which you can select files in different ways.

      -

      First and second items Select a Group and Unselect a Group (internal commands cm_MarkPlus and cm_MarkMinus). These commands select groups of files by a mask. With this mask you can specify file names or extensions.

      +

      First and second items Select a Group and Unselect a Group (internal commands cm_MarkPlus and cm_MarkMinus). These commands select groups of files by a mask. With this mask you can specify file names or extensions (you can specify several values separated by semicolons ";" without spaces). For example, select all files that have the .txt extension:

      Select a group

      -

      E.g. select all files that have the extension .txt. Also there is a drop-down list with masks history.

      +

      Also there is a drop-down list with masks history.

      Third and fourth items Select All (internal command cm_MarkMarkAll) and Unselect All (internal command cm_MarkUnmarkAll). They make it possible to select or unselect all items from the panel quickly.

      Fifth item is Invert Selection (internal command cm_MarkInvert). It makes currently selected files unselected and vice versa.

      Sixth and seventh items Select All with the Same Extension (internal command cm_MarkCurrentExtension) and Unselect All with the Same Extension (internal command cm_UnmarkCurrentExtension). These functions help to select and unselect files with the same extension as the file under the cursor.

      @@ -335,7 +335,7 @@

      2.1.6. "Favorites"

      2.1.7. "Show"

      Manages the displayed contents of the file panels.

      The first three items allow to switch the view of the file list: Brief view (internal command cm_BriefView), Full (internal command cm_ColumnsView) and Thumbnails (internal command cm_ThumbnailsView). See below for details.

      -

      Quick View Panel (internal command cm_QuickView) – opens file in viewer program, but content of selected item shown in opposite panel (instead of a separate window). In this case, the viewer specified in the file association settings will be ignored. As we navigate to next items, displayed content is updated, this allows to view the contents of files simply by moving the cursor in the file panel.

      +

      Quick View Panel (internal command cm_QuickView) – opens file in viewer program, but content of selected item shown in opposite panel (instead of a separate window). See more details here.

      Tree View Panel (internal command cm_TreeView) – shows the directory tree for the active file panel. Internal command cm_FocusTreeView switches focus between current file list and tree (shortcut Shift+Tab by default).

      The next five items: Sort by Name (internal command cm_SortByName), @@ -400,7 +400,7 @@

      2.3. Drives button bar

      2.4. Drives list

      Drives list

      Helps to change drive, also contains additional information (size, free space) and navigation buttons – « * \ .. ~ < ».

      -

      Internal commands are cm_LeftOpenDrives for left panel and cm_RightOpenDrives – for right panel. Default shortcuts: Alt+F1 and Alt+F2, but they won't work in most Linux Desktop Environments, just replace them.

      +

      Internal commands are cm_LeftOpenDrives for left panel and cm_RightOpenDrives – for right panel. Default shortcuts: Alt+F1 and Alt+F2, but they won't work in most Linux Desktop Environments (just open the Keys > Hot keys settings section and replace them).

      Drives list

      Internal command cm_SrcOpenDrives will show this menu for active panel.

      Additional navigation buttons:

      @@ -427,9 +427,11 @@

      2.5. Tabs bar

      2.6. Current directory bar

      Current directory bar

      -

      Displays the name of the current directory. A left mouse click on this directory bar drops down a directories history (internal command cm_DirHistory) which allows to quickly navigate back to previous directories:

      +

      Displays the directory opened in the file panel.

      +

      A left mouse click on this directory bar drops down a directories history (internal command cm_DirHistory) which allows to quickly navigate back to previous directories:

      Directories history

      -

      A right mouse click on the directory bar will allow to copy the pathname to the clipboard or enter a new path manually (environment variables are supported, in Unix-like operating systems also you can use the tilde symbol "~" to indicate the current user's home directory). A double click or middle mouse click drop down a directory hotlist.

      +

      A right mouse click on the directory bar will allow to copy the pathname to the clipboard or enter a new path manually. You can use the keyboard instead of the mouse, just set a hotkey for the cm_EditPath command. Environment variables are supported, in Unix-like operating systems you can also use the tilde symbol "~" to indicate the current user's home directory.

      +

      A double click or middle mouse click drop down a directory hotlist.

      It is now also possible to click on parts of the directory bar to quickly navigate back in the directory structure. Very handy if you want to go to a parent directory back many levels. This is known as a "breadcrumb" navigation feature.

      @@ -567,11 +569,14 @@

      2.9. Status bar

      2.10. Command line

      Command line

      -

      Use to enter commands manually. Path to active directory shows in line beginning (C:\Program Files\Double Commander\ in screenshot). The button on the right with an arrow opens the history of the entered commands. Use Shift+Del to remove unnecessary entries from the history.

      -

      Double Commander independently handles the "cd" command, you can use it to change the current directory in the active panel. If you use a path with the file name, Double Commander will place the cursor on this file.

      +

      Use to enter commands manually, you can quickly run or open a file in the current directory or in the PATH (with additional parameters if necessary).

      +

      Path to active directory shows in line beginning (C:\Program Files\Double Commander\ in screenshot). The button on the right with an arrow opens the history of the entered commands. Use Shift+Del to remove unnecessary entries from the history.

      +

      Several internal commands are available for working with the command line, also see the typing options in the Keys settings section.

      +

      If the command line is hidden in the settings, you can still use it. In this case, the command line will be automatically hidden after the command is run. You can hide it using the Esc key (if the input field is empty) or just move the cursor to the file panel (or switch the focus in another way).

      +

      Environment variables are supported, in Unix-like operating systems you can also use the tilde symbol "~" to indicate the current user's home directory.

      +

      Double Commander independently handles the "cd" command, you can use it to change the current directory in the active panel. If you use a path with the file name, Double Commander will change directory and place the cursor on this file. If you specify only a file name, Double Commander will place the cursor on this file in the current directory.

      +

      You can use slash: cd \ to go to the root of the current drive (Windows) and cd / to go to the root of the file system (Linux and other Unix-like systems).

      In Windows, you can change the drive by simply specifying the drive letter and a colon: c:, d: and so on.

      -

      Environment variables are supported, in Unix-like operating systems also you can use the tilde symbol "~" to indicate the current user's home directory.

      -

      Several internal commands are available for working with the command line.

      Right mouse click will show the usual input box menu that contains standard commands Cut, Copy, Paste, Delete, Select All and submenu Insert Unicode Control Character.

      diff --git a/doc/en/images/imgDC/archiveimg1.png b/doc/en/images/imgDC/archiveimg1.png index 5609cb98..ceee64ff 100644 Binary files a/doc/en/images/imgDC/archiveimg1.png and b/doc/en/images/imgDC/archiveimg1.png differ diff --git a/doc/en/images/imgDC/archiveimg11.png b/doc/en/images/imgDC/archiveimg11.png index 11d238a6..c4611e04 100644 Binary files a/doc/en/images/imgDC/archiveimg11.png and b/doc/en/images/imgDC/archiveimg11.png differ diff --git a/doc/en/images/imgDC/archiveimg15.png b/doc/en/images/imgDC/archiveimg15.png index 4549bccb..aaffc6d3 100644 Binary files a/doc/en/images/imgDC/archiveimg15.png and b/doc/en/images/imgDC/archiveimg15.png differ diff --git a/doc/en/images/imgDC/dirhotoverview.png b/doc/en/images/imgDC/dirhotoverview.png index 239baab7..eb0b0e68 100644 Binary files a/doc/en/images/imgDC/dirhotoverview.png and b/doc/en/images/imgDC/dirhotoverview.png differ diff --git a/doc/en/images/imgDC/luaimg3.png b/doc/en/images/imgDC/luaimg3.png index e021859b..f858226f 100644 Binary files a/doc/en/images/imgDC/luaimg3.png and b/doc/en/images/imgDC/luaimg3.png differ diff --git a/doc/en/images/imgDC/luaimg4.png b/doc/en/images/imgDC/luaimg4.png index 82d4aebb..87c3c666 100644 Binary files a/doc/en/images/imgDC/luaimg4.png and b/doc/en/images/imgDC/luaimg4.png differ diff --git a/doc/en/images/imgDC/mulreneditnewnames.png b/doc/en/images/imgDC/mulreneditnewnames.png index 60aede0c..20067ca4 100644 Binary files a/doc/en/images/imgDC/mulreneditnewnames.png and b/doc/en/images/imgDC/mulreneditnewnames.png differ diff --git a/doc/en/images/imgDC/pic27.png b/doc/en/images/imgDC/pic27.png index cd7b917b..609d0b9c 100644 Binary files a/doc/en/images/imgDC/pic27.png and b/doc/en/images/imgDC/pic27.png differ diff --git a/doc/en/images/imgDC/toolbarinbar.png b/doc/en/images/imgDC/toolbarinbar.png index 31f4650c..984e4cc3 100644 Binary files a/doc/en/images/imgDC/toolbarinbar.png and b/doc/en/images/imgDC/toolbarinbar.png differ diff --git a/doc/en/images/imgDC/toolbarmenu.png b/doc/en/images/imgDC/toolbarmenu.png index 6bef3df8..794f02e1 100644 Binary files a/doc/en/images/imgDC/toolbarmenu.png and b/doc/en/images/imgDC/toolbarmenu.png differ diff --git a/doc/en/images/imgDC/variablesample.png b/doc/en/images/imgDC/variablesample.png index 9af8eee6..ab4393d9 100644 Binary files a/doc/en/images/imgDC/variablesample.png and b/doc/en/images/imgDC/variablesample.png differ diff --git a/doc/en/lua.html b/doc/en/lua.html index 1c5ec305..684f654a 100644 --- a/doc/en/lua.html +++ b/doc/en/lua.html @@ -68,25 +68,38 @@

      Content

      1. Introduction

      -

      Double Commander can execute Lua scripts via cm_ExecuteScript command. - Script parameters must be passed as is, without escaping (without quotes or "\"), for this we need to use the %"0 variable: for example, %"0%p0 for the file under cursor instead of %p0, %"0%D for the current directory instead of %D and so on. - To get a list of all selected files we can use %LU or internal commands cm_SaveSelectionToFile or cm_CopyFullNamesToClip.

      +

      Detailed information about the Lua scripting programming language can be found on the Lua website.

      +

      Double Commander can execute Lua scripts via cm_ExecuteScript command.
      + Script parameters must be passed as is, without escaping (without quotes or "\"), for this we need to use the %"0 variable: for example, %"0%p0 for the file under cursor instead of %p0 or %"0%D for the current directory instead of %D. Otherwise, if Double Commander automatically adds quotes, they will be passed as part of the parameter and you will have to take them into account.
      + To get a list of all selected files we can use variables (%LU, %FU or %RU) or internal commands (cm_SaveSelectionToFile, cm_SaveFileDetailsToFile(Beta version), cm_CopyFullNamesToClip or cm_CopyFileDetailsToClip). + We can use, for example, %p: in this case, Double Commander will pass the names of all selected files in one line, separating the names with a space.

      It is also possible to write content plugins using Lua script, examples can be found in the program folder (plugins/wdx/scripts). The Wiki has a page dedicated to writing plugins. Limitations: only the following data types are supported

        -
      • ft_numeric_32 – a 32-bit signed number;
      • -
      • ft_numeric_64 – a 64-bit signed number;
      • -
      • ft_numeric_floating – a floating point number;
      • -
      • ft_boolean – boolean type: true or false;
      • -
      • ft_multiplechoice – a value allowing a limited number of choices;
      • -
      • ft_string – a text string (use UTF-8);
      • -
      • ft_fulltext – a full text (multiple text strings), used only for searching with plugins;
      • -
      • ft_datetime – for date/time: a returned date will be converted to a formatted date and time string (value depends on your regional settings).
      • +
      • ft_numeric_32 (1) – a 32-bit signed number;
      • +
      • ft_numeric_64 (2) – a 64-bit signed number;
      • +
      • ft_numeric_floating (3) – a floating point number;
      • +
      • ft_boolean (6) – boolean type: true or false;
      • +
      • ft_multiplechoice (7) – a value allowing a limited number of choices;
      • +
      • ft_string (8) – a text string;
      • +
      • ft_fulltext (9) – a full text (multiple text strings), used only for searching with plugins ;
      • +
      • ft_datetime (10) – for date/time: a returned date will be converted to a formatted date and time string (value depends on your regional settings).
        + The date must be in Windows format, but Lua and the functions that Double Commander provides for searching files use Unix time format. To convert we can use the formula:
        + = UnixTime * 10000000 + 116444736000000000
        + This is a large number, so you will need a 64-bit version of Double Commander or Lua 5.3+.
      -

      Note: When saving scripts, use UTF-8 encoding without BOM.

      -

      More informations on Lua script programming language are available on the web on this link.

      +

      The list above contains the names from the header files, in Lua scripts we must use the numeric values which are specified in parentheses.

      +

      Note: For the file properties dialog, the ContentGetValue function is called with the CONTENT_DELAYIFSLOW flag (the fourth parameter, the value is 1), this avoids the delay in opening the window: if data retrieval is slow, we can exclude this data by simply adding a flag value check and returning nil for such fields or plugin.

      +

      Note: If the plugin needs to return an empty string, it will be faster to pass nil instead of "".

      Note: Lua function io.open uses the standard C function fopen: in text mode, this function can convert the type of line endings (CRLF, LF or CR) when reading and writing and it can lead to unexpected results. If you come across files with different types of line endings or if you are writing a cross-platform script, this must be taken into account or it may be more practical to give preference to the binary mode.

      +
      + +

      About text encoding

      +

      All additional functions described below accept string parameters in UTF-8 encoding and return strings in this encoding (except for the LazUtf8.ConvertEncoding function).

      +

      Some functions from the standard Lua libraries have been replaced with functions from Double Commander or Free Pascal/Lazarus (or new ones have been written), this provides UTF-8 support.

      +

      When writing plugins, we should also use UTF-8 for text data (ft_multiplechoice, ft_string and ft_fulltext).

      +

      When saving scripts, use UTF-8 encoding without BOM.

      @@ -113,7 +126,7 @@

      3. Double Commander functions libraries

    DialogsInteracts with user
    LazUtf8UTF-8 string functions
    CharGetting information about characters
    OSFunctions related with the operating system
    osFunctions related with the operating system
    @@ -128,12 +141,12 @@

    3.1. DC library

    DC.LogWrite
    -

    DC.LogWrite(Message, MsgType, bForce, bLogFile)

    +

    DC.LogWrite(sMessage, iMsgType, bForce, bLogFile)

    Write a message to the log window.

    Here is the description of each field:

    @@ -151,9 +164,9 @@

    3.1. DC library

    DC.ExecuteCommand
    -

    DC.ExecuteCommand(Command, Param1, Param2,...,ParamX)

    +

    DC.ExecuteCommand(sCommand, Param1, Param2,...,ParamX)

    This allows the script to invoke internal commands of DC.

    -

    The Command is holding the actual internal command name.

    +

    The sCommand is holding the actual internal command name.

    We may provide as many Param... as command may support.

    @@ -221,8 +234,8 @@

    3.2. System library

    SysUtils.Sleep
    -

    SysUtils.Sleep(Milliseconds)

    -

    Suspends the execution of the script for the specified number of Milliseconds.
    After the specified period has expired, script execution resumes.

    +

    SysUtils.Sleep(iMilliseconds)

    +

    Suspends the execution of the script for the specified number of iMilliseconds.
    After the specified period has expired, script execution resumes.

    @@ -235,32 +248,32 @@

    3.2. System library

    SysUtils.FileExists
    -

    bFlagExists = SysUtils.FileExists(FileName)

    +

    bExists = SysUtils.FileExists(sFileName)

    Check whether a particular file exists in the filesystem.

    -

    Returns in bFlagExists the value true if file with name FileName exists on the disk, or false otherwise.

    +

    Returns in bExists the value true if file with name sFileName exists on the disk, or false otherwise.

    SysUtils.DirectoryExists
    -

    bFlagExists = SysUtils.DirectoryExists(Directory)

    -

    Checks whether Directory exists in the filesystem and is actually a directory.

    -

    If this is the case, the function returns in bFlagExists the value true otherwise false is returned.

    +

    bExists = SysUtils.DirectoryExists(sDirectory)

    +

    Checks whether sDirectory exists in the filesystem and is actually a directory.

    +

    If this is the case, the function returns in bExists the value true otherwise false is returned.

    SysUtils.FileGetAttr
    -

    Attr = SysUtils.FileGetAttr(FileName)

    -

    Returns in Attr the attribute settings of file FileName.

    +

    iAttr = SysUtils.FileGetAttr(sFileName)

    +

    Returns in iAttr the attribute settings of file sFileName.

    See the detail explanations of the returned value here.

    SysUtils.FindFirst
    -

    Handle, FindData = SysUtils.FindFirst(Path)

    -

    Looks for files that match the Path, generally with wildcards.

    +

    Handle, FindData = SysUtils.FindFirst(sPath)

    +

    Looks for files that match the sPath, generally with wildcards.

    If no file is found, Handle will be nil.

    When at least one item is found, the returned Handle may be used in subsequent SysUtils.FindNext to find other occurrences of the same pattern.

    The FindData table contains information about the file or directory found.

    @@ -277,7 +290,7 @@

    3.2. System library

    SysUtils.FindNext

    Result, FindData = SysUtils.FindNext(Handle)

    -

    Finds the next occurrence of a search sequence initiated by FindFirst by re-using the Handle returned previously.

    +

    Finds the next occurrence of a search sequence initiated by FindFirst by re-using the Handle returned previously.

    Returned Result will be non-nil if a file or directory is found and will be nil otherwise.

    The same notes mentioned for SysUtils.FindFirst applied here.

    Remark: The last SysUtils.FindNext call must always be followed by a SysUtils.FindClose call with the same Handle. Failure to do so will result in memory leaks.

    @@ -295,48 +308,55 @@

    3.2. System library

    SysUtils.CreateDirectory
    -

    bResult = SysUtils.CreateDirectory(Directory)

    -

    Create a chain of directories, Directory is the full path to directory.

    -

    Returns true if Directory already exist or was created successfully. If it failed to create any of the parts, false is returned.

    +

    bResult = SysUtils.CreateDirectory(sDirectory)

    +

    Create a chain of directories, sDirectory is the full path to directory.

    +

    Returns true if sDirectory already exist or was created successfully. If it failed to create any of the parts, false is returned.

    SysUtils.CreateHardLink
    -

    bResult = SysUtils.CreateHardLink(Path, LinkName)

    -

    Create the hard link LinkName to file Path.

    +

    bResult = SysUtils.CreateHardLink(sFileName, sLinkName)

    +

    Create the hard link sLinkName to file sFileName.

    Returns true if successful, false otherwise.

    SysUtils.CreateSymbolicLink
    -

    bResult = SysUtils.CreateSymbolicLink(Path, LinkName)

    -

    Create the symbolic link LinkName to file or directory Path.

    +

    bResult = SysUtils.CreateSymbolicLink(sFileName, sLinkName)

    +

    Create the symbolic link sLinkName to file or directory sFileName.

    Returns true if successful, false otherwise.

    SysUtils.ReadSymbolicLink
    -

    sTarget = SysUtils.ReadSymbolicLink(LinkName, Recursive)

    -

    Read destination of the symbolic link LinkName.

    -

    If Recursive is true and the link points to a link then it's resolved recursively until a valid file name that is not a link is found.

    -

    Returns the path where the symbolic link LinkName is pointing to or an empty string when the link is invalid or the file it points to does not exist and Recursive is true.

    +

    sTarget = SysUtils.ReadSymbolicLink(sLinkName, bRecursive)

    +

    Read destination of the symbolic link sLinkName.

    +

    If bRecursive is true and the link points to a link then it's resolved recursively until a valid file name that is not a link is found.

    +

    Returns the path where the symbolic link sLinkName is pointing to or an empty string when the link is invalid or the file it points to does not exist and bRecursive is true.

    SysUtils.ExtractFileName
    -

    sName = SysUtils.ExtractFileName(FileName)

    +

    sName = SysUtils.ExtractFileName(sFileName)

    Extract the filename part from a full path filename.

    The filename consists of all characters after the last directory separator character ("/" or "\") or drive letter.

    + +
    SysUtils.ExtractFileExt
    + +

    sExt = SysUtils.ExtractFileExt(sFileName)

    +

    Return the extension from a filename (all characters after the last "." (dot), including the "." character).

    + +
    SysUtils.ExtractFilePath
    -

    sPath = SysUtils.ExtractFilePath(FileName)

    +

    sPath = SysUtils.ExtractFilePath(sFileName)

    Extract the path from a filename (including drive letter).

    The path consists of all characters before the last directory separator character ("/" or "\"), including the directory separator itself.

    @@ -344,55 +364,48 @@

    3.2. System library

    SysUtils.ExtractFileDir
    -

    sDir = SysUtils.ExtractFileDir(FileName)

    -

    Extract only the directory part of FileName, including a drive letter.

    +

    sDir = SysUtils.ExtractFileDir(sFileName)

    +

    Extract only the directory part of sFileName, including a drive letter.

    The directory name has NO ending directory separator, in difference with SysUtils.ExtractFilePath.

    SysUtils.ExtractFileDrive
    -

    sDrive = SysUtils.ExtractFileDrive(FileName)

    +

    sDrive = SysUtils.ExtractFileDrive(sFileName)

    Extract the drive part from a filename.

    Note that some operating systems do not support drive letters.

    - -
    SysUtils.ExtractFileExt
    - -

    sExt = SysUtils.ExtractFileExt(FileName)

    -

    Return the extension from a filename (all characters after the last "." (dot), including the "." character).

    - -
    SysUtils.GetAbsolutePath
    -

    sName = SysUtils.GetAbsolutePath(FileName, BaseDirectory)

    +

    sName = SysUtils.GetAbsolutePath(sFileName, sBaseDirectory)

    Returns the absolute (full) path to the file:

    SysUtils.GetRelativePath
    -

    sName = SysUtils.GetRelativePath(FileName, BaseDirectory)

    +

    sName = SysUtils.GetRelativePath(sFileName, sBaseDirectory)

    Returns the filename relative to the specified directory:

    -

    If FileName and BaseDirectory contain the same value, the function will return an empty string ("").

    +

    If sFileName and sBaseDirectory contain the same value, the function will return an empty string ("").

    SysUtils.MatchesMask
    -

    bResult = SysUtils.MatchesMask(FileName, Mask, MaskOptions)

    -

    Returns true if FileName matches the passed mask Mask.

    -

    MaskOptions (optional parameter, 0 by default) is set as the sum of the following values:

    +

    bResult = SysUtils.MatchesMask(sFileName, sMask, iMaskOptions)

    +

    Returns true if sFileName matches the passed mask sMask.

    +

    iMaskOptions (optional parameter, 0 by default) is set as the sum of the following values:

    @@ -420,9 +433,9 @@

    3.2. System library

    @@ -439,7 +452,7 @@

    3.2. System library

    3.2.1. Details on SysUtils.FileGetAttr returned value

    -

    FileGetAttr returns the attribute settings of file FileName.

    +

    FileGetAttr returns the attribute settings of file sFileName.

    The attribute is a OR-ed combination of the following constants:

    Value
    SysUtils.MatchesMaskList
    -

    bResult = SysUtils.MatchesMaskList(FileName, MaskList, Separator, MaskOptions)

    -

    Returns true if FileName matches at least one of passed masks MaskList separated by Separator (";" by default).

    -

    Separator and MaskOptions (see above) are optional parameters.

    +

    bResult = SysUtils.MatchesMaskList(sFileName, sMaskList, sSeparator, iMaskOptions)

    +

    Returns true if sFileName matches at least one of passed masks sMaskList separated by sSeparator (";" by default).

    +

    sSeparator and iMaskOptions (see above) are optional parameters.

    @@ -454,7 +467,7 @@

    3.2.1. Details on SysUtils.FileGetAttr returned value

    - + @@ -486,12 +499,12 @@

    3.2.2. Example with SysUtils.FileGetAttr

    When the parameter is detected to be a directory, it will open a new tab in the active panel and switch to it.

     local params = {...}
    -local myfileattr
    +local iAttr
     
     if #params == 1 then -- We got at least one parameter?
    -  myfileattr = SysUtils.FileGetAttr(params[1])
    -  if myfileattr > 0 then -- We got a valid attribute?
    -    if math.floor(myfileattr / 0x00000010) % 2 ~= 0 then
    +  iAttr = SysUtils.FileGetAttr(params[1])
    +  if iAttr > 0 then -- We got a valid attribute?
    +    if math.floor(iAttr / 0x00000010) % 2 ~= 0 then
           -- bit 4 is set? So it's a directory.
           DC.ExecuteCommand("cm_NewTab")
           DC.ExecuteCommand("cm_ChangeDir", params[1])
    @@ -503,7 +516,7 @@ 

    3.2.2. Example with SysUtils.FileGetAttr

    When using the internal command cm_ExecuteScript, it will will be the first parameter passed after the script filename.

    So in our example, we may program a sample toolbar button like the following:

    Parameter with cm_ExecuteScript

    -

    In this example, the parameter %"0%p will be passed to the script. This will represent, unquoted, the filename of the item currently selected in the active panel at the moment we press the toolbar button.

    +

    In this example, the parameter %"0%p will be passed to the script. This will represent, unquoted, the filename of the item currently selected in the active panel at the moment we press the toolbar button.

    @@ -517,11 +530,11 @@

    3.2.3. Example using FindFirst, FindNext and FindClose if #params == 2 then -- We got our 2 parameters? local Result = nil - local OutputFile = nil + local hOutputFile = nil - OutputFile = io.output(params[2]) + hOutputFile = io.output(params[2]) - local Handle,FindData = SysUtils.FindFirst(params[1] .. "\\*") + local Handle, FindData = SysUtils.FindFirst(params[1] .. "\\*") if Handle ~= nil then repeat io.write(FindData.Name .. "\r") @@ -532,7 +545,7 @@

    3.2.3. Example using FindFirst, FindNext and FindClose until Result == nil SysUtils.FindClose(Handle) - io.close(OutputFile) + io.close(hOutputFile) end end

    In the above example, we need to pass two parameters to our script:

    @@ -542,7 +555,7 @@

    3.2.3. Example using FindFirst, FindNext and FindClose

    So it's easy to configure a toolbar button using the internal command cm_ExecuteScript and pass the parameter to accomplish all this.

    Parameter with cm_ExecuteScript

    -

    In this example, the parameter %"0%Ds will be passed to the script as the first parameter. This will represent, unquoted, the directory displayed by the active panel.

    +

    In this example, the parameter %"0%Ds will be passed to the script as the first parameter. This will represent, unquoted, the directory displayed by the active panel.

    @@ -563,22 +576,22 @@

    3.3. Clipboard library

    @@ -706,15 +719,15 @@

    3.4. Dialogs library

    @@ -899,10 +912,10 @@

    3.4.5. Example of usage of the Dialogs.MessageBox= 0x0006 mrNo = 0x0007 -ButFlags = MB_YESNO + MB_ICONQUESTION + MB_DEFBUTTON2 -ButPressed = Dialogs.MessageBox("Do you want to quit?", "Question", ButFlags) +iFlags = MB_YESNO + MB_ICONQUESTION + MB_DEFBUTTON2 +iButton = Dialogs.MessageBox("Do you want to quit?", "Question", iFlags) -if ButPressed == mrYes then +if iButton == mrYes then DC.ExecuteCommand("cm_Exit") end

    Example of usage of the Dialogs.MessageBox

    @@ -913,9 +926,9 @@

    3.4.5. Example of usage of the Dialogs.MessageBox3.4.6. Example of usage of the Dialogs.InputQuery

    Here is a little script using Dialogs.InputQuery and the resulting window that will be displayed:

    -bAck, sAnswer = Dialogs.InputQuery("Identification", "Enter your name:", false, "John")
    +bResult, sAnswer = Dialogs.InputQuery("Identification", "Enter your name:", false, "John")
     
    -if bAck == true then
    +if bResult == true then
       Dialogs.MessageBox("Hello " .. sAnswer .. "!", "Welcome!", 0x0040)
     end

    Example of usage of the Dialogs.InputQuery

    @@ -932,7 +945,7 @@

    3.5. UTF-8 library

    diff --git a/doc/en/multiarc.html b/doc/en/multiarc.html index 6d78c09a..438b9417 100644 --- a/doc/en/multiarc.html +++ b/doc/en/multiarc.html @@ -507,11 +507,13 @@

    4.13. Menu of the "Other" button

    5. Opening an archive file in an associated application

    -

    By default, files whose extensions are specified in the settings of WCX plugins and external archivers are opened as folders. To open them in an associated application, we can use the "Open" item in the context menu of the file, but in this case only system file associations will be used.

    +

    By default, files whose extensions are specified in the settings of WCX plugins and external archivers are opened as folders. To open them in an associated application, we can use the "Open" item in the context menu of the file (but in this case only system file associations will be used) or we can add the desired action to the "Actions" menu.

    To use the Enter key or double-click, we have to change the settings.

    -

    If a WCX plugin is used, then we can open the plugin settings, select the extension and enable the "Show as normal files (hide packer icon)" flag.

    -

    If an external archiver is used to unpack files, then we can specify a non-existent file extension and fill in the fields for using ID. For example, CHM documents: "chm2" instead of "chm", signature "49 54 53 46" and offset 0.

    -

    Now, if necessary, we can use cm_OpenArchive and cm_ExtractFiles. +

    We can just remove the extension from the settings, but in this case the commands cm_OpenArchive and cm_ExtractFiles will become unavailable. Another way:

    +

    For such files, Double Commander will use the associated icon instead of the generic archive icon.


    diff --git a/doc/en/multirename.html b/doc/en/multirename.html index 43f8966a..f09f25f8 100644 --- a/doc/en/multirename.html +++ b/doc/en/multirename.html @@ -141,6 +141,7 @@

    3. Generation of the new file names

    4. Placeholders

    Let's see the placeholders we may use.

    +

    Note: Placeholders are case sensitive!

    @@ -219,6 +220,8 @@

    4.2. Other placeholders

    + +
    Constants uses in SysUtils.FileGetAttr returned value
    0x00000004
    faSysFile
    The file is a system file.
    In Unix/Linux, this means that the file is a character, block or FIFO file.
    The file is a system file.
    In Unix/Linux, this means that the file is a character or block device, a named pipe (FIFO).
    0x00000008
    faVolumeId
    Clipbrd.GetAsText
    -

    StringVar = Clipbrd.GetAsText()

    -

    Get the current text content of the clipboard to assigned it to StringVar.

    +

    sVar = Clipbrd.GetAsText()

    +

    Get the current text content of the clipboard to assigned it to sVar. If the clipboard does not contain text, the function returns an empty string.

    Clipbrd.SetAsText
    -

    Clipbrd.SetAsText(StringVar)

    -

    Store in the clipboard the text content of StringVar.

    +

    Clipbrd.SetAsText(sVar)

    +

    Store in the clipboard the text content of sVar.

    Clipbrd.SetAsHtml
    -

    Clipbrd.SetAsHtml(Html)

    -

    Adds html-formatted text Html to the clipboard (CF_HTML clipboard format).

    +

    Clipbrd.SetAsHtml(sHtml)

    +

    Adds html-formatted text sHtml to the clipboard (CF_HTML clipboard format).

    This contents will be inserted in applications which support this clipboard format, like MS Word, LO Writer, etc.

    It's correct to store data with both Clipbrd.SetAsText and Clipbrd.SetAsHtml. When we'll paste, the application will use the best one that it supports.

    For example we may have this:

    @@ -606,11 +619,11 @@

    3.3.1. Example of usage clipboard library

     local params = {...}
     local Result = nil
    -local myfileattr
    +local iAttr
     local bFound = false
     local sCompleteFilename = ""
    -local InputFile = nil
    -local line = ""
    +local hInputFile = nil
    +local sLine = ""
     local iPosS
     local iPosE
     local sFileToSelect = ""
    @@ -622,23 +635,23 @@ 

    3.3.1. Example of usage clipboard library

    DC.ExecuteCommand("cm_MarkUnmarkAll") -- Make sure nothing is selected. -- Let's scan one by one all the files of our directory. - local Handle,FindData = SysUtils.FindFirst(params[1] .. "\\*") + local Handle, FindData = SysUtils.FindFirst(params[1] .. "\\*") if Handle ~= nil then repeat sCompleteFilename = params[1] .. "\\" .. FindData.Name - myfileattr = SysUtils.FileGetAttr(sCompleteFilename) - if myfileattr > 0 then -- We got a valid attribute? + iAttr = SysUtils.FileGetAttr(sCompleteFilename) + if iAttr > 0 then -- We got a valid attribute? -- We need file, not directory! - if math.floor(myfileattr / 0x00000010) % 2 == 0 then + if math.floor(iAttr / 0x00000010) % 2 == 0 then -- Let's now read the file line by line until the the end OR a found. - InputFile = io.open(sCompleteFilename, "r") + hInputFile = io.open(sCompleteFilename, "r") bFound = false while bFound == false do - line = InputFile:read() - if line == nil then break end - iPosS, iPosE = string.find(line, sSearchString) + sLine = hInputFile:read() + if sLine == nil then break end + iPosS, iPosE = string.find(sLine, sSearchString) if iPosS ~= nil then bFound = true end end @@ -646,7 +659,7 @@

    3.3.1. Example of usage clipboard library

    sFileToSelect = sFileToSelect .. FindData.Name .. "\n" end - io.close(InputFile) + io.close(hInputFile) end end Result,FindData = SysUtils.FindNext(Handle) @@ -676,29 +689,29 @@

    3.4. Dialogs library

    Dialogs.MessageBox
    -

    ButPressed = Dialogs.MessageBox(Message, Title, ButFlags)

    +

    iButton = Dialogs.MessageBox(sMessage, sTitle, iFlags)

    Will display a message box prompting a user to click a button which will be returned by the function.

    Here is the description of each field:

      -
    • Message : The message inside the box.
    • -
    • Title : The text displayed as the title of the box.
    • -
    • ButFlags : OR'ed value of constants to determine the buttons that will be displayed, the style of window and default button selected for the answer. See the following table the buttons displayed, style of window or default button.
    • -
    • ButPressed : Returned value indicating the button user pressed (see this table).
    • +
    • sMessage : The message inside the box.
    • +
    • sTitle : The text displayed as the title of the box.
    • +
    • iFlags : OR'ed value of constants to determine the buttons that will be displayed, the style of window and default button selected for the answer. See the following table the buttons displayed, style of window or default button.
    • +
    • iButton : Returned value indicating the button user pressed (see this table).
    Dialogs.InputQuery
    -

    bAck, sAnswer = Dialogs.InputQuery(Title, Msg, bMask, sDefault)

    +

    bResult, sAnswer = Dialogs.InputQuery(sTitle, sMessage, bMask, sDefault)

    Will display a requester box where user may enter a string value.

    Here is the description of each field:

      -
    • Title : The text displayed as the title of the box.
    • -
    • Msg : The message inside the box.
    • +
    • sTitle : The text displayed as the title of the box.
    • +
    • sMessage : The message inside the box.
    • bMask : A boolean, when true, will display "stars" to hide characters.
    • sDefault : The default suggested text that user may type over if necessary.
    • -
    • bAck : Returned boolean indicating if user effectively enter something or not.
    • +
    • bResult : Returned boolean indicating if user effectively enter something or not.
    • sAnswer : Returned string when user entered something and then clicked ok.
    Dialogs.InputListBox
    -

    sAnswer = Dialogs.InputListBox(Title, Msg, Items, sDefault)

    +

    sItem = Dialogs.InputListBox(sTitle, sMessage, aItems, sDefault)

    Displays a dialog box to allow the user to choose from a list of items.

    Here is the description of each field:

      -
    • Title : The text displayed as the title of the dialog.
    • -
    • Msg : The message inside the dialog.
    • -
    • Items : A Lua table, each element of the table must be a string.
    • +
    • sTitle : The text displayed as the title of the dialog.
    • +
    • sMessage : The message inside the dialog.
    • +
    • aItems : A Lua table, each element of the table must be a string.
    • sDefault : The default selected item in the list.
    • -
    • sAnswer : Returned the selected item as a string or nil if the dialog is dismissed.
    • +
    • sItem : Returned the selected item as a string or nil if the dialog is dismissed.
    LazUtf8.Pos
    -

    Result = LazUtf8.Pos(SearchText, SourceText, Offset)

    +

    iResult = LazUtf8.Pos(SearchText, SourceText, Offset)

    Search for substring in a string, starting at a certain position. The search is case sensitive.

    Returns the position of the first occurrence of the substring SearchText in the string SourceText, starting the search at position Offset (default 1).

    If SearchText does not occur in SourceText after the given Offset, zero is returned.

    @@ -955,37 +968,37 @@

    3.5. UTF-8 library

    LazUtf8.Copy
    -

    Result = LazUtf8.Copy(Source, Index, Count)

    +

    sResult = LazUtf8.Copy(String, iIndex, iCount)

    Copy part of a string.

    -

    Copy returns a string which is a copy if the Count characters in Source, starting at position Index.

    -

    If Count is larger than the length of the string Source, the result is truncated. If Index is larger than the length of the string Source, then an empty string is returned.

    +

    Copy returns a string which is a copy if the iCount characters in String, starting at position iIndex.

    +

    If iCount is larger than the length of the string String, the result is truncated. If iIndex is larger than the length of the string String, then an empty string is returned.

    LazUtf8.Length
    -

    Result = LazUtf8.Length(String)

    +

    iResult = LazUtf8.Length(String)

    Returns the number of UTF-8 characters in the string.

    LazUtf8.UpperCase
    -

    Result = LazUtf8.UpperCase(String)

    +

    sResult = LazUtf8.UpperCase(String)

    Receives a string and returns a copy of this string with all lowercase letters changed to uppercase.

    LazUtf8.LowerCase
    -

    Result = LazUtf8.LowerCase(String)

    +

    sResult = LazUtf8.LowerCase(String)

    Receives a string and returns a copy of this string with all uppercase letters changed to lowercase.

    LazUtf8.ConvertEncoding
    -

    Result = LazUtf8.ConvertEncoding(String, FromEnc, ToEnc)

    +

    sResult = LazUtf8.ConvertEncoding(String, FromEnc, ToEnc)

    Convert String encoding from FromEnc to ToEnc.

    List of supported encoding values:

    Char.GetUnicodeCategory
    -

    iResult = Char.GetUnicodeCategory(sVar)

    -

    Returns the Unicode category of a character sVar, one of the following values:

    +

    iResult = Char.GetUnicodeCategory(Character)

    +

    Returns the Unicode category of a character Character, one of the following values:

    @@ -1075,36 +1088,36 @@

    3.6. Char library(Be

    ValueDescription
      Letter:
    Char.IsDigit
    -

    bResult = Char.IsDigit(sVar)

    -

    Returns true if the sVar character is in the Nd category.

    +

    bResult = Char.IsDigit(Character)

    +

    Returns true if the Character character is in the Nd category.

    Char.IsLetter
    -

    bResult = Char.IsLetter(sVar)

    -

    Returns true if the sVar character is in the category Lu, Ll, Lt, Lm or Lo.

    +

    bResult = Char.IsLetter(Character)

    +

    Returns true if the Character character is in the category Lu, Ll, Lt, Lm or Lo.

    Char.IsLetterOrDigit
    -

    bResult = Char.IsLetterOrDigit(sVar)

    -

    Returns true if the sVar character is in the category Lu, Ll, Lt, Lm Lo, Nd или Nl.

    +

    bResult = Char.IsLetterOrDigit(Character)

    +

    Returns true if the Character character is in the category Lu, Ll, Lt, Lm Lo, Nd или Nl.

    Char.IsLower
    -

    bResult = Char.IsLower(sVar)

    -

    Returns true if the sVar character is in the Ll category.

    +

    bResult = Char.IsLower(Character)

    +

    Returns true if the Character character is in the Ll category.

    Char.IsUpper
    -

    bResult = Char.IsUpper(sVar)

    -

    Returns true if the sVar character is in the Lu category.

    +

    bResult = Char.IsUpper(Character)

    +

    Returns true if the Character character is in the Lu category.

    @@ -1122,9 +1135,9 @@

    3.7. OS library

    os.execute
    -

    ResultCode = os.execute(Command)

    -

    Will execute Command as it would be typed on the command-line and return the result code of the operation.

    -

    The Command could either be:

    +

    iResultCode = os.execute(sCommand)

    +

    Will execute sCommand as it would be typed on the command-line and return the result code of the operation.

    +

    The sCommand could either be:

    • A terminal command like os.execute("dir > all.txt")
    • An executable like os.execute("C:\\Windows\\System32\\calc.exe")
    • @@ -1135,36 +1148,36 @@

      3.7. OS library

    os.tmpname
    -

    TempFileName = os.tmpname()

    -

    Will return a filename to use as a temporary filename.

    +

    sTempFileName = os.tmpname()

    +

    Will return a filename to use as a temporary filename (in the system directory for the temporary files).
    If the function could not create a unique name, it will return an empty string.

    os.remove
    -

    bResult, ErrorStr, ErrorNum = os.remove(FileName)

    -

    Will delete the file or the directory with the name FileName.

    +

    bResult, sError, iError = os.remove(sFileName)

    +

    Will delete the file or the directory with the name sFileName.

    If it works, function returns true.

    If it fails, function returns three things:

    1. nil to indicate it failed
    2. -
    3. ErrorStr for the error message description
    4. -
    5. ErrorNum for the error code number
    6. +
    7. sError for the error message description
    8. +
    9. iError for the error code number
    os.rename
    -

    bResult, ErrorStr, ErrorNum = os.rename(OldName, NewName)

    -

    Will rename the file OldName with the new name NewName.

    -

    Note: If a file named NewName already exists, it will be replaced!

    +

    bResult, sError, iError = os.rename(sOldName, sNewName)

    +

    Will rename the file sOldName with the new name sNewName.

    +

    Note: If a file named sNewName already exists, it will be replaced!

    If it works, function returns true.

    If it fails, function returns three things:

    1. nil to indicate it failed
    2. -
    3. ErrorStr for the error message description
    4. -
    5. ErrorNum for the error code number
    6. +
    7. sError for the error message description
    8. +
    9. iError for the error code number
    [P-x]
    directly name a x-level of complete path counting first near the file name[P-2] = Download
    [C]
    an autoincrementing counter for each iteration of using parameters of box "Counter" (negative numbers are also supported)[C] =Number
    incrementing for
    each file
    [V:hint]
    a user define variable "hint" that will be prompt to user at actual rename process[V:Guest] = Prompt
    Guest's value
    [[]
    insert opening square bracket as is[[] = [
    []]
    insert closing square bracket as is[]] = ]

    Here is another example where we've used some of the above placeholders setting the mask to

    diff --git a/doc/en/regexp.html b/doc/en/regexp.html index d1e8f5c1..8f16b82e 100644 --- a/doc/en/regexp.html +++ b/doc/en/regexp.html @@ -612,17 +612,17 @@

    10. Modifiers

    Any of these modifiers may be embedded within the regular expression itself. If modifier is inlined into subexpression, then it effects only into this subexpression.

    i
    -
    Do case-insensitive pattern matching (using installed in your system locale settings).
    +
    Do case-insensitive pattern matching (using installed in your system locale settings). Disabled by default.
    m
    -
    Treat string as multiple lines. That is, change ^ and $ from matching at only the very start or end of the string to the start or end of any line anywhere within the string, see also Line separators.
    +
    Treat string as multiple lines. That is, change ^ and $ from matching at only the very start or end of the string to the start or end of any line anywhere within the string, see also Line separators. Disabled by default.
    s
    Treat string as single line. That is, change . to match any character whatsoever, even a line separator (see also Line separators), which it normally would not match. Enabled by default.
    g
    Non standard modifier. Switching it Off you'll switch all following operators into non-greedy mode (by default this modifier is On). So, if modifier g is Off then + works as +?, * as *? and so on.
    x
    -
    Extend your pattern's legibility by permitting whitespace and comments (see explanation below).
    +
    Extend your pattern's legibility by permitting whitespace and comments (see explanation below). Disabled by default.
    r
    -
    Non-standard modifier. If is set then range а-я additional include Russian letter ё, А-Я additional include Ё, and а-Я include all Russian alphabet (by default this modifier is On).
    +
    Non-standard modifier. If is set then range а-я additional include Russian letter ё, А-Я additional include Ё, and а-Я include all Russian alphabet. Enabled by default.
    #
    (?#text): A comment, the text is ignored. Note that TRegExpr closes the comment as soon as it sees a ), so there is no way to put a literal ) in the comment.
    diff --git a/doc/en/shortcuts.html b/doc/en/shortcuts.html index 38df622f..bbff4bfb 100644 --- a/doc/en/shortcuts.html +++ b/doc/en/shortcuts.html @@ -181,7 +181,7 @@

    2. Main window

    Alt+Z
    - Show same directory in opposite panel (Target=Source) + Open the directory of the active panel in the opposite panel (Target=Source)
    Ctrl+F1
    @@ -269,7 +269,7 @@

    2. Main window

    Ctrl+Q
    - Quick view: content of selected item shown in opposite panel + Quick view: content of selected item shown in opposite panel (see details here)
    Ctrl+R
    diff --git a/doc/en/toolbar.html b/doc/en/toolbar.html index d622841a..2d541f80 100644 --- a/doc/en/toolbar.html +++ b/doc/en/toolbar.html @@ -92,7 +92,8 @@

    4. How to configure the toolbar

    Toolbar configuration

    As we're getting familiar with the toolbar, we'll also probably right click directly on a button from the toolbar to not only open the toolbar editor but beeing ready to immediately edit the associated action of the toolbar button we've right clicked on.

    Toolbar configuration

    -

    Also, the context menu allows to delete the selected button, cut or copy to the clipboard or insert a button from the clipboard.

    +

    In addition, the context menu allows to delete the selected button, cut or copy to the clipboard or insert a button from the clipboard.

    +

    We can also change the order of the toolbar elements without opening the settings window: Double Commander supports dragging buttons with the mouse while holding down the Shift key.

    @@ -109,7 +110,7 @@

    5.1. Description of elements - Separator

    5.2. Description of elements - Internal Command

    The internal commands are related with actions made directly by Double Commander that doesn't need to call an external application.

    The commands are extremely varied. Please see this page which is dedicated to described all the internal commands.

    -

    For example if we want a toolbar button to allow to launch a search, we'll just select the "cm_Search" command from the drop box of command.

    +

    For example if we want a toolbar button to allow to launch a search, we'll just select the cm_Search command from the drop box of command.

    As we see in the following image, we may select a custom icon for it but generally just choosing the command from the drop box of command is enough and command already have an internal associated icon.

    The tooltip is also there to allow us to write an easy to remember little words to remember us the task of the button as we move cursor over.

    Here is an example with that cm_Search command:

    @@ -124,7 +125,8 @@

    5.2. Description of elements - Internal Command5.3. Description of elements - External Command

    The external commands are related with actions that require to call external program.

    For the external commands we have the possibility to set a few more settings that will allow us to configure precisely the command we want to launch, in which directory we want to launch it and what we want to provide as parameters, if necessary, to the commands.

    -

    Regarding the parameters, we may select user variables that will be substituted by their actual value based on the current selected file of the active panel and so on. See the dedicated page of the possible variable to use as parameter under this link.

    +

    The "Command" field is for the executable file only (as is, without quotes): we can specify the file name or the file name with the full path, we can also use environment variables.

    +

    Regarding the parameters, we may select user variables that will be substituted by their actual value based on the current selected file of the active panel and so on. See the dedicated page of the possible variable to use as parameter under this link (please note the use of quotation marks). To run a command in the terminal, we can use the variables %t0 and %t1.

    In the following example, we've set a toolbar button to launch the application GIMP and the %p as parameter means that when we click the button to launch GIMP, the complete filename of the current selected file in the active panel will be passed as parameter, since that's what %p stands for.

    Example of external command

    If we do not need to explicitly specify the working directory, then we can leave the "Start Path" field empty, in this case, the working directory will be the current directory of the active file panel.

    diff --git a/doc/en/variables.html b/doc/en/variables.html index d0fddd77..aa64ad3b 100644 --- a/doc/en/variables.html +++ b/doc/en/variables.html @@ -43,13 +43,14 @@

    Content

    1. Quick presentation

    -

    Variable will help us to when configurating toolbar buttons or setting file association action.

    +

    Variable will help us to when configurating toolbar buttons or setting file association actions and hotkey actions.

    We will basically use them when it's time to provide a parameter to command based on the current selected file(s), directory where we are and other things like that related with the context of what we're displaying in the panels.

    Here is an easy example. The person configured a button to launch IrfanView with the variable %p has the parameter.

    +

    Example of variable

    When the person will click that button, it will launch IrfanView with the variable %p be substituted by the current selected file in the active panel.

    That's what variables described in this page are all about.

    As you will see, most of them are beginning with the percent sign %.

    -

    Example of variable

    +

    Note: Variables and suffixes are case sensitive!

    @@ -311,7 +312,7 @@

    8. Trailing path delimited or not

    9. List of files

    Some application will accept a single file name as a parameter and assumed this file is a text file containing a list of file names.

    -

    DC proposes us variables that will create a temporary text file with the list of all specified selected items and the file name of the temporary created file will we substituted to the variable.

    +

    Double Commander proposes us variables that will create a temporary text file (in the system directory for the temporary files) with the list of all specified selected items and the file name of the temporary created file will we substituted to the variable.

    @@ -329,6 +330,7 @@

    9. List of files

    List of files variable
    ExpressionDescription

    Double Commander will use the ANSI system encoding in Windows or the default system encoding in Unix-like systems (in GNU/Linux distributions it is usually UTF-8).

    +

    When closing, Double Commander deletes all such temporary files.

    @@ -529,7 +531,8 @@

    15. Summary table of all variables

    16. Environment variables

    -

    Double Commander provides several environment variables:

    +

    We can use environment variables in the Double Commander settings: in the names of executable files and icons on the toolbar, in the names of plugins, favorite directories, and so on. This is a convenient way to specify a path if we don't want to use absolute paths.

    +

    Double Commander supports system environment variables and provides several of its own environment variables:

    @@ -548,6 +551,8 @@

    16. Environment variables

    Environment variables
    VariableDescription

    We can use environment variables in the Double Commander settings: in the names of executable files and icons on the toolbar, in the names of plugins, favorite directories, and so on. This is a convenient way to specify a path if we don't want to use absolute paths.

    Additionally, the %DC_CONFIG_PATH% variable is available, which returns the directory with the Double Commander configuration files. This is not an environment variable and it is not available for child processes (applications launched from Double Commander), but otherwise we can use %DC_CONFIG_PATH% in the same way as the environment variables described above.

    +

    In Windows, we can additionally use pseudo environment variables in the format %$Name%, which correspond to standard Windows system folders (to get the values, Double Commander uses the SHGetSpecialFolderPath and SHGetKnownFolderPath functions from the Windows API). These are not normal environment variables and are not available for child processes, but otherwise we can use them in a similar way to environment variables. All these variables are collected in the path selection assistant menu: to the right of the file or directory choose buttons is the button Some functions to select appropriate path Some functions to select appropriate path, see description here.

    +

    All these variables have been added to the Directory Hotlist menu (the Special Dirs submenu).

    diff --git a/doc/en/viewer.html b/doc/en/viewer.html index d95fba67..f34fbb39 100644 --- a/doc/en/viewer.html +++ b/doc/en/viewer.html @@ -38,7 +38,8 @@

    Content

    4. Status bar
    5. Preview
    6. Copying/moving files
    -
    7. Additional settings
    +
    7. Quick view
    +
    8. Additional settings
    @@ -47,7 +48,7 @@

    1. Introduction

    The built-in viewer is designed to view files of any size in text, hexadecimal or binary format and image files.

    Built-in file viewer

    The selected text will be automatically copied to the clipboard, to disable we can use the <AutoCopy>(Beta version) parameter.

    -

    By default, the viewer call is assigned to the F3 key, we can change this in the settings. A quick view mode (Ctrl+Q) is also available: instead of a separate window, the opposite (inactive) file panel will be used.

    +

    By default, the viewer call is assigned to the F3 key, we can change this in the settings.

    Supported image formats: BMP, CUR, GIF, ICNS, ICO, JPEG, PNG, PNM (PBM, PGM and PPM), PSD, SVG/SVGZ(Beta version), TIFF, XPM. In addition, if the required libraries are available:

    Plugins have priority over other supported view modes.

    Wrap text(Beta version) – enables or disables wrapping lines that do not fit in the window (by word boundaries).

    @@ -226,7 +227,17 @@

    6. Copying/moving files

    -

    7. Additional settings

    +

    7. Quick view

    +

    Additional file viewing mode (Ctrl+Q by default): instead of a separate window, the contents of the file under the cursor will be shown in the opposite (inactive) file panel. As we navigate to next items, displayed content is updated, this allows to view the contents of files simply by moving the cursor in the file panel.

    +

    Quick view can be disabled by pressing Ctrl+Q again, also it will be disabled when switching any panel (active or inactive) to another tab.

    +

    "View" actions added in the file association settings are ignored.

    +

    Not all viewer commands can work in this mode, for example, commands to load the previous or next file in the directory (P and N by default).

    +

    Some interface elements may be hidden (for example, when viewing images in the "Graphics" mode, Double Commander will hide the toolbar). There is no general rule or recommendation for plugins, the decision is made by the plugin author.

    + +
    + +
    +

    8. Additional settings

    See the description of the Double Commander settings sections: Tools > Viewer. There are several parameters that can only be changed manually in the doublecmd.xml configuration file.


    diff --git a/doc/ru/cmds.html b/doc/ru/cmds.html index 684ec8ad..b27c8b3c 100644 --- a/doc/ru/cmds.html +++ b/doc/ru/cmds.html @@ -233,7 +233,7 @@

    2.1. Активная панель

    cm_QuickView
    cm_QuickView
    Ctrl+Q
    - Быстрый просмотр, содержимое выбранного файла будет показано на противоположной панели (вместо отдельного окна).
    При перемещении на следующий или предыдущий отображаемое содержимое обновится. + Быстрый просмотр, содержимое выбранного файла будет показано на противоположной панели (вместо отдельного окна).
    Подробнее смотрите здесь. cm_SortByName @@ -338,7 +338,7 @@

    2.1. Активная панель

    (отсутствует) - сортировать с нисходящим порядком + сортировать с возрастающим порядком Примечание: Если какой-либо из этих трёх параметров не задан или задан неправильно, то значениями по умолчанию для этих параметров будут: panel=active, column=name и order=ascending. @@ -1133,7 +1133,7 @@

    2.7. Разное

    cm_LoadList
    cm_LoadList(Бета-версия)
    - Загрузить список файлов/папок из указанного текстового файла (обычный текстовый файл, содержащий полные имена файлов, по одному на строку).
    + Загрузить список файлов/папок из указанного текстового файла (обычный текстовый файл, содержащий полные имена файлов, по одному на строку). Используйте UTF-8 без BOM.

    @@ -1652,7 +1652,7 @@

    2.10. Навигация

    - + @@ -217,8 +230,8 @@

    3.2. Библиотека System

    @@ -231,32 +244,32 @@

    3.2. Библиотека System

    @@ -289,48 +302,55 @@

    3.2. Библиотека System

    + + + + @@ -338,55 +358,48 @@

    3.2. Библиотека System

    - - - -
    cm_TargetEqualSource
    Alt+Z
    Показать тот же каталог в противоположной панели.Открыть каталог активной панели в противоположной панели.
    cm_TransferLeft diff --git a/doc/ru/configuration.html b/doc/ru/configuration.html index 3efcc724..c45b273a 100644 --- a/doc/ru/configuration.html +++ b/doc/ru/configuration.html @@ -337,12 +337,12 @@

    2. Настройки

    Если атрибут не должен быть установлен, его нужно заменить символом "-", ненужные следует скрыть: звёздочка "*" обозначает любое количество символов, знак вопроса "?" – любой один символ. Например, с ?r* (Windows) или ?r-* (Linux) будут найдены все файлы и папки только для чтения.

    Вы можете использовать цвет из списка или указать свой с помощью кнопки ">>".

    Не забывайте нажимать на кнопку "Применить" после внесения изменений в список или в свойства.

    -

    Правила применяются строго в обратном порядке: правило, находящееся выше в списке, будет перекрывать любое правило ниже.

    +

    Double Commander проверяет список сверху вниз до первого совпадения: правило, находящееся выше в списке, будет перекрывать любое правило ниже.


    2.6. Клавиши

    Клавиши

    -

    Здесь вы можете настроить действие при нажатии некоторых клавиш в активной файловой панели: Буквы, Alt+Буква, Ctrl+Alt+Буква. Вы можете выбрать одно из следующих действий: ничего не делать, установить фокус на командную строку и ввести команду, запустить быстрый поиск или быстрый фильтр

    +

    Здесь вы можете настроить действие при нажатии некоторых клавиш в активной файловой панели: Буквы, Alt+Буква, Ctrl+Alt+Буква. Вы можете выбрать одно из следующих действий: ничего не делать, установить фокус на командную строку и ввести команду, запустить быстрый поиск или быстрый фильтр.

    Правая и левая стрелки меняют каталог (Lynx-поведение) – стрелка вправо открывает каталог или запускает программу под курсором, а стрелка влево открывает родительский каталог.


    @@ -469,7 +469,7 @@

    2. Настройки

    Первый параметр в группе Форматирование – Формат даты и времени. Вы можете выбрать один из существующих шаблонов из выпадающего списка или задать собственный, используя символы форматирования даты и времени.

    Символы форматирования представлены ниже (на основе документации Free Pascal). Некоторые значения зависят от ваших региональных настроек!

    -

    Как пример мы будем использовать 2021.01.24 09:06:02 (то есть yyyy.mm.dd hh:mm:ss) и регион Россия.

    +

    Как пример мы будем использовать 2021.01.24 09:06:02 (то есть yyyy.mm.dd hh:mm:ss) и регион Россия.

    @@ -641,7 +641,7 @@

    2. Настройки

    Информационные плагины предназначены для получения свойств файла или информации о его содержимом (например, теги EXIF или ID3). Вы можете использовать эти данные в инструменте поиска файлов или группового переименования, наборе колонок, всплывающих подсказках.
    Также Double Commander поддерживает контентные плагины, написанные на языке Lua (скрипты добавляются как обычные плагины). Примеры можно найти в папке программы (plugins/wdx/scripts).

    3. Плагины файловой системы (WFX)

    -

    Плагины файловой системы используют собственные файловые системы или предоставляют доступ к другим файловым системам и устройствам (локальным или удалённым). Например, FTP-серверы, Samba, мобильные устройства. Также это могут быть списки файлов, запущенных процессов и служб или реестр Windows.

    +

    Плагины файловой системы используют собственные файловые системы или предоставляют доступ к другим файловым системам и устройствам (локальным или удалённым). Например, FTP-серверы, сетевые каталоги, мобильные устройства. Также это могут быть списки файлов, запущенных процессов и служб или реестр Windows.

    4. Плагины встроенной программы просмотра (WLX)

    Встроенный просмотрщик отображает обычные текстовые файлы, некоторые форматы изображений и вывод консольных команд, плагины позволяют расширить этот список: электронные документы и базы данных, аудио и видео файлы, файлы шрифтов, содержимое архивов, подробная информация о некоторых файлах, файлы исходного кода с подсветкой синтаксиса.
    Порядок имеет значение: при выборе подходящего плагина Double Commander начинает проверку сверху вниз.

    @@ -769,7 +769,6 @@

    2. Настройки


    2.13.1. Вкладки каталогов > Избранные вкладки

    -

    Избранные вкладки – это сохранённые наборы вкладок, сгруппированных по удобным для вас критериям (работа, проекты, хобби и так далее), они позволяют открывать во вкладках сразу все нужные каталоги.

    Список сохранённых наборов вкладок доступен в меню "Избранное" и во всплывающем меню, вызываемом командой cm_LoadFavoriteTabs.

    В этом разделе вы можете управлять ими: изменить порядок, имена, удалить ненужное, отсортировать или сгруппировать в подменю.

    Избранные вкладки

    @@ -934,7 +933,7 @@

    2. Настройки

    В этом разделе содержатся настройки всплывающих подсказок при наведении указателя мыши на файл.

    Подсказки

    Показывать всплывающие подсказки в файловой панели – включает возможность использования подсказок.

    -

    Типы файлов – содержит список групп файлов.

    +

    Типы файлов – содержит список групп файлов. Double Commander проверяет список сверху вниз до первого совпадения: группа файлов, находящейся выше в списке, будет перекрывать любую группу файлов ниже.

    Кнопки:

    • Применить – сохранит настройки для выделенного типа файлов.

    • @@ -961,11 +960,12 @@

      2. Настройки

    • Показать только подсказку DC.

    • Показать только системную подсказку.

    -

    Если вы не добавили свои подсказки для заданных типов файлов, то подсказка DC будет содержать только имя файла. Содержимое системной подсказки зависит от операционной системы:

    +

    Содержимое системной подсказки зависит от операционной системы:

    • Windows: Имя файла и то же, что и в Проводнике Windows. Если не удалось получить информацию, то Double Commander покажет то же, что и в Linux и других Unix-подобных системах.

    • Linux и другие Unix-подобные системы: Имя файла, дата модификации и размер.

    +

    Первая строка подсказки всегда содержит имя файла и если вы ничего не указали в поле Подсказка, то подсказка DC будет содержать только имя файла.

    Скрыть подсказку через – устанавливает продолжительность отображения подсказки: значение из системы, 1 сек, 2 сек, 3 сек, 5 сек, 10 сек, 30 сек, 1 мин и никогда не скрывать (подсказка будет скрыта, когда вы переместите курсор мыши на другой файл или за пределы файловой панели).

    На изображении в начале описания раздела вы можете видеть пример всплывающей подсказки с плагином textline.wdx, который показывает содержимое выбранных строк текстового файла (в данном случае первой, второй и третьей строк), выбран режим Объединить подсказку DC и системную, сначала системная.


    diff --git a/doc/ru/directoryhotlist.html b/doc/ru/directoryhotlist.html index 65331f48..28f64979 100644 --- a/doc/ru/directoryhotlist.html +++ b/doc/ru/directoryhotlist.html @@ -157,6 +157,7 @@

    2.6. Персонализация новой запи

    Но если вы хотите, то можете переименовать её: просто перейдите в поле "Имя" и введите легко запоминающееся.

    В этом примере имя папки "doc", но именем записи будет "Documentation" и именно его вы увидите во всплывающем меню.

    Персонализация

    +

    Символ амперсанда "&" в имени имеет специальное значение, мы можем использовать его для быстрого выбора каталога в меню с помощью клавиатуры, просто добавьте амперсанд перед одной из букв. Чтобы использовать этот символ как есть, мы должны удвоить его ("&&").

    @@ -191,8 +192,9 @@

    2.9. Помощник для пути и целевог

    Краткий обзор того, что вы там найдёте:

    • Использовать специальные пути Double Commander – Путь к исполняемому файлу, путь к файлам конфигурации и т.д.
    • -
    • Использовать специальную папку Windows (TC) – Для Microsoft Windows, различные относительные пути Windows, аналог псевдопеременных ТС.
    • -
    • Использовать другую специальную папку Windows – То же, что и выше, но новое, нет в TC.
    • +
    • Использовать специальную папку Windows (TC) – Только Windows: содержит список псевдопеременных окружения.
      + Примечание: Это список соответствует списку переменных, поддерживаемых в Total Commander, и также используется для импортирования из Total Commander и экспортирования избранных каталогов (смотрите ниже) и панели инструментов.
    • +
    • Использовать другую специальную папку Windows – Дополнительные псевдопеременные окружения.
    • Использовать переменную окружения – Конечно, некоторые значения на самом деле не будут действительно полезными, но другие могут ими быть, давайте их использовать!
    • Использовать путь из избранных каталогов – Вы можете добавить избранные каталоги... из избранных каталогов!
    • Сделать путь относительным к... – То же самое для каждого из перечисленных выше, НО вместо прямого ДОБАВЛЕНИЯ пути, он будет сделан относительным к выбранному.
    • diff --git a/doc/ru/faq.html b/doc/ru/faq.html index f30b1863..39a7b5bd 100644 --- a/doc/ru/faq.html +++ b/doc/ru/faq.html @@ -381,7 +381,7 @@

      5. Вопросы, связанные со встроенной програ

      Как создать или изменить:

      Используйте UniHighlighter Editor или HglEditor (скачать). Обе программы были написаны для Windows, но вы можете использовать Wine. HglEditor сохранит HGL-файл в новом формате.
      Также доступны два архива с различными схемами подсветки синтаксиса.
      - В разделе Инструменты > Редактор > Подсветка вы можете можете изменить используемые цвета текста и фона и стиль шрифта.(Бета-версия)

      + В разделе Инструменты > Редактор > Подсветка вы можете изменить используемые цвета текста и фона и стиль шрифта.(Бета-версия)

      Как добавить:

      1) Портативная версия
      Скопируйте (или переместите) HGL-файл(ы) в папку "highlighters" рядом с doublecmd.exe и перезапустите DC.

      diff --git a/doc/ru/findfiles.html b/doc/ru/findfiles.html index d33bd99d..bee60dc7 100644 --- a/doc/ru/findfiles.html +++ b/doc/ru/findfiles.html @@ -53,11 +53,11 @@

      1. Введение

      2. Вкладка "Стандартный"

      На этой вкладке мы можем искать файлы по имени и их содержимому.

      Поиск: Стандартный

      -

      В строке Начинать с каталога указываем начальный каталог для поиска, по умолчанию будет использоваться текущий каталог активной панели.

      +

      В поле Начинать с каталога указываем начальный каталог для поиска, по умолчанию будет использоваться текущий каталог активной панели.

      Дополнительные параметры для указания места поиска файлов:

      • В открытых вкладках – будут использоваться только каталоги открытых вкладок (вкладки активной и неактивной панелей).

      • -
      • Выделенные файлы и каталоги – если включено, то поиск будет вестись только среди выделенных в активной панели файлов и папок.

      • +
      • Выделенные файлы и каталоги – если включено, то поиск будет вестись только среди выделенных в активной панели файлов и папок. Если в файловой панели есть выделенные файлы/папки, то этот параметр будет включен автоматически.

      • Следовать ссылкам – если будет найдена символьная ссылка на каталог, целевой каталог будет прочитан и использован, иначе эта символьная ссылка будет считаться обычным файлом.

      • Исключить подкаталоги – список каталогов, которые нужно исключить из поиска, здесь мы можем указать имена папок и относительные или абсолютные(Бета-версия) пути.

      • Глубина вложенности подкаталогов может принимать значения:

        @@ -66,9 +66,9 @@

        2. Вкладка "Стандартный"

      • число уровней (на выбор от 1 до 100),

      • все (неограниченная).

      -

      Эта настройка управляет глубиной "погружения" по дереву каталогов во время поиска. Указав "только текущий", мы ограничим поиск папкой, указанной в строке "Начинать с каталога" (подкаталоги просматриваться не будут).

      +

      Эта настройка управляет глубиной "погружения" по дереву каталогов во время поиска. Указав "только текущий", мы ограничим поиск папкой, указанной в поле "Начинать с каталога" (подкаталоги просматриваться не будут).

    -

    В строке Искать файлы задаём маску, по которой будет осуществляться поиск. Или мы можем просто указать имя файла или его часть.

    +

    В поле Искать файлы задаём маску, по которой будет осуществляться поиск. Или мы можем просто указать имя файла или его часть.

    Дополнительные параметры:

    • Искать в архивах – если включено, Double Commander дополнительно попытается прочитать содержимое всех архивов в каталоге(ах) поиска. Список поддерживаемых форматов зависит от добавленных архиваторных плагинов.

    • @@ -76,7 +76,7 @@

      2. Вкладка "Стандартный"

    • Регулярное выражение – если включено, можно использовать регулярные выражения.

    • Исключить файлы – список имён файлов, которые нужно исключить из поиска. Также поддерживаются маски.

    -

    Примечание: Маска файла, Исключить файлы, Начинать с каталога и Исключить подкаталоги позволяют ввести несколько значений, разделённых точкой с запятой ";" (без пробелов). Если необходимо найти файл с точкой с запятой в имени, мы можем использовать регулярные выражения.

    +

    Примечание: Искать файлы, Исключить файлы, Начинать с каталога и Исключить подкаталоги позволяют ввести несколько значений, разделённых точкой с запятой ";" (без пробелов). Если необходимо найти файл с точкой с запятой в имени, мы можем использовать регулярные выражения.

    Если отмечено Искать в файле текст, во время поиска будет происходить просмотр содержимого файлов и в результат поиска попадут только содержащие указанный текст. Также во время поиска можно сразу заменить указанный текст на другой, включив Заменить текст и указав строку замены.

    Дополнительные параметры:

      @@ -100,7 +100,7 @@

      2. Вкладка "Стандартный"

      Кнопка Старт запускает поиск, Отмена останавливает, а Закрыть закрывает окно поиска файлов.

      Новый поиск – очищает поле результатов и позволяет запустить поиск заново (возможно, с другими условиями).

      Предыдущий поиск – загружает параметры из предыдущего поиска (в текущей сессии, до закрытия Double Commander).

      -

      Для удаления ненужных записей из истории полей ввода используйте Shift+Del.

      +

      Если включено сохранение истории, то для удаления ненужных записей из истории полей ввода мы можем использовать Shift+Del.

      @@ -321,14 +321,14 @@

      6. Вкладка "Результаты"

    • Убрать из списка (или Del) – позволяет убрать из списка неподходящие результаты (файловая система не будет затронута).

    • Показать все найденные – отменяет действие предыдущей команды.

    -

    Чтобы выделить несколько файлов, используйте мышь и клавиши Ctrl и Shift или Shift и стрелки.

    +

    Чтобы выделить несколько файлов, мы можем использовать мышь и клавиши Ctrl и Shift или Shift и стрелки.

    Клавиши стрелка влево и стрелка вправо переключают фокус между списком результата поиска и кнопкой Новый поиск.

    7. Дополнительные настройки

    -

    Дополнительные параметры, связанные с инструментом поиска, представлены на странице настроек Файловые операции > Поиск файлов.

    +

    Дополнительные параметры, связанные с инструментом поиска, представлены в разделе настроек Файловые операции > Поиск файлов.

    Поиск: Дополнительные настройки

    Поиск файлов:

      diff --git a/doc/ru/help.html b/doc/ru/help.html index 8a35b845..1829e32a 100644 --- a/doc/ru/help.html +++ b/doc/ru/help.html @@ -230,9 +230,9 @@

      2.1.1. "Файлы"

      2.1.2. "Выделение"

      Здесь собраны команды, при помощи которых можно выделить группу файлов, а также производить разные действия с выделением.

      -

      Первый и второй пункты Выделить группу и Снять выделение с группы (команды cm_MarkPlus и cm_MarkMinus). Эти команды выделяют группы файлов по маске. В маске можно указать часть имён файлов или расширения.

      +

      Первый и второй пункты Выделить группу и Снять выделение с группы (команды cm_MarkPlus и cm_MarkMinus). Эти команды выделяют группы файлов по маске. В маске можно указать часть имён файлов или расширения (вы можете указать несколько значений, перечислив их через точку с запятой ";" без пробелов). Например, выделить в каталоге все файлы с расширением txt:

      Выделить группу

      -

      Например, выделить в каталоге все файлы с расширением txt. Кнопка со стрелкой вниз в конце строки открывает список истории масок.

      +

      Кнопка со стрелкой вниз в конце строки открывает список истории масок.

      Третий и четвёртый пункты Выделить все (команда cm_MarkMarkAll) и Снять выделение со всех (команда cm_MarkUnmarkAll). С их помощью можно выделить все файлы и папки в каталоге активной панели или снять это выделение.

      Пятый пункт – Инвертировать выделение (команда cm_MarkInvert). Со всех выделенных файлов и папок в текущем каталоге выделение будет снято, а все неотмеченные наоборот, будут выделены.

      Шестой и седьмой пункты Выделить файлы по расширению (команда cm_MarkCurrentExtension) и Снять выделение по расширению (команда cm_UnmarkCurrentExtension). С помощью этих команд можно выделить или снять выделение со всех файлов с тем же расширением, что и у файла под курсором.

      @@ -335,7 +335,7 @@

      2.1.6. "Избранное"

      2.1.7. "Вид"

      Позволяет управлять отображением содержимого файловых панелей.

      Первые три пункта позволяют переключить вид списка файлов: Краткий (команда cm_BriefView), Подробный (команда cm_ColumnsView) и Эскизы (команда cm_ThumbnailsView). Подробнее смотрите ниже.

      -

      Быстрый просмотр (команда cm_QuickView) – откроет файл в программе просмотра, но содержимое выбранного файла будет показано на противоположной панели (вместо отдельного окна). В этом случае программа просмотра, указанная в настройках файловых ассоциаций, будет проигнорирована. При перемещении на следующий файл отображаемое содержимое обновится, это позволяет просматривать содержимое файлов просто перемещая курсор в файловой панели.

      +

      Быстрый просмотр (команда cm_QuickView) – откроет файл в программе просмотра, но содержимое выбранного файла будет показано на противоположной панели (вместо отдельного окна). Подробнее смотрите здесь.

      Дерево каталогов (команда cm_TreeView) – показывает дерево каталогов для активной файловой панели. Команда cm_FocusTreeView переключает фокус между списком файлов и деревом (Shift+Tab по умолчанию).

      Следующие пять пунктов: Сортировать по имени (команда cm_SortByName), @@ -400,12 +400,12 @@

      2.3. Панель кнопок дисков2.4. Список дисков

      Список дисков

      Помогает сменить диск, также содержит дополнительную информацию (размер, свободное пространство) и кнопки навигации – « * \ .. ~ < ».

      -

      Внутренняя команда cm_LeftOpenDrives для левой панели и cm_RightOpenDrives – для правой. Сочетания клавиш по умолчанию: Alt+F1 и Alt+F2, но они не работают в большинстве сред рабочего стола Linux, так как уже заняты, просто замените их.

      +

      Внутренняя команда cm_LeftOpenDrives для левой панели и cm_RightOpenDrives – для правой. Сочетания клавиш по умолчанию: Alt+F1 и Alt+F2, но они не работают в большинстве сред рабочего стола Linux, так как уже заняты (просто откройте раздел настроек Клавиши > ГГорячие клавиши и замените их).

      Список дисков

      Внутренняя команда cm_SrcOpenDrives покажет это меню для активной панели.

      Дополнительные кнопки навигации:

      "*" – показать избранные каталоги, подробнее смотрите на странице Избранные каталоги;

      -

      "\" или "/" – перейти в корень текущего диск (Windows) или в корень файловой системы (Linux и другие Unix-подобные системы). Исключения:

      +

      "\" или "/" – перейти в корень текущего диска (Windows) или в корень файловой системы (Linux и другие Unix-подобные системы). Исключения:

      • архив или WFX-плагин: перейти в корень архива или другой виртуальной файловой системы.
      • заблокированная вкладка: если вы используете Заблокировать с возможностью смены каталога, эта кнопка сменит текущий путь на заблокированный.
      • @@ -427,9 +427,11 @@

        2.5. Панель заголовков вкладок

        2.6. Текущий путь

        Текущий путь

        -

        Показывает текущий путь. Щелчок левой кнопки мыши вызывает меню с историей смены каталогов (команда cm_DirHistory), которое позволяет быстро перейти к предыдущим каталогам:

        +

        Показывает каталог, открытый в файловой панели.

        +

        Щелчок левой кнопки мыши вызывает меню с историей смены каталогов (команда cm_DirHistory), которое позволяет быстро перейти к предыдущим каталогам:

        История смены каталогов

        -

        Щелчок правой кнопки позволит скопировать путь в буфер обмена или же ввести необходимый путь вручную (поддерживаются переменные окружения, в Unix-подобных операционных системах также можно использовать символ тильды "~" для обозначения домашнего каталога текущего пользователя). Двойной щелчок или щелчок средней кнопкой мыши вызывает меню с избранными каталогами.

        +

        Щелчок правой кнопки позволит скопировать путь в буфер обмена или же ввести необходимый путь вручную. Вместо мыши вы можете использовать клавиатуру, просто задайте горячую клавишу для команды cm_EditPath. Поддерживаются переменные окружения, в Unix-подобных операционных системах также можно использовать символ тильды "~" для обозначения домашнего каталога текущего пользователя.

        +

        Двойной щелчок или щелчок средней кнопкой мыши вызывает меню с избранными каталогами.

        Также можно щёлкать по частям пути для быстрого перехода назад в структуре каталогов. Очень удобно, если вы хотите перейти в родительский каталог на несколько уровней. Это функция навигации, известная как "хлебные крошки".

      @@ -567,11 +569,14 @@

      2.9. Строка состояния

      2.10. Командная строка

      Командная строка

      -

      Командная строка используется для введения команд вручную. В начале строки указан путь каталога активной панели, в котором будет выполняться введённая здесь команда (на изображении команда будет выполнятся в каталоге C:\Program Files\Double Commander\). Кнопка справа со стрелкой вниз открывает историю введённых команд. Для удаления ненужных записей из истории используйте Shift+Del.

      -

      Double Commander самостоятельно обрабатывает команду "cd", вы можете использовать её для смены текущего каталога в активной панели. Если вы используете путь с именем файла, Double Commander поместит курсор на этот файл.

      -

      В Windows вы можете сменить диск, просто указав букву диска и двоеточие: c:, d: и так далее.

      +

      Командная строка используется для введения команд вручную, вы можете быстро запустить или открыть файл в текущем каталоге или в PATH (с дополнительными параметрами если это необходимо).

      +

      В начале указан путь каталога активной панели, в котором будет выполняться введённая здесь команда (на изображении команда будет выполнятся в каталоге C:\Program Files\Double Commander\). Кнопка справа со стрелкой вниз открывает историю введённых команд. Для удаления ненужных записей из истории используйте Shift+Del.

      +

      Для работы с командной строкой доступно несколько внутренних команд, также смотрите параметры ввода в разделе настроек Клавиши.

      +

      Если командная строка скрыта в настройках, вы по-прежнему можете её использовать. В этом случае командная строка будет автоматически скрыта после того, как команда будет запущена. Вы можете скрыть её с помощью клавиши Esc (если поле ввода пустое) или просто переместите курсор в файловую панель (или иным способом переключите фокус).

      Поддерживаются переменные окружения, в Unix-подобных операционных системах также можно использовать символ тильды "~" для обозначения домашнего каталога текущего пользователя.

      -

      Для работы с командной строкой доступно несколько внутренних команд.

      +

      Double Commander независимо обрабатывает команду "cd", вы можете использовать её для смены текущего каталога в активной панели. Если вы используете путь с именем файла, Double Commander сменит каталог и поместит курсор на этот файл. Если вы укажете только имя файла, Double Commander установит курсор на этот файл в текущем каталоге.

      +

      Вы можете использовать косую черту: cd \ для перехода в корень текущего диска (Windows) и cd / для перехода в корень файловой системы (Linux и другие Unix-подобные системы).

      +

      В Windows вы можете сменить диск, просто указав букву диска и двоеточие: c:, d: и так далее.

      Щелчок правой кнопкой мыши покажет обычное меню поля ввода, содержащее стандартные команды Вырезать, Копировать, Вставить, Удалить, Выделить всё и подменю Вставить управляющий символ Юникода.

      diff --git a/doc/ru/images/imgDC/archiveimg1.png b/doc/ru/images/imgDC/archiveimg1.png index dfc27072..0eca0836 100644 Binary files a/doc/ru/images/imgDC/archiveimg1.png and b/doc/ru/images/imgDC/archiveimg1.png differ diff --git a/doc/ru/images/imgDC/archiveimg11.png b/doc/ru/images/imgDC/archiveimg11.png index 5ad919f6..4d2af2da 100644 Binary files a/doc/ru/images/imgDC/archiveimg11.png and b/doc/ru/images/imgDC/archiveimg11.png differ diff --git a/doc/ru/images/imgDC/archiveimg15.png b/doc/ru/images/imgDC/archiveimg15.png index a49e7788..3797d09e 100644 Binary files a/doc/ru/images/imgDC/archiveimg15.png and b/doc/ru/images/imgDC/archiveimg15.png differ diff --git a/doc/ru/images/imgDC/dirhotoverview.png b/doc/ru/images/imgDC/dirhotoverview.png index c2285ad6..799153a3 100644 Binary files a/doc/ru/images/imgDC/dirhotoverview.png and b/doc/ru/images/imgDC/dirhotoverview.png differ diff --git a/doc/ru/images/imgDC/luaimg3.png b/doc/ru/images/imgDC/luaimg3.png index fb12bbca..b72f0b77 100644 Binary files a/doc/ru/images/imgDC/luaimg3.png and b/doc/ru/images/imgDC/luaimg3.png differ diff --git a/doc/ru/images/imgDC/luaimg4.png b/doc/ru/images/imgDC/luaimg4.png index 33066ea9..551e4225 100644 Binary files a/doc/ru/images/imgDC/luaimg4.png and b/doc/ru/images/imgDC/luaimg4.png differ diff --git a/doc/ru/images/imgDC/mulreneditnewnames.png b/doc/ru/images/imgDC/mulreneditnewnames.png index 721a3ed2..1567eb85 100644 Binary files a/doc/ru/images/imgDC/mulreneditnewnames.png and b/doc/ru/images/imgDC/mulreneditnewnames.png differ diff --git a/doc/ru/images/imgDC/ris27.png b/doc/ru/images/imgDC/ris27.png index 9771202b..f91d7535 100644 Binary files a/doc/ru/images/imgDC/ris27.png and b/doc/ru/images/imgDC/ris27.png differ diff --git a/doc/ru/images/imgDC/toolbarmenu.png b/doc/ru/images/imgDC/toolbarmenu.png index e991df79..63bd422b 100644 Binary files a/doc/ru/images/imgDC/toolbarmenu.png and b/doc/ru/images/imgDC/toolbarmenu.png differ diff --git a/doc/ru/images/imgDC/variablesample.png b/doc/ru/images/imgDC/variablesample.png index 57d8cf54..628787ad 100644 Binary files a/doc/ru/images/imgDC/variablesample.png and b/doc/ru/images/imgDC/variablesample.png differ diff --git a/doc/ru/lua.html b/doc/ru/lua.html index 6d18629c..8140b337 100644 --- a/doc/ru/lua.html +++ b/doc/ru/lua.html @@ -68,25 +68,38 @@

      Содержание

      1. Введение

      -

      Double Commander может выполнять скрипты Lua с помощью команды cm_ExecuteScript. - Параметры скриптов должны передаваться как есть, без экранирования (без кавычек или "\"), для этого необходимо использовать переменную %"0: например, %"0%p0 для файла под курсором вместо %p0, %"0%D для текущего каталога вместо %D и так далее. - Для получения списка всех выделенных файлов мы можем использовать %LU или внутренние команды cm_SaveSelectionToFile или cm_CopyFullNamesToClip.

      +

      Подробную информацию о скриптовом языке программирования Lua можно найти на веб-сайте Lua.

      +

      Double Commander может выполнять скрипты Lua с помощью команды cm_ExecuteScript.
      + Параметры скриптов должны передаваться как есть, без экранирования (без кавычек или "\"), для этого необходимо использовать переменную %"0: например, %"0%p0 для файла под курсором вместо %p0 или %"0%D для текущего каталога вместо %D. В противном случае, если Double Commander автоматически добавит кавычки, они будут переданы как часть параметра и вам придётся их учитывать.
      + Для получения списка всех выделенных файлов мы можем использовать переменные (%LU, %FU или %RU) или внутренние команды (cm_SaveSelectionToFile, cm_SaveFileDetailsToFile(Бета-версия), cm_CopyFullNamesToClip или cm_CopyFileDetailsToClip). + Мы можем использовать, например, %p: в этом случае Double Commander передаст имена всех выделенных файлов одной строкой, разделяя имена пробелом.

      Также на языке Lua можно писать информационные плагины, примеры можно найти в папке программы (plugins/wdx/scripts). В Вики есть страница, посвящённая написанию плагинов. Ограничения: поддерживаются только следующие типы данных

        -
      • ft_numeric_32 – 32-битное целое число со знаком;
      • -
      • ft_numeric_64 – 64-битное целое число со знаком;
      • -
      • ft_numeric_floating – число с плавающей запятой;
      • -
      • ft_boolean – логический (булев) тип: true или false;
      • -
      • ft_multiplechoice – значение, допускающее ограниченное количество вариантов выбора;
      • -
      • ft_string – текстовая строка (используйте UTF-8);
      • -
      • ft_fulltext – полный текст (многострочный текст), используется только для поиска с помощью плагинов;
      • -
      • ft_datetime – для даты/времени: возвращаемая дата будет сконвертирована в отформатированную строку даты и времени (значение зависит от ваших региональных настроек).
      • +
      • ft_numeric_32 (1) – 32-битное целое число со знаком;
      • +
      • ft_numeric_64 (2) – 64-битное целое число со знаком;
      • +
      • ft_numeric_floating (3) – число с плавающей запятой;
      • +
      • ft_boolean (6) – логический (булев) тип: true или false;
      • +
      • ft_multiplechoice (7) – значение, допускающее ограниченное количество вариантов выбора;
      • +
      • ft_string (8) – текстовая строка;
      • +
      • ft_fulltext (9) – полный текст (многострочный текст), используется только для поиска с помощью плагинов;
      • +
      • ft_datetime (10) – для даты/времени: возвращаемая дата будет сконвертирована в отформатированную строку даты и времени (значение зависит от ваших региональных настроек).
        + Дата должна быть в формате Windows, но в Lua и в функциях, которые Double Commander предоставляет для поиска файлов, используется время в формате Unix. Для конвертации мы можем использовать формулу:
        + = UnixTime * 10000000 + 116444736000000000
        + Это большое число, поэтому потребуется 64-битная версия Double Commander или Lua 5.3+.
      -

      Примечание: При сохранении скриптов используйте кодировку UTF-8 без BOM.

      -

      Более подробную информацию о языке программирования Lua можно найти на официальном веб-сайте Lua.

      +

      Список выше содержит имена из заголовочных файлов, в скриптах Lua мы должны использовать цифровые значения, которые указаны в скобках.

      +

      Примечание: Для диалога свойств файла функция ContentGetValue вызывается с флагом CONTENT_DELAYIFSLOW (четвёртый параметр, значение равно 1), это позволяет избежать задержки открытия окна: если получение данных медленное, мы можем эти данные исключить, просто добавляем проверку значения флага и возвращаем nil для таких полей или плагина.

      +

      Примечание: Если плагин должен вернуть пустую строку, то более быстрым будет передать nil вместо "".

      Примечание: Функция Lua io.open использует стандартную функцию C fopen: в текстовом режиме эта функция может преобразовывать тип окончания строк (CRLF, LF или CR) при чтении и записи, что может привести к неожиданному результату. Если вам попадаются файлы с разным типом окончания строк или вы пишете кроссплатформенный скрипт, это необходимо учитывать или может быть практичнее отдать предпочтение бинарному режиму.

      +
      + +

      О кодировке текста

      +

      Все дополнительные функции, описанные ниже, принимают строковые параметры в кодировке UTF-8 и возвращают строки в этой кодировке (за исключением функции LazUtf8.ConvertEncoding).

      +

      Часть функций из стандартных библиотек Lua заменены на функции из Double Commander или Free Pascal/Lazarus (или написаны новые), это обеспечивает поддержку UTF-8.

      +

      При написании плагинов мы также должны использовать UTF-8 для текстовых данных (ft_multiplechoice, ft_string и ft_fulltext).

      +

      При сохранении скриптов используйте кодировку UTF-8 без BOM.

      @@ -111,8 +124,8 @@

      3. Библиотеки функций Double Commander<

    - - + +
    Возможные символы
    СимволыОписаниеПример
    ClipbrdРазличные функции для работы с буфером обмена
    DialogsВзаимодействие с пользователем
    LazUtf8Строковые функции для работы с UTF-8
    CharПолучение информации о символах
    OSФункции, связанные с операционной системой
    CharПолучение информации о символах
    osФункции, связанные с операционной системой
    @@ -126,12 +139,12 @@

    3.1. Библиотека DC

    DC.LogWrite
    -

    DC.LogWrite(Message, MsgType, bForce, bLogFile)

    +

    DC.LogWrite(sMessage, iMsgType, bForce, bLogFile)

    Пишет сообщение в окно протокола.

    Описание:

      -
    • Message : Текст сообщения.
    • -
    • MsgType : Тип сообщения: 0 - информационное, 1 - успешная операция, 2 - ошибка.
    • +
    • sMessage : Текст сообщения.
    • +
    • iMsgType : Тип сообщения: 0 - информационное, 1 - успешная операция, 2 - ошибка.
    • bForce : Логическое (булево) значение, если true, то показать окно протокола (если оно скрыто).
    • bLogFile : Логическое (булево) значение, если true, то сообщение будет записано и в файл протокола.
    @@ -149,8 +162,8 @@

    3.1. Библиотека DC

    DC.ExecuteCommand
    -

    DC.ExecuteCommand(Command, Param1, Param2,...,ParamX)

    -

    Вызывает внутреннюю команду Double Commander Command с параметрами Param1..ParamX.

    +

    DC.ExecuteCommand(sCommand, Param1, Param2,...,ParamX)

    +

    Вызывает внутреннюю команду Double Commander sCommand с параметрами Param1..ParamX.

    Мы можем подставить столько Param..., сколько поддерживает команда Command.

    SysUtils.Sleep
    -

    SysUtils.Sleep(Milliseconds)

    -

    Приостанавливает выполнение скрипта на указанное количество миллисекунд (Milliseconds), выполнение сценария будет продолжено после истечения указанного времени.

    +

    SysUtils.Sleep(iMilliseconds)

    +

    Приостанавливает выполнение скрипта на указанное количество миллисекунд (iMilliseconds), выполнение сценария будет продолжено после истечения указанного времени.

    SysUtils.FileExists
    -

    bFlagExists = SysUtils.FileExists(FileName)

    +

    bExists = SysUtils.FileExists(sFileName)

    Проверяет, существует ли в файловой системе определённый файл.

    -

    FileExists возвращает true, если файл с именем FileName существует на диске, и false в противном случае.

    +

    FileExists возвращает true, если файл с именем sFileName существует на диске, и false в противном случае.

    SysUtils.DirectoryExists
    -

    bFlagExists = SysUtils.DirectoryExists(Directory)

    -

    Проверяет существование Directory в файловой системе и что это действительно каталог.

    +

    bExists = SysUtils.DirectoryExists(sDirectory)

    +

    Проверяет существование sDirectory в файловой системе и что это действительно каталог.

    Если это так, то функция возвращает true, иначе возвращает false.

    SysUtils.FileGetAttr
    -

    Attr = SysUtils.FileGetAttr(FileName)

    -

    Возвращает в Attr атрибуты файла FileName.

    +

    iAttr = SysUtils.FileGetAttr(sFileName)

    +

    Возвращает в iAttr атрибуты файла sFileName.

    Подробное описание возвращаемого значения смотрите здесь.

    SysUtils.FindFirst
    -

    Handle, FindData = SysUtils.FindFirst(Path)

    -

    Ищет файлы, совпадающие с Path (можно использовать маски).

    +

    Handle, FindData = SysUtils.FindFirst(sPath)

    +

    Ищет файлы, совпадающие с sPath (можно использовать маски).

    Если файл не найден, Handle будет равно nil.

    В случае успеха функция вернёт дескриптор поиска Handle для последующих вызовов SysUtils.FindNext и поиска других совпадений с паттерном.

    Таблица FindData содержит информацию о найденном файле или каталоге.

    @@ -273,7 +286,7 @@

    3.2. Библиотека System

    SysUtils.FindNext

    Result, FindData = SysUtils.FindNext(Handle)

    -

    Находит следующее вхождение поиска, инициированного FindFirst, Handle – дескриптор поиска, возвращённый функцией FindFirst.

    +

    Находит следующее вхождение поиска, инициированного FindFirst, Handle – дескриптор поиска, возвращённый функцией FindFirst.

    В случае успеха функция вернёт Result не равный nil и таблицу FindData, содержащую информацию о найденном файле или каталоге.

    Замечание: За последним вызовом SysUtils.FindNext всегда должен следовать вызов SysUtils.FindClose с тем же Handle. Несоблюдение этого приведёт к утечке памяти.

    SysUtils.CreateDirectory
    -

    bResult = SysUtils.CreateDirectory(Directory)

    -

    Создаёт цепочку каталогов, Directory - полный путь каталога.

    -

    Возвращает true, если Directory уже существует или был успешно создан, или false, если не удалось создать какую-либо часть пути.

    +

    bResult = SysUtils.CreateDirectory(sDirectory)

    +

    Создаёт цепочку каталогов, sDirectory - полный путь каталога.

    +

    Возвращает true, если sDirectory уже существует или был успешно создан, или false, если не удалось создать какую-либо часть пути.

    SysUtils.CreateHardLink
    -

    bResult = SysUtils.CreateHardLink(Path, LinkName)

    -

    Создаёт жёсткую ссылку LinkName на файл Path.

    +

    bResult = SysUtils.CreateHardLink(sFileName, sLinkName)

    +

    Создаёт жёсткую ссылку sLinkName на файл sFileName.

    Возвращает true в случае успеха, иначе возвращает false.

    SysUtils.CreateSymbolicLink
    -

    bResult = SysUtils.CreateSymbolicLink(Path, LinkName)

    -

    Создаёт символьную ссылку LinkName на файл Path.

    +

    bResult = SysUtils.CreateSymbolicLink(sFileName, sLinkName)

    +

    Создаёт символьную ссылку sLinkName на файл sFileName.

    Возвращает true в случае успеха, иначе возвращает false.

    SysUtils.ReadSymbolicLink
    -

    sTarget = SysUtils.ReadSymbolicLink(LinkName, Recursive)

    -

    Читает имя файла, на который указывает символьная ссылка LinkName.

    -

    Если Recursive равно true и ссылка указывает на ссылку, то она разрешается рекурсивно до тех пор, пока не будет найдено допустимое имя файла, не являющееся ссылкой.

    -

    Возвращает путь, на который указывает символьная ссылка LinkName, или пустую строку, если ссылка недействительна или файл, на который она указывает, не существует и значение Recursive равно true.

    +

    sTarget = SysUtils.ReadSymbolicLink(sLinkName, bRecursive)

    +

    Читает имя файла, на который указывает символьная ссылка sLinkName.

    +

    Если bRecursive равно true и ссылка указывает на ссылку, то она разрешается рекурсивно до тех пор, пока не будет найдено допустимое имя файла, не являющееся ссылкой.

    +

    Возвращает путь, на который указывает символьная ссылка sLinkName, или пустую строку, если ссылка недействительна или файл, на который она указывает, не существует и значение bRecursive равно true.

    SysUtils.ExtractFileName
    -

    sName = SysUtils.ExtractFileName(FileName)

    +

    sName = SysUtils.ExtractFileName(sFileName)

    Возвращает имя файла из полного (имя+путь) имени файла.

    Имя файла содержит все символы после последнего символа разделителя каталогов ("/" или "\") или буквы диска.

    SysUtils.ExtractFileExt
    +

    sExt = SysUtils.ExtractFileExt(sFileName)

    +

    Возвращает расширение файла (все символы после последней точки, включая сам символ ".").

    +
    SysUtils.ExtractFilePath
    -

    sPath = SysUtils.ExtractFilePath(FileName)

    +

    sPath = SysUtils.ExtractFilePath(sFileName)

    Возвращает путь из полного имени файла (включая букву диска).

    Путь содержит все символы до последнего символа разделителя каталогов ("/" или "\"), включая сам разделитель каталогов.

    SysUtils.ExtractFileDir
    -

    sDir = SysUtils.ExtractFileDir(FileName)

    -

    Возвращает только каталог из FileName, включая букву диска.

    +

    sDir = SysUtils.ExtractFileDir(sFileName)

    +

    Возвращает только каталог из sFileName, включая букву диска.

    Результат НЕ содержит разделитель каталогов в конце, в отличие от SysUtils.ExtractFilePath.

    SysUtils.ExtractFileDrive
    -

    sDrive = SysUtils.ExtractFileDrive(FileName)

    +

    sDrive = SysUtils.ExtractFileDrive(sFileName)

    Возвращает диск из полного имени файла.

    Обратите внимание, некоторые операционные системы не поддерживают буквы дисков.

    SysUtils.ExtractFileExt
    -

    sExt = SysUtils.ExtractFileExt(FileName)

    -

    Возвращает расширение файла (все символы после последней точки, включая сам символ ".").

    -
    SysUtils.GetAbsolutePath
    -

    sName = SysUtils.GetAbsolutePath(FileName, BaseDirectory)

    +

    sName = SysUtils.GetAbsolutePath(sFileName, sBaseDirectory)

    Возвращает абсолютный (полный) путь к файлу:

      -
    • FileName : Имя файла с относительным путём.
    • -
    • BaseDirectory : Каталог, который использовался как базовый каталог для FileName.
    • +
    • sFileName : Имя файла с относительным путём.
    • +
    • sBaseDirectory : Каталог, который использовался как базовый каталог для sFileName.
    SysUtils.GetRelativePath
    -

    sName = SysUtils.GetRelativePath(FileName, BaseDirectory)

    +

    sName = SysUtils.GetRelativePath(sFileName, sBaseDirectory)

    Возвращает имя файла относительно указанного каталога:

      -
    • FileName : Полное (абсолютное) имя файла.
    • -
    • BaseDirectory : Каталог, который будет использоваться как базовый каталог для FileName.
    • +
    • sFileName : Полное (абсолютное) имя файла.
    • +
    • sBaseDirectory : Каталог, который будет использоваться как базовый каталог для sFileName.
    -

    Если FileName и BaseDirectory содержат одно и то же значение, функция вернёт пустую строку ("").

    +

    Если sFileName и sBaseDirectory содержат одно и то же значение, функция вернёт пустую строку ("").

    SysUtils.MatchesMask
    -

    bResult = SysUtils.MatchesMask(FileName, Mask, MaskOptions)

    -

    Возвращает true, если FileName совпадает с переданной маской Mask.

    -

    MaskOptions (необязательный параметр, по умолчанию 0) задаётся как сумма следующих значений:

    +

    bResult = SysUtils.MatchesMask(sFileName, sMask, iMaskOptions)

    +

    Возвращает true, если sFileName совпадает с переданной маской sMask.

    +

    iMaskOptions (необязательный параметр, по умолчанию 0) задаётся как сумма следующих значений:

    @@ -414,9 +427,9 @@

    3.2. Библиотека System

    @@ -433,7 +446,7 @@

    3.2. Библиотека System

    3.2.1. Описание возвращаемого значения SysUtils.FileGetAttr

    -

    FileGetAttr возвращает атрибуты FileName в виде ИЛИ-совокупности следующих констант:

    +

    FileGetAttr возвращает атрибуты sFileName в виде ИЛИ-совокупности следующих констант:

    Значение
    SysUtils.MatchesMaskList
    -

    bResult = SysUtils.MatchesMaskList(FileName, MaskList, Separator, MaskOptions)

    -

    Возвращает true, если FileName совпадает с хотя бы одной из переданных масок MaskList, разделённых Separator (по умолчанию ";").

    -

    Separator и MaskOptions (см. выше) – необязательные параметры.

    +

    bResult = SysUtils.MatchesMaskList(sFileName, sMaskList, sSeparator, iMaskOptions)

    +

    Возвращает true, если sFileName совпадает с хотя бы одной из переданных масок sMaskList, разделённых sSeparator (по умолчанию ";").

    +

    sSeparator и iMaskOptions (см. выше) – необязательные параметры.

    @@ -479,12 +492,12 @@

    3.2.2. Пример с SysUtils.FileGetAttr

    Если параметр окажется каталогом, то скрипт откроет его в новой вкладке активной панели и переключится на неё.

     local params = {...}
    -local myfileattr
    +local iAttr
     
     if #params == 1 then -- Мы получили один параметр?
    -  myfileattr = SysUtils.FileGetAttr(params[1])
    -  if myfileattr > 0 then -- Получили значение атрибута?
    -    if math.floor(myfileattr / 0x00000010) % 2 ~= 0 then
    +  iAttr = SysUtils.FileGetAttr(params[1])
    +  if iAttr > 0 then -- Получили значение атрибута?
    +    if math.floor(iAttr / 0x00000010) % 2 ~= 0 then
           -- 0x00000010 присутствует? Тогда это каталог.
           DC.ExecuteCommand("cm_NewTab")
           DC.ExecuteCommand("cm_ChangeDir", params[1])
    @@ -496,7 +509,7 @@ 

    3.2.2. Пример с SysUtils.FileGetAttr

    При использовании внутренней команды cm_ExecuteScript это будет первый параметр, переданный после имени файла скрипта.

    Итак, в нашем примере мы можем создать на панели инструментов кнопку, как показано ниже:

    Параметр с cm_ExecuteScript

    -

    В этом примере скрипту будет передан параметр %"0%p: имя выделенного в активной панели файла или папки, без кавычек.

    +

    В этом примере скрипту будет передан параметр %"0%p: имя выделенного в активной панели файла или папки, без кавычек.

    @@ -510,11 +523,11 @@

    3.2.3. Пример использования FindFir if #params == 2 then -- У нас есть два параметра? local Result = nil - local OutputFile = nil + local hOutputFile = nil - OutputFile = io.output(params[2]) + hOutputFile = io.output(params[2]) - local Handle,FindData = SysUtils.FindFirst(params[1] .. "\\*") + local Handle, FindData = SysUtils.FindFirst(params[1] .. "\\*") if Handle ~= nil then repeat io.write(FindData.Name .. "\r") @@ -525,7 +538,7 @@

    3.2.3. Пример использования FindFir until Result == nil SysUtils.FindClose(Handle) - io.close(OutputFile) + io.close(hOutputFile) end end

    В приведённом выше примере нам нужно передать скрипту два параметра:

    @@ -535,7 +548,7 @@

    3.2.3. Пример использования FindFir

    Настраиваем кнопку на панели инструментов с внутренней командой cm_ExecuteScript и передаём параметрами всё необходимое:

    Параметр с cm_ExecuteScript

    -

    В этом примере скрипту в качестве первого параметра будет передано %"0%Ds: имя каталога активной панели, без кавычек.

    +

    В этом примере скрипту в качестве первого параметра будет передано %"0%Ds: имя каталога активной панели, без кавычек.

    @@ -555,22 +568,22 @@

    3.3. Библиотека Clipboard

    @@ -697,15 +710,15 @@

    3.4. Библиотека Dialogs

    @@ -890,10 +903,10 @@

    3.4.5. Пример использования Dialo mrYes = 0x0006 mrNo = 0x0007 -ButFlags = MB_YESNO + MB_ICONQUESTION + MB_DEFBUTTON2 -ButPressed = Dialogs.MessageBox("Хотите завершить?", "Вопрос", ButFlags) +iFlags = MB_YESNO + MB_ICONQUESTION + MB_DEFBUTTON2 +iButton = Dialogs.MessageBox("Хотите завершить?", "Вопрос", iFlags) -if ButPressed == mrYes then +if iButton == mrYes then DC.ExecuteCommand("cm_Exit") end

    Пример использования Dialogs.MessageBox

    @@ -904,9 +917,9 @@

    3.4.5. Пример использования Dialo

    3.4.6. Пример использования Dialogs.InputQuery

    Маленький скрипт, использующий Dialogs.InputQuery:

    -bAck, sAnswer = Dialogs.InputQuery("Идентификация", "Введите ваше имя:", false, "Иван")
    +bResult, sAnswer = Dialogs.InputQuery("Идентификация", "Введите ваше имя:", false, "Иван")
     
    -if bAck == true then
    +if bResult == true then
       Dialogs.MessageBox("Привет, " .. sAnswer .. "!", "Добро пожаловать!", 0x0040)
     end

    Пример использования Dialogs.InputQuery

    @@ -923,7 +936,7 @@

    3.5. Библиотека UTF-8

    - + @@ -269,7 +269,7 @@

    2. Главное окно

    - + diff --git a/doc/ru/toolbar.html b/doc/ru/toolbar.html index 75584f69..73f01472 100644 --- a/doc/ru/toolbar.html +++ b/doc/ru/toolbar.html @@ -93,6 +93,7 @@

    4. Как настроить панель инстр

    Также возможно не только открыть настройки панели инструментов, но и сразу перейти к редактированию выбранной кнопки, для этого нужно щёлкнуть по ней правой кнопкой мыши и выбрать пункт Редактировать.

    Настройка панели инструментов

    Кроме того, контекстное меню позволяет удалить кнопку, вырезать или скопировать в буфер обмена или вставить кнопку из буфера обмена.

    +

    Также мы можем изменить порядок элементов панели инструментов без открытия окна настроек: Double Commander поддерживает перетаскивание кнопок мышью с зажатой клавишей Shift.

    @@ -109,7 +110,7 @@

    5.1. Описание элементов - Разде

    5.2. Описание элементов - Внутренняя команда

    Внутренние команды – это различные действия самого Double Commander, не требующие вызова внешнего приложения.

    Команды чрезвычайно разнообразны, описание всех внутренних команд можно посмотреть на этой странице.

    -

    Например, если мы хотим добавить на панель инструментов кнопку поиска, то просто выбираем "cm_Search" из выпадающего списка команд.

    +

    Например, если мы хотим добавить на панель инструментов кнопку поиска, то просто выбираем cm_Search из выпадающего списка команд.

    Как видим на рисунке ниже, мы можем выбрать свой значок для кнопки, но, как правило, достаточно просто выбрать команду из списка и использовать связанный с ней значок.

    Также есть всплывающая подсказка: можно добавить описание кнопки, которое появится при наведении курсора.

    Пример с командой cm_Search:

    @@ -124,7 +125,8 @@

    5.2. Описание элементов - Внутр

    5.3. Описание элементов - Внешняя команда

    Внешние команды связаны с действиями, требующие вызов внешней программы.

    Для внешних команд у нас есть возможность установить ещё несколько параметров, которые позволят точно настроить вызов приложения (каталог запуска и то, что мы хотим при необходимости передать в качестве параметров).

    -

    Что касается параметров, мы можем выбрать пользовательские переменные, которые будут заменены на их реальные значения (файл под курсором в активной или неактивной панели и т.д.). Список доступных переменных можно посмотреть на этой странице.

    +

    Поле "Команда" предназначено только для исполняемого файла (как есть, без кавычек): мы можем указать имя файла или имя файла с полным путём, также мы можем использовать переменные окружения.

    +

    Что касается параметров, мы можем выбрать пользовательские переменные, которые будут заменены на их реальные значения (файл под курсором в активной или неактивной панели и т.д.). Список доступных переменных можно посмотреть на этой странице (обратите внимание на использование кавычек). Для запуска команды в терминале мы можем использовать переменные %t0 и %t1.

    В следующем примере мы добавили на панель инструментов кнопку для запуска GIMP с параметром %p: когда мы нажимаем на кнопку, в качестве параметра для GIMP будет передано полное имя файла под курсором в активной панели.

    Пример внешней команды

    Если у нас нет необходимости явно указать рабочий каталог, то можно оставить поле "Путь запуска" пустым, в этом случае рабочим каталогом будет текущий каталог активной файловой панели.

    diff --git a/doc/ru/variables.html b/doc/ru/variables.html index 536f583a..4e3cd455 100644 --- a/doc/ru/variables.html +++ b/doc/ru/variables.html @@ -43,13 +43,14 @@

    Содержание

    1. Краткий обзор

    -

    Переменные будут помогать нам в создании кнопок панели инструментов или настройке файловых ассоциаций.

    +

    Переменные будут помогать нам в создании кнопок панели инструментов, настройке действий файловых ассоциаций и горячих клавиш.

    В основном мы будем использовать их, когда необходимо передать команде в качестве параметра выделенный файл(ы), каталог, в котором мы находимся, и другие подобных вещи, связанные с содержимым файловых панелей.

    Вот простой пример. Пользователь создал кнопку запуска IrfanView с переменной %p.

    +

    Пример переменной

    Когда пользователь нажмёт эту кнопку, он запустит IrfanView, а переменную %p Double Commander заменит выбранным в активной панели файлом.

    Вот что понимается под переменными, описанными на этой странице.

    Как вы увидите далее, большинство из них начинаются со знака процента %.

    -

    Пример переменной

    +

    Примечание: Переменные и суффиксы регистрозависимые!

    @@ -311,7 +312,7 @@

    8. Разделитель каталогов в ко

    9. Список файлов

    Некоторые приложения в качестве параметра могут принимать текстовый файл со списком имён файлов.

    -

    DC предлагает нам переменные, которые создадут временный текстовый файл со списком выделенных файлов и папок.

    +

    Double Commander предлагает нам переменные, которые создадут временный текстовый файл (в системном каталоге для временных файлов) со списком выделенных файлов и папок.

    Константы, используемые в возвращаемом значении SysUtils.FileGetAttr
    ЗначениеОписание
    Clipbrd.GetAsText
    -

    StringVar = Clipbrd.GetAsText()

    -

    Получает содержимое буфера обмена как строку StringVar.

    +

    sVar = Clipbrd.GetAsText()

    +

    Получает содержимое буфера обмена как строку sVar. Если буфер обмена не содержит текст, то функция вернёт пустую строку.

    Clipbrd.SetAsText
    -

    Clipbrd.SetAsText(StringVar)

    -

    Помещает в буфер обмена строку текста StringVar.

    +

    Clipbrd.SetAsText(sVar)

    +

    Помещает в буфер обмена строку текста sVar.

    Clipbrd.SetAsHtml
    -

    Clipbrd.SetAsHtml(Html)

    -

    Добавляет в буфер обмена текст Html в формате HTML (формат буфера обмена CF_HTML).

    +

    Clipbrd.SetAsHtml(sHtml)

    +

    Добавляет в буфер обмена текст sHtml в формате HTML (формат буфера обмена CF_HTML).

    Содержимое может быть вставлено в приложения, поддерживающие этот формат буфера обмена, такие как MS Word, LO Writer и другие.

    Правильным будет сохранять данные с помощью и Clipbrd.SetAsText, и Clipbrd.SetAsHtml: приложение будет использовать тот формат, который поддерживает.

    Например, у нас может быть следующее:

    @@ -598,11 +611,11 @@

    3.3.1. Пример работы с буфером о
     local params = {...}
     local Result = nil
    -local myfileattr
    +local iAttr
     local bFound = false
     local sCompleteFilename = ""
    -local InputFile = nil
    -local line = ""
    +local hInputFile = nil
    +local sLine = ""
     local iPosS
     local iPosE
     local sFileToSelect = ""
    @@ -614,23 +627,23 @@ 

    3.3.1. Пример работы с буфером о DC.ExecuteCommand("cm_MarkUnmarkAll") -- Убедимся, что ничего не выделено. -- Начинаем сканировать все файлы нашего каталога один за другим. - local Handle,FindData = SysUtils.FindFirst(params[1] .. "\\*") + local Handle, FindData = SysUtils.FindFirst(params[1] .. "\\*") if Handle ~= nil then repeat sCompleteFilename = params[1] .. "\\" .. FindData.Name - myfileattr = SysUtils.FileGetAttr(sCompleteFilename) - if myfileattr > 0 then -- Получили значение атрибута? + iAttr = SysUtils.FileGetAttr(sCompleteFilename) + if iAttr > 0 then -- Получили значение атрибута? -- Нам нужен файл, не каталог! - if math.floor(myfileattr / 0x00000010) % 2 == 0 then + if math.floor(iAttr / 0x00000010) % 2 == 0 then -- Начинаем читать файл построчно, до конца файла ИЛИ до совпадения. - InputFile = io.open(sCompleteFilename, "r") + hInputFile = io.open(sCompleteFilename, "r") bFound = false while bFound == false do - line = InputFile:read() - if line == nil then break end - iPosS, iPosE = string.find(line, sSearchString) + sLine = hInputFile:read() + if sLine == nil then break end + iPosS, iPosE = string.find(sLine, sSearchString) if iPosS ~= nil then bFound = true end end @@ -638,7 +651,7 @@

    3.3.1. Пример работы с буфером о sFileToSelect = sFileToSelect .. FindData.Name .. "\n" end - io.close(InputFile) + io.close(hInputFile) end end Result,FindData = SysUtils.FindNext(Handle) @@ -667,29 +680,29 @@

    3.4. Библиотека Dialogs

    Dialogs.MessageBox
    -

    ButPressed = Dialogs.MessageBox(Message, Title, ButFlags)

    +

    iButton = Dialogs.MessageBox(sMessage, sTitle, iFlags)

    Показывает окно сообщения, функция вернёт нажатую пользователем кнопку.

    Описание:

      -
    • Message : Сообщение окна.
    • -
    • Title : Текст в заголовке окна.
    • -
    • ButFlags : Сумма констант, задающих отображаемые кнопки, стиль окна и кнопку по умолчанию. Смотрите ниже таблицы с кнопками, стилями и кнопкой по умолчанию.
    • -
    • ButPressed : Возвращаемое значение, указывающее нажатую кнопку (смотрите эту таблицу).
    • +
    • sMessage : Сообщение окна.
    • +
    • sTitle : Текст в заголовке окна.
    • +
    • iFlags : Сумма констант, задающих отображаемые кнопки, стиль окна и кнопку по умолчанию. Смотрите ниже таблицы с кнопками, стилями и кнопкой по умолчанию.
    • +
    • iButton : Возвращаемое значение, указывающее нажатую кнопку (смотрите эту таблицу).
    Dialogs.InputQuery
    -

    bAck, sAnswer = Dialogs.InputQuery(Title, Msg, bMask, sDefault)

    +

    bResult, sAnswer = Dialogs.InputQuery(sTitle, sMessage, bMask, sDefault)

    Показывает диалоговое окно с полем ввода текста.

    Описание:

      -
    • Title : Текст в заголовке окна.
    • -
    • Msg : Сообщение окна.
    • +
    • sTitle : Текст в заголовке окна.
    • +
    • sMessage : Сообщение окна.
    • bMask : Логическое (булево) значение, если true, то вводимый текст будет скрываться "звёздочками".
    • sDefault : Текст, который будет отображаться в строке ввода при появлении окна.
    • -
    • bAck : Возвращаемое логическое (булево) значение, указывающее, ввёл ли что-то пользователь или нет.
    • +
    • bResult : Возвращаемое логическое (булево) значение, указывающее, ввёл ли что-то пользователь или нет.
    • sAnswer : Возвращаемая строка, если пользователь что-то ввёл, а затем нажал ОК.
    Dialogs.InputListBox
    -

    sAnswer = Dialogs.InputListBox(Title, Msg, Items, sDefault)

    +

    sItem = Dialogs.InputListBox(sTitle, sMessage, aItems, sDefault)

    Показывает диалоговое окно с возможностью выбора из списка элементов.

    Описание:

      -
    • Title : Текст в заголовке окна.
    • -
    • Msg : Сообщение окна.
    • -
    • Items : Таблица Lua, каждый элемент таблицы должен быть строкой.
    • +
    • sTitle : Текст в заголовке окна.
    • +
    • sMessage : Сообщение окна.
    • +
    • aItems : Таблица Lua, каждый элемент таблицы должен быть строкой.
    • sDefault : Пункт списка, выделенный по умолчанию.
    • -
    • sAnswer : Возвращаемая строка с выбранным пунктом или nil в случае отмены.
    • +
    • sItem : Возвращаемая строка с выбранным пунктом или nil в случае отмены.
    LazUtf8.Pos
    -

    Result = LazUtf8.Pos(SearchText, SourceText, Offset)

    +

    iResult = LazUtf8.Pos(SearchText, SourceText, Offset)

    Поиск подстроки в строке, начиная с определённой позиции. Поиск чувствителен к регистру.

    Возвращает позицию первого вхождения подстроки SearchText в строке SourceText, поиск начинается с позиции Offset (по умолчанию 1).

    Если в SourceText не найдено совпадение с SearchText после заданного Offset, то функция возвращает ноль.

    @@ -946,37 +959,37 @@

    3.5. Библиотека UTF-8

    LazUtf8.Copy
    -

    Result = LazUtf8.Copy(Source, Index, Count)

    +

    sResult = LazUtf8.Copy(String, iIndex, iCount)

    Копирует (извлекает) часть строки.

    -

    Функция возвращает Count символов из строки Source, начиная с позиции Index.

    -

    Если Count больше длины строки Source, то результат усекается. Если Index больше длины строки Source, то возвращается пустая строка.

    +

    Функция возвращает iCount символов из строки String, начиная с позиции iIndex.

    +

    Если iCount больше длины строки String, то результат усекается. Если iIndex больше длины строки String, то возвращается пустая строка.

    LazUtf8.Length
    -

    Result = LazUtf8.Length(String)

    +

    iResult = LazUtf8.Length(String)

    Возвращает количество символов в строке с учётом кодировки UTF-8.

    LazUtf8.UpperCase
    -

    Result = LazUtf8.UpperCase(String)

    +

    sResult = LazUtf8.UpperCase(String)

    Возвращает строку, в которой все буквы в нижнем регистре (строчные) заменены на буквы в верхнем регистре (прописные или заглавные).

    LazUtf8.LowerCase
    -

    Result = LazUtf8.LowerCase(String)

    +

    sResult = LazUtf8.LowerCase(String)

    Возвращает строку, в которой все буквы в верхнем регистре (прописные или заглавные) заменены на буквы в нижнем регистре (строчные).

    LazUtf8.ConvertEncoding
    -

    Result = LazUtf8.ConvertEncoding(String, FromEnc, ToEnc)

    +

    sResult = LazUtf8.ConvertEncoding(String, FromEnc, ToEnc)

    Конвертирует кодировку String из FromEnc в ToEnc.

    Список поддерживаемых значений кодировок:

      @@ -1010,7 +1023,7 @@

      3.5. Библиотека UTF-8

      -

      3.7. Библиотека Char(Бета-версия)

      +

      3.6. Библиотека Char(Бета-версия)

      Эта библиотека содержит функции для проверки принадлежности символа к определённой категории юникода, а также для получения категории символа.

      Список доступных функций:

      @@ -1019,8 +1032,8 @@

      3.7. Библиотека Char
      Char.GetUnicodeCategory

      diff --git a/doc/ru/multiarc.html b/doc/ru/multiarc.html index 1c6b30c9..5a5a4ac1 100644 --- a/doc/ru/multiarc.html +++ b/doc/ru/multiarc.html @@ -498,11 +498,13 @@

      4.13. Меню кнопки "Другое"

      5. Открытие файла архива в ассоциированном приложении

      -

      По умолчанию файлы, расширения которых указаны в настройках WCX-плагинов и внешних архиваторов, открываются как папки. Для открытия их в ассоциированном приложении мы можем использовать пункт "Открыть" в контекстном меню файла, но в этом случаю будут использоваться только системные файловые ассоциации.

      +

      По умолчанию файлы, расширения которых указаны в настройках WCX-плагинов и внешних архиваторов, открываются как папки. Для открытия их в ассоциированном приложении мы можем использовать пункт "Открыть" в контекстном меню файла (но в этом случаю будут использоваться только системные файловые ассоциации) или мы можем добавить нужное действие в подменю "Команды".

      Чтобы использовать клавишу Enter или двойной щелчок мышью, мы должны изменить настройки.

      -

      Если используется WCX-плагин, то мы можем открыть настройки плагина, выбрать расширение и включить флаг "Показывать как нормальные файлы (скрывать значок архива)".

      -

      Если для распаковки файлов используется внешний архиватор, то мы можем указать несуществующее расширение файлов и заполнить поля для использования ID. Например, документы CHM: "chm2" вместо "chm", сигнатура "49 54 53 46" и смещение 0.

      -

      Теперь при необходимости мы можем использовать cm_OpenArchive и cm_ExtractFiles. +

      Мы можем просто удалить расширение из настроек, но в этом случае станут недоступны команды cm_OpenArchive и cm_ExtractFiles. Другой способ:

      +
        +
      • Если используется WCX-плагин, то мы можем открыть настройки плагина, выбрать расширение и включить флаг "Показывать как нормальные файлы (скрывать значок архива)".

      • +
      • Если для распаковки файлов используется внешний архиватор, то мы можем указать несуществующее расширение файлов и заполнить поля для использования ID. Например, документы CHM: "chm2" вместо "chm", сигнатура "49 54 53 46" и смещение 0.

      • +

      Для таких файлов Double Commander будет использовать ассоциированный значок вместо общего значка архива.


      diff --git a/doc/ru/multirename.html b/doc/ru/multirename.html index 749faf47..fe807da3 100644 --- a/doc/ru/multirename.html +++ b/doc/ru/multirename.html @@ -139,6 +139,7 @@

      3. Генерация новых имён файлов<

      4. Выражения

      Давайте посмотрим на выражения, которые мы можем использовать.

      +

      Примечание: Выражения регистрозависимые!

      @@ -217,6 +218,8 @@

      4.2. Другие выражения

      + +
      -

      iResult = Char.GetUnicodeCategory(sVar)

      -

      Возвращает категорию юникода символа sVar, одно из следующих значений:

      +

      iResult = Char.GetUnicodeCategory(Character)

      +

      Возвращает категорию юникода символа Character, одно из следующих значений:

      @@ -1066,36 +1079,36 @@

      3.7. Библиотека Char
      Char.IsDigit

      ЗначениеОписание
        Буква:
      -

      bResult = Char.IsDigit(sVar)

      -

      Возвращает true, если символ sVar входит в категорию Nd.

      +

      bResult = Char.IsDigit(Character)

      +

      Возвращает true, если символ Character входит в категорию Nd.

      Char.IsLetter
      -

      bResult = Char.IsLetter(sVar)

      -

      Возвращает true, если символ sVar входит в категорию Lu, Ll, Lt, Lm или Lo.

      +

      bResult = Char.IsLetter(Character)

      +

      Возвращает true, если символ Character входит в категорию Lu, Ll, Lt, Lm или Lo.

      Char.IsLetterOrDigit
      -

      bResult = Char.IsLetterOrDigit(sVar)

      -

      Возвращает true, если символ sVar входит в категорию Lu, Ll, Lt, Lm Lo, Nd или Nl.

      +

      bResult = Char.IsLetterOrDigit(Character)

      +

      Возвращает true, если символ Character входит в категорию Lu, Ll, Lt, Lm Lo, Nd или Nl.

      Char.IsLower
      -

      bResult = Char.IsLower(sVar)

      -

      Возвращает true, если символ sVar входит в категорию Ll.

      +

      bResult = Char.IsLower(Character)

      +

      Возвращает true, если символ Character входит в категорию Ll.

      Char.IsUpper
      -

      bResult = Char.IsUpper(sVar)

      -

      Возвращает true, если символ sVar входит в категорию Lu.

      +

      bResult = Char.IsUpper(Character)

      +

      Возвращает true, если символ Character входит в категорию Lu.

      @@ -1113,9 +1126,9 @@

      3.7. Библиотека OS

      os.execute
      -

      ResultCode = os.execute(Command)

      -

      Выполнить Command, аналогично введённой в командной строке, будет возвращён код завершения.

      -

      Command может быть:

      +

      iResultCode = os.execute(sCommand)

      +

      Выполнить sCommand, аналогично введённой в командной строке, будет возвращён код завершения.

      +

      sCommand может быть:

      • Команда терминала, например, os.execute("dir > all.txt")
      • Исполняемый файл, например, os.execute("C:\\Windows\\System32\\calc.exe")
      • @@ -1126,36 +1139,36 @@

        3.7. Библиотека OS

      os.tmpname
      -

      TempFileName = os.tmpname()

      -

      Возвращает строку с именем файла, который может быть использован в качестве временного файла.

      +

      sTempFileName = os.tmpname()

      +

      Возвращает строку с именем файла, который может быть использован в качестве временного файла (в системном каталоге для временных файлов).
      Если функции не удалось создать уникальное имя, то она вернёт пустую строку.

      os.remove
      -

      bResult, ErrorStr, ErrorNum = os.remove(FileName)

      -

      Удалить файл с именем FileName.

      +

      bResult, sError, iError = os.remove(sFileName)

      +

      Удалить файл с именем sFileName.

      Если удалось, функция вернёт true.

      Если не удалось, функция вернёт:

      1. nil как индикатор неудачи
      2. -
      3. ErrorStr с описанием ошибки
      4. -
      5. ErrorNum в виде кода ошибки (число)
      6. +
      7. sError с описанием ошибки
      8. +
      9. iError в виде кода ошибки (число)
      os.rename
      -

      bResult, ErrorStr, ErrorNum = os.rename(OldName, NewName)

      -

      Переименовать файл OldName в NewName.

      -

      Примечание: Если файл с именем NewName уже существует, он будет заменён!

      +

      bResult, sError, iError = os.rename(sOldName, sNewName)

      +

      Переименовать файл sOldName в sNewName.

      +

      Примечание: Если файл с именем sNewName уже существует, он будет заменён!

      Если удалось, функция вернёт true.

      Если не удалось, функция вернёт:

      1. nil как индикатор неудачи
      2. -
      3. ErrorStr с описанием ошибки
      4. -
      5. ErrorNum в виде кода ошибки (число)
      6. +
      7. sError с описанием ошибки
      8. +
      9. iError в виде кода ошибки (число)
      [P-x]
      имя каталога на уровне x, считая с конца пути[P-2] = Download
      [C]
      добавляет счётчик с параметрами из группы "Счётчик" (отрицательные числа также поддерживаются)[C] = число по порядку, с заданным интервалом
      [V:запрос]
      пользовательская переменная, значение будет запрошено в начале процесса переименования[V:Guest] = Запросить значение Guest
      [[]
      вставить открывающую квадратную скобку как есть[[] = [
      []]
      вставить закрывающую квадратную скобку как есть[]] = ]

      Ещё один пример, где мы использовали некоторые из перечисленных выше выражений, добавив маску

      diff --git a/doc/ru/regexp.html b/doc/ru/regexp.html index 45db6d0d..0ccd952d 100644 --- a/doc/ru/regexp.html +++ b/doc/ru/regexp.html @@ -610,15 +610,15 @@

      10. Модификаторы

      Любой модификатор может располагаться внутри регулярного выражения. Если модификатор расположен внутри подвыражения, то он действует только на это подвыражение.

      i
      -
      Регистронезависимый режим (используются установленные в вашей системе языковые настройки).
      +
      Регистронезависимый режим (используются установленные в вашей системе языковые настройки). По умолчанию выключен.
      m
      -
      Воспринимать входной текст как многострочный, при этом метасимволы ^ и $ будут совпадать не только в начале и конце текста в целом, но и в начале и в конце всех имеющихся в тексте строк (см. также Разделители строк).
      +
      Воспринимать входной текст как многострочный, при этом метасимволы ^ и $ будут совпадать не только в начале и конце текста в целом, но и в начале и в конце всех имеющихся в тексте строк (см. также Разделители строк). По умолчанию выключен.
      s
      -
      Воспринимать входной текст как одну строку. При этом метасимвол . совпадает с любым символом, если же этот модификатор выключен, то он не совпадает с разделителями строк (см. также Разделители строк). По умолчанию включено.
      +
      Воспринимать входной текст как одну строку. При этом метасимвол . совпадает с любым символом, если же этот модификатор выключен, то он не совпадает с разделителями строк (см. также Разделители строк). По умолчанию включен.
      g
      Нестандартный модификатор. Выключая его, вы переключаете все повторители в "не жадный" режим (по умолчанию этот модификатор включен). Т.е. если его отключить, то все + работают как +?, * как *? и т.д.
      x
      -
      Позволяет форматировать шаблон, чтобы обеспечить более лёгкую читаемость (см. описание ниже).
      +
      Позволяет форматировать шаблон, чтобы обеспечить более лёгкую читаемость (см. описание ниже). По умолчанию выключен.
      r
      Нестандартный модификатор. Если включен, то диапазон а-я включает в себя также букву ё, А-Я включает Ё, а а-Я включает весь русский алфавит. По умолчанию включен.
      #
      diff --git a/doc/ru/shortcuts.html b/doc/ru/shortcuts.html index b6d64b07..5ac81e19 100644 --- a/doc/ru/shortcuts.html +++ b/doc/ru/shortcuts.html @@ -181,7 +181,7 @@

      2. Главное окно

    Alt+Z
    Открыть в неактивной панели каталог, открытый в активной (Получатель = Источнику)Открыть каталог активной панели в противоположной панели (Получатель = Источнику)
    Ctrl+F1
    Ctrl+Q
    Быстрый просмотр: содержимое выбранного файла будет показано на противоположной панелиБыстрый просмотр: содержимое выбранного файла будет показано на противоположной панели (подробнее смотрите здесь)
    Ctrl+R
    @@ -329,6 +330,7 @@

    9. Список файлов

    Список файлов
    ВыражениеОписание

    Double Commander будет использовать системную кодировку ANSI в Windows или системную кодировку по умолчанию в Unix-подобных системах (в дистрибутивах GNU/Linux это обычно UTF-8).

    +

    При закрытии Double Commander удаляет все такие временные файлы.

    @@ -526,7 +528,8 @@

    15. Сводная таблица со всеми пе

    16. Переменные окружения

    -

    Double Commander предоставляет несколько переменных окружения:

    +

    Мы можем использовать переменные окружения в настройках Double Commander: в именах исполняемых файлов и значков на панели инструментов, именах плагинов, в избранных каталогах и т.д. Это удобный способ указать путь, если мы не хотим использовать абсолютные пути.

    +

    Double Commander поддерживает системные переменные окружения и предоставляет несколько собственных переменных окружения:

    @@ -545,6 +548,8 @@

    16. Переменные окружения

    Переменные окружения
    ПеременнаяОписание

    Мы можем использовать переменные окружения в настройках Double Commander: в именах исполняемых файлов и значков на панели инструментов, именах плагинов, в избранных каталогах и т.д. Это удобный способ указать путь, если мы не хотим использовать абсолютные пути.

    Дополнительно доступна переменная %DC_CONFIG_PATH%, которая возвращает каталог с файлами конфигурации Double Commander. Это не переменная окружения и она недоступна для дочерних процессов (приложений, запущенных из программы), но в остальном мы можем использовать %DC_CONFIG_PATH% аналогично переменным окружения, описанным выше.

    +

    В Windows дополнительно мы можем использовать псевдопеременные окружения в формате %$Имя%, которые соответствуют стандартным системным папкам Windows (для получения значений Double Commander использует функции SHGetSpecialFolderPath и SHGetKnownFolderPath из Windows API). Это не обычные переменные окружения и они недоступны для дочерних процессов, но в остальном мы можем использовать их аналогично переменным окружения. Все эти переменные собраны в меню помощника выбора пути: справа от кнопок выбора файла или каталога находится кнопка Некоторые функции для выбора подходящего пути Некоторые функции для выбора подходящего пути, описание смотрите здесь.

    +

    Все эти переменные добавлены в меню избранных каталогов (подменю Специальные каталоги).

    diff --git a/doc/ru/viewer.html b/doc/ru/viewer.html index dff9a120..bfc36182 100644 --- a/doc/ru/viewer.html +++ b/doc/ru/viewer.html @@ -38,7 +38,8 @@

    Содержание

    4. Строка состояния
    5. Предварительный просмотр
    6. Копирование/перемещение файлов
    -
    7. Дополнительные настройки
    +
    7. Быстрый просмотр
    +
    8. Дополнительные настройки
    @@ -47,7 +48,7 @@

    1. Введение

    Встроенный просмотрщик предназначен для просмотра файлов любого размера в текстовом, шестнадцатеричном или двоичном формате, а также файлов изображений.

    Встроенная программа просмотра файлов

    Выделенный текст будет автоматически скопирован в буфер обмена, для отключения мы можем использовать параметр <AutoCopy>(Бета-версия).

    -

    По умолчанию вызов просмотрщика назначен на клавишу F3, мы можем изменить это в настройках. Также доступен режим быстрого просмотра (Ctrl+Q): вместо отдельного окна будет использоваться противоположная (неактивная) файловая панель.

    +

    По умолчанию вызов просмотрщика назначен на клавишу F3, мы можем изменить это в настройках.

    Поддерживаемые форматы изображений: BMP, CUR, GIF, ICNS, ICO, JPEG, PNG, PNM (PBM, PGM и PPM), PSD, SVG/SVGZ(Бета-версия), TIFF, XPM. Кроме того, если необходимые библиотеки доступны:

    • HEIF/HEIC и AVIF: libheif-1.dll (Windows) или libheif.so.1 (Linux и другие Unix-подобные системы).

    • @@ -108,7 +109,7 @@

      2.3. "Вид"

    • Графика – переключает на просмотр изображений. Список поддерживаемых форматов изображений смотрите в начале страницы.

    • Плагины – Просмотр с помощью WLX-плагинов. Если выбранный файл может быть открыт несколькими установленными плагинами, то повторные вызовы этой команды будут переключать их по кругу.

    • Офисные XML (только текст)(Бета-версия) – Просмотрщик покажет текст из офисных документов, базирующихся на XML: Microsoft Office (DOCX, XLSX) и OpenOffice/LibreOffice (ODT, ODS). Без форматирования текста, но с сохранением абзацев.

    • -
    • Код(Бета-версия) – Просмотрщик покажет выбранный файл в режиме просмотра кода: с подсветкой синтаксиса и номерами строк. Будут использоваться те же правила и списки расширений, что и для встроенного текстового редактора (подробнее смотрите здесь). Также смотрите описание <SynEditMask>.

    • +
    • Код(Бета-версия) – Просмотрщик покажет выбранный файл в режиме просмотра кода: с подсветкой синтаксиса и номерами строк. Будут использоваться те же правила подсветки и списки расширений, что и для встроенного текстового редактора (подробнее смотрите здесь). Также смотрите описание <SynEditMask>.

    Плагины имеют приоритет над остальными поддерживаемыми режимами просмотра.

    Переносить строки(Бета-версия) – включает или выключает перенос строк, которые не умещаются в окне (по границе слов).

    @@ -226,7 +227,17 @@

    6. Копирование/перемещение файл
    -

    7. Дополнительные настройки

    +

    7. Быстрый просмотр

    +

    Дополнительный режим просмотра файлов (по умолчанию Ctrl+Q): вместо отдельного окна содержимое файла под курсором будет показано на противоположной (неактивной) файловой панели. При перемещении на следующий файл отображаемое содержимое обновится, это позволяет просматривать содержимое файлов просто перемещая курсор в файловой панели.

    +

    Быстрый просмотр может быть отключен повторным нажатием Ctrl+Q, также он будет отключен при переключении любой панели (активной или неактивной) на другую вкладку.

    +

    Действия "View", добавленные в настройках файловых ассоциаций, игнорируются.

    +

    В этом режиме не все команды просмотрщика могут работать, например, команды загрузки предыдущего или следующего файла в каталоге (по умолчанию P и N).

    +

    Некоторые элементы интерфейса могут быть скрыты (например, при просмотре изображений в режиме "Графика" Double Commander скроет панель инструментов). Для плагинов нет общего правила или рекомендации, решение принимает автор плагина.

    + +
    + +
    +

    8. Дополнительные настройки

    Смотрите описание разделов настроек Double Commander: Инструменты > Просмотр. Есть несколько параметров, которые можно изменить только вручную в файле конфигурации doublecmd.xml.