Rhino 8 ScriptEditor feature requests

Hello all,

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:

  1. vertical split view to be able to edit files side by side
  2. 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.
  3. compare two files
  4. find within files of explorer panel

Feel free to add further feature requests.

1 Like

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

1 Like

RH-84942 is fixed in Rhino 8 Service Release 16

A couple of more features I am missing from the old python editor:

  1. 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.
  2. 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.

@daniel.kowollik

Thanks for bringing these up. I have logged both:

  • RH-85987 Clicking on traceback lines should open the file containing error

  • RH-85988 Allow debugging without breakpoints in main code

1 Like

Hi @eirannejad, could you please add full path in title bar ?

thanks,
c.

full path of script?! that usually does not fit

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.

_
c.

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?

_
c.

A great feature would be to have “Go to Declaration” on the context menu of each code line.

1 Like

Added to this ticket

RH-83410 Add Go to Symbol and Symbol Explorer to editor

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.

Hi @eirannejad,

autocompletion in python does not work in the Script Editor for variables and methods that have one or two leading underscores, see below.


In external IDEs I am used to have this autocompletion. Would be great to have it in Rhino 8.

1 Like

@daniel.kowollik Thanks for reporting this. Logged and will get it fixed

RH-86355 Python autocomplete is always skipping privates and dunders

Hi @eirannejad,

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Hi @eirannejad,

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.

1 Like

I agree. Not good. I will fix ASAP. Created the YT below

RH-86494 Script editor auto-reloads changed files discarding edited content