Repository navigation
Conversation
- Searching an hierarchy with an n5/Zarr folder no longer halts the EDT - Fast mode option: Only act on listed paths, not their children - Fast mode automatically activates if search slower than 1 sec - Option to toggle live updates - Improve drag and drop - Improve layout with FlatLaft - Add icons to file list
- Do not allow palette to outlive the TextEditor closure - Layout/border adjustments - Fix landscape mode toggle failing when window too narrow
- Only touch leading whitespace - Respect a selection, or apply to whole file if none exists - Ask for confirmation - Checks for a locked file - Report how many lines changed
- Some of our gutter customizations/hacks are no longer needed - Use the new RowListener to monitor bookmarks - It seems MatlabTokenMaker now needs declared bracket pairs - Our themes can now use fold indicator background - Our hacks for non-executable syntax (markdown, etc.) are no longer needed are now all handled by FileTypeUtil - Fix a bug: Files whose extension has no SciJava language (data.json, notes.md) were being renamed to .txt without reason - Trade-off: A "New_" tab w/ "None" language can no longer be given a syntax by hand. T The workaround is to savein or naming (e.g. x.json): it will trigger the new fallback
- Fix: After every full-script run wrong lines were highlighted the wrong lines due to offset accumulation - Fix Parser leak. ew ErrorStripNotifyingParser were added without removing the previous one - Fix inverted logic in gotoPreviousError - Fix: Highlights being re-added on every reparse - Improve fragile parsing: we now walk the exception chain instead of scraping text - Improve persistence of errors after editing text - Reset all errors flagged by a previous run before each run - Drop support for scala and R: The handbaked hacks are just too fragile - Add proper test
- Apply blended scroll tracks to all side panels - Add basic actions to scratchpad context menu - Fix bookmark markers icon alignment - Improve main tab layout - Remember active tab in side panel across restarts - Remove outdate menu items
Loading: - Set the modified state more reliably when loading templates from JARs - setFileName(File): detect the language without renaming the file Saving: - Add the proposed name as pre-selection in the JFileChooser - Refresh the tab title after saving (before the outdated asterisk marker would remain) - Closing the Save / Discard / Cancel prompt no longer discards the file(!) - Fix inverted logic in the GuiUtils.confirm prompt
hread.stop() throws UnsupportedOperationException since JDK 20, so killing a script logged a stack trace per thread and only interrupted (when anything at all). Now: - Interrupt all threads of the executer (deduplicated), then try stop() only on threads still alive, giving up on the first UnsupportedOperationException - After a 1s grace period, report threads that are still running (script name included, wrapper thread labeled "runner") in the error screen and in the status bar, with a new error icon - Refresh the Kill menu and window title after obliterate(), since the wrapper thread's finally block may never run if it survives - showTemporaryStatus() accepts an optional icon, and always clears the icon of a previous message Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- newTab(): resolve the language by extension (a leading dot is optional) instead of passing the extension to getLanguageByName(), which never matched. An unknown extension is now ignored instead of setting a null language. Also return null if open() fails - newTab(): compare the last language pref with equals(), not != - Run selected code: return right after the "Selection required!" error instead of continuing with a null text - Command history cropping: use Files.move(REPLACE_EXISTING) instead of File.renameTo(), which fails silently on some platforms, and use StandardCharsets.UTF_8 - Javadoc URL for core classes: use Runtime.version().feature(). The java.version parsing threw on versions without dots (e.g., "21") Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Debounce layout saving (300 ms) and window title updates (200 ms). Resize and divider drags fired a pref write per event, and every keystroke refreshed the title. The pending layout save is flushed on window closing, while the tabs still exist - Stop checking for outside file changes on every edit. It still runs on window focus and on tab switch - FileSystemTree: coalesce bursts of watcher events into one refresh per folder - NotesPanel: run the refresh poll only while the panel is displayable (start in addNotify, stop in removeNotify) instead of forever - TextEditorTab.destroy(): null-safe, and detach the listener that mirrors the shared error console into the combined console. It now runs for every closed tab, not just the current one at window close - TextEditor.dispose(): stop the timers and remove the editor and its context from the static instances and contexts lists - EditorPane.syncLanguageWithFileName(): on tab switches, only change the language if it differs from the one implied by the file name - File filter: apply regular expressions with find() instead of adding anchors, which broke alternations such as "py|txt" Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Discovered when testing the new layout on windows 11: - Fix Vim mode not remembered across restarts - Ensure menu items remain in sync with their status bar shortcuts - Fix layout of hamburger button when tabs are placed left/right - Rotate hamburger button when tab position rotates :) - By default place tabs of side panel on the left - Enable occurrences by default: it cost nothing until the word is double clicked on and it is super useful - Make sure REPL is never displayed below 1 line height on toggle - Fix glitch when flipping tabs top/bottom -> left/right While at it: - Remove unused private methods - Store default width of side panel in a constant for consistenty
|
Update: I was able to test this on windows 11, macOS, and briefly on Ubuntu. So I consider this done. I fixed a couple of minor issues (mainly glitches) along the way. Also:
I am now going to mentally move on to other projects, but do let me know if you find something off. For those testing it, you likely want to run `Window > Reset Layout' at least once as I'm not sure older preferences can get in the way |
…window Swing is messy. It seems it redistributes the space among the split pane’s components on every resize, Because we assign min widths, those get enforced during layout in constant flickering This fixes it: The new pane remember which side was collapsed just before a resize. After the layout happens it puts the divider back without flickering.
The newest RSyntaxTextArea 4.0.1 still targets Java 11 as minimum, so we can stick with Java 11 here as well for the time being. Of course, it makes some of the code more verbose or uglier, but not radically so, and I prefer to follow the principle of maintaining the oldest reasonable minimum on a per-component basis to avoid cascading higher minimums to all downstream dependents. Incidentally, this should also fix the CI build, because the workflow was still set to build with Java 11 rather than 21. Assisted-by: Claude Code (Opus 5.5)
|
@tferr Wow, thank you so much! I'm testing it today. My only reservation thus far is the bump to Java 21, because
The main code bloat for sticking with Java 11 is due to the lack of record classes. But of course you already saw the commit about this, because you then pushed the subsequent javadoc fix; thanks for that! |
|
Yeah, sorry about the extra load for reverting the java 21 syntax. Agree. Not needed. Thanks for looking. I also got some feedback/suggestions:
|
Assisted-by: Claude Code (Opus 5.5)
This is a major face lift! with dozens of improvements:
New:
Improved:
Fixed:
Here are some screenshots






NB:
scijava-ui-swingis now a dependency: There is now an option to run the command that changes the L&F(cc'ing @ctrueden, @gselzer , @hinerm as you guys worked recently in the editor.)
See the individual commits for more details. The last few commits are code audits by Claude, and IntelliJ auditing tool.
I think with this, we are pretty much at the limit of what can be done with FlatLaf and RSyntaxTextArea. The editor now looks like a mini IntelliJ prompt. And I think all my grievances with the Editor will be finally gone :)