Post by George on Oct 14, 2023 13:51:00 GMT -5
I created this thread to "start over" and avoid confusion as to where this support currently stands.
I've tried to incorporate a variety of suggestions and comments on this topic, and I believe the current Beta handles most, if not all, that was asked for. (Barring bugs of course)
So the next Beta (23287) contains the following:
* Add the new Primary command INSTANCE (alias INST). This command can be used to switch the SPFLite session to another Instance. It will start a new SPFLite Instance and optionally close the current session.
If there are active Edit tabs, the command provides optional operands to allow you to request they all be CANCELed or ENDed. If END is chosen, each tab will use the current AUTOSAVE option to determine if, and what level of prompting to perform. There is also a KEEP option which does not close the current session.
The syntax is:
Other than new-instance-name which MUST be operand one, the remaining operands can be entered in any order.
Notes: Some accompanying items
* The command line -O operand will now accept an * to indicate the current clipboard contents are to be treated as the OPENLIST
data. The alternate normal filename operand still exists.
* To accomany the above, the INSTANCE command will, regardless of any operands, create a valid OPENLIST in the Clipboard with the
list of the currently open tabs. You could also use the CLIP command to edit and save this list elsewhere.
* The passing of files to be opened to an existing Instance has been improved to support multiple files and/or MEdit lists.
* The KEEP option also allows you to request the current session be kept open. If the new-instance-name equals the current name, the OPENLIST can be used to ADD open files to the session.
For example, if running normally as DEFAULT the command
INST DEFAULT -O MyNewList.TXT KEEP
would add the files in the OPENLIST to the current session.
The following would reopen the current Edit tabs in a new INSTANCE
INST MYNEWINST -O * END
The Beta is available in the normal GENERAL forum location.
I've tried to incorporate a variety of suggestions and comments on this topic, and I believe the current Beta handles most, if not all, that was asked for. (Barring bugs of course)
So the next Beta (23287) contains the following:
* Add the new Primary command INSTANCE (alias INST). This command can be used to switch the SPFLite session to another Instance. It will start a new SPFLite Instance and optionally close the current session.
If there are active Edit tabs, the command provides optional operands to allow you to request they all be CANCELed or ENDed. If END is chosen, each tab will use the current AUTOSAVE option to determine if, and what level of prompting to perform. There is also a KEEP option which does not close the current session.
The syntax is:
INSTANCE new-instance-name
INST [ END | CANCEL | CAN | KEEP ]
[ -O { * | OpenList-Name } ]
[ -D DoMacro-Name ]
Other than new-instance-name which MUST be operand one, the remaining operands can be entered in any order.
Notes: Some accompanying items
* The command line -O operand will now accept an * to indicate the current clipboard contents are to be treated as the OPENLIST
data. The alternate normal filename operand still exists.
* To accomany the above, the INSTANCE command will, regardless of any operands, create a valid OPENLIST in the Clipboard with the
list of the currently open tabs. You could also use the CLIP command to edit and save this list elsewhere.
* The passing of files to be opened to an existing Instance has been improved to support multiple files and/or MEdit lists.
* The KEEP option also allows you to request the current session be kept open. If the new-instance-name equals the current name, the OPENLIST can be used to ADD open files to the session.
For example, if running normally as DEFAULT the command
INST DEFAULT -O MyNewList.TXT KEEP
would add the files in the OPENLIST to the current session.
The following would reopen the current Edit tabs in a new INSTANCE
INST MYNEWINST -O * END
The Beta is available in the normal GENERAL forum location.