打開新腳本窗口時自動包含默認為此處的名稱(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 框架會更快(如果在模板中定義了這些導入)。