打开新脚本窗口时自动包含默认为此处的名称(1)我希望看到添加到脚本编辑器首选项的新首选项。我只需提供一个复选框,选中该复选框会自动添加命名空间规范
Names Default to Here( 1 );
作为脚本的第一行,当请求一个新的脚本窗口时。
脚本回复:打开新脚本窗口时自动包含默认到此处的名称(1)谢谢山姆……
回复:打开新脚本窗口时自动包含默认为此处的名称(1) - 状态更改为:正在调查我们正在仔细研究这个想法,并在获得更多信息时提供更新。
回复:打开新脚本窗口时自动包含默认到此处的名称(1)不管我认为这里有哪些其他解决方案对高级用户都有好处,我喜欢优先使用此处默认名称的想法,这将有助于那些不熟悉脚本的人。
回复:打开新脚本窗口时自动包含默认到此处的名称(1)我只是将自己的脚本映射到 Ctrl+T
<jm:menu_and_toolbar_customizations xmlns:jm="http://www.jmp.com/ns/menu" version="3">
<jm:insert_in_main_menu>
<jm:insert_in_menu>
<jm:name>FILE</jm:name>
<jm:insert_in_menu>
<jm:name>NEW</jm:name>
<jm:customization target="SCRIPT">
<jm:accel>Ctrl+Shift+T</jm:accel>
</jm:customization>
<jm:insert_after>
<jm:name>SCRIPT</jm:name>
<jm:command>
<jm:name>HERESCRIPT</jm:name>
<jm:caption>HereScript</jm:caption>
<jm:action type="text">new window("Script", <<script("Names default to here(1);\!n"));</jm:action>
<jm:accel>Ctrl+T</jm:accel>
<jm:icon type="none"></jm:icon>
</jm:command>
<jm:command>
<jm:name>BIGCLASS</jm:name>
<jm:caption>BigClass</jm:caption>
<jm:action type="text">new window("Script", <<script("Names default to here( 1 );\!ndt = open(\!"$SAMPLE_DATA\Big Class.jmp\!");\!n"));</jm:action>
<jm:accel>Ctrl+Shift+B</jm:accel>
<jm:icon type="none"></jm:icon>
</jm:command>
</jm:insert_after>
</jm:insert_in_menu>
</jm:insert_in_menu>
</jm:insert_in_main_menu>
</jm:menu_and_toolbar_customizations>回复:打开新脚本窗口时自动包含默认到此处的名称(1)我已经创建了直接从模板创建脚本的请求。 它被转发给研发部门,但不知道之后发生了什么,因为它已经关闭。 那张票于 2021 年 2 月 24 日打开。
我的要求是(跟踪 ID:7613288873):
Questions:
Topic: General usage
Subtopic: Feature Request
Details:
Would it be possible to add new feature to JMP (for Script Editor) which would allow starting new scripts
from template?
I would not replace the current option New / Script but add additional selection with possible shortcut,
for example "New Script from Template". Path could be either similar to jmpStart.jsl which is saved to
specific location with specific name (jslTemplate.jsl?) and loaded from there OR you could maybe change it from Preferences if
Default is
not ok for you.
Added attachment as an example of template I would like to use. Currently I always have to copy-paste
the template (if I remember) to start new script.
回复:打开新脚本窗口时自动包含默认到此处的名称(1)你好,
另一个建议是使用我们可以自定义的脚本模板。
例如,导入自定义 jsl 框架会更快(如果在模板中定义了这些导入)。