Ah, multiple files... I was testing the cm_Edit command with the file under the cursor.
The current help is this:
[Help - Dialog box: Choose command] wrote:
cm_Edit
The following parameters can be passed to the function behind a slash:
C: Create files which do not already exist
T: Instead of creating an empty file, copy a template file to the new name. By default, the user's template directory will be used. The first file in it with the same extension will be copied to the new file. If no file is found, an empty file will be created
T="c:\path": Sames as T but use the specified template directory
N="name": The name(s) of the file(s) to be created - separate multiple file names with the | character. Alternatively, use templates from the "+" button to create multiple files.
Use the following syntax to pass multiple names in double quotes:
N=<"name1" "name2" "name3">
G: Go, create new files immediately (has no effect when not using C)
L: Launch type: L0=do not launch, L1=open with default editor, L2=open with associated program (including internal associations), L3=open with associated program (no internal associations)
V="verb": Combined with L2 or L3, set the verb to open the file, e.g. "open" or "edit". Leave out or use V="" for default verb. With L1, WinExec will be used when not using V, otherwise ShellExecuteEx (which is always used for L2 and L3).
It doesn't say L0 only works with C:
cm_Edit | Opens file under cursor in editor |
cm_Edit /L0 | Opens file under cursor in editor |
cm_Edit /CGL0 | Doesn't open file under cursor in editor |
cm_Edit /N="1.TXT" | Opens "1.TXT" in editor |
cm_Edit /L0N="1.TXT" | Opens "1.TXT" in editor |
cm_Edit /CGL0N="1.TXT" | Doesn't open "1.TXT" in editor |
Perhaps it should also work without C.
The Help says
N="name": The name(s) of the file(s) to be created
It doesn't say it also works when not creating file(s). As shown in the examples above, N also works without C. Which is als suggested by this line in HISTORY.TXT:
03.07.23 Added: Internal command cm_edit now supports optional parameters to set edit options: name, create when missing, edit or open, verb for open, use template; see Help - Dialog box: Choose command
But without C, multiple filenames are not supported and multiple filenames will be considered to be 1 filename.
cm_Edit /N="1.TXT|2.TXT"L1 | Tries to open the file "1.TXT|2.TXT" in editor |
cm_Edit /CGN="1.TXT|2.TXT"L1 | Opens "1.TXT" in editor and opens "2.TXT" in editor |
This doesn't seem like an intuitive implementation.
The help says:
Use the following syntax to pass multiple names in double quotes:
N=<"name1" "name2" "name3">
It's not intuitive that passing 1 filename using this notation isn't accepted.
cm_Edit /CGN=<"1.TXT"> | Plays beep sound and prompts for filename |
cm_Edit /CN=<"1.TXT"> | Prompts for filename |
cm_Edit /CN=<"1.TXT" "2.TXT"> | Click OK -> 1.TXT and 2.TXT are created |
cm_Edit /CN=<"1.TXT" "2.TXT"> | Remove "2.TXT" and click OK -> beep sound and prompts for filename again |
The last example above very much feels like a bug.