I opened this topic because the other design feedback topic is restricted to Grasshopper and I think a couple of features make more sense for the use case of the ScriptEditor directly in Rhino or are applicable for both.
Some ideas I have at the moment:
vertical split view to be able to edit files side by side
view source file structure: Structure panel that allows to navigate through the source file by a structure tree of the current selected file with inheritance information of class definitions.
1 - RH-83228 Wish: ScriptEditor split view?
2 - RH-83410 Add Go to Symbol and Symbol Explorer to editor
3 - RH-76493 Implement a way to see Diffs between files
4 - Currently you can open Tools → File Prompt to search with files. It shows the files that are visible in the explorer so it is fairly limited but useful to limit the search scope. I created this YT: RH-84942 Support Search Within Explorer
A couple of more features I am missing from the old python editor:
In the old python editor I can double click on the traceback lines and the editor will open the files and jump to the line, where the exception took place. This works from top level to bottom level of the exception. Please add this feature to the new editor as well. In the new editor only the top level exception is shown in the editor.
If I add a debug point in a module that is used in the main python script I cannot run the main python script in debug mode. I first have to add another debug point in the main script. Please add the option to switch between production and debug mode. At the moment I can only run the script without debug mode, if I already have a debug point in the main script.
Hi @eirannejad, yes. I have plenty of space to the right of the path in the old Editor, if it is 1/3 of my screen size which is 1920x1200. Maybe i have shorter paths than you, my scripts are stored below 4-5 subfolders.
The old Editor does show the full path by default in the title. It is useful if you open two scripts with the same name, eg. one from a backup folder. Without showing the path, there is virtually no way to know which of the two file’s you’re actually editing.
Hi,
I also think that nearly all the time the full path will fit the editor title window. In the Rhino 8 Script Editor the full path is shown through a hover text on the tab. If the full path does not fit the window title, you can still identify the full path through the hover text, which has extended screen boundaries.
Thanks @daniel.kowollik, i’m just used to have it displayed in the title. Rhino does show long paths in a truncated way if they do not fit into UI elements. Eg. under:
Rhino Options > Files > Template Files
Maybe this logic could be applied if the dialog is too narrow to display the full path?
Another idea: If I have a long running python job, there is no way to abort this job in the Script Editor. I have to quit Rhino in the Windows Task-Manager and restart Rhino. It would be great to have a button that stays active and allows to stop the process.
my disappearing scrollbar makes me use a lot of search operations within the code editor. Below I summarized for you some feedback on search & replace:
If you have multiple occurences and press the replace next occurence button, the next location in the code editor is not updated. All code lines are not highlighted anymore. Other code editors I know, always jump to the next occurence and keep the highlighting.
If you replaced a couple of strings with next occurence and want to go back, you can only do this with the main menu->Edit->(Undo Replace Next). It would be great to have this with the shortcut CTR+Z.
If you search for something, the line is highlighted and the search string is highlighted in a different color. This is good. The search string is highlighted in a different color in other occurences. I guess the intention is to show, where we navigated to with the search & replace navigation bar. In addition to this, the current location is highlighted with the line number. Unfortunately, The different colors of the highlighted search strings do not update, if you jump to a different location using the search & replace navigation bar.
It would be great, if the cursor would jump to the search string, allowing you to start typing immediately. Currently, the cursor disappears, and typing is blocked during the search and replace navigation.
During the past week, I encountered an issue twice where I used “Replace All” and the code editor still displayed the old strings. Although the search bar could no longer find the strings, they were still visible in the code editor. I had to save the file, close it, and reopen it to see the new strings. This led me to conclude that the replace operation worked, but the editor window did not update. Unfortunately, I could not replicate this with a simple example to share.
The old editor detects when a file is modified on the file system and prompts to reload it. The new script editor automatically reloads changes without any prompt. If you make changes in the script editor and then modify the file using another editor, the new script editor will discard the changes made in Rhino and reload the file edited with the other editor. A warning at this point would be helpful, along with the option to save the file under a different name or retain the changes made in Rhino.