Plugins

Screen Text Editor

Provides full-screen text editing and read-only viewing for readable files.

Version 1.0.7 Official plugin Released 135 downloads

Install it from Commander: Plugins → Manage, or drop the signed bundle into the plugins/ directory.

What this bundle provides

One download, 2 plugins.

Text Editor

dev.nuclr.plugin.core.screen.texteditor

Text editor screen provider (F4) for readable files.

Fullscreen Apache-2.0 Editor

Text Viewer

dev.nuclr.plugin.core.screen.textviewer

Text editor screen provider (F4) for readable files.

Fullscreen Apache-2.0 Viewer

About

📝 Text Editor

An official Nuclr Commander plugin providing a fullscreen syntax-highlighted text editor. Activated with F4 from any readable file. Powered by RSyntaxTextArea.

This plugin ships two roles:

RoleShortcutDescription
📝 Text EditorF4Editable mode with save support
👁️ Text ViewerF3Read-only mode — safe inspection

✨ What It Does

FeatureDetails
🎨 Syntax highlightingCommon source and config formats via RSyntaxTextArea
🔢 Line numbersGutter with line numbers
🪄 Code foldingFoldable regions where the language supports it
🔤 Preferred fontJetBrains Mono when available; falls back to system monospace
🌑 Dark themeColors follow the Nuclr Commander theme via NuclrThemeScheme
💾 Dirty trackingUnsaved changes are tracked; the title updates accordingly, and closing prompts Save / Don't Save / Cancel
🔍 SearchModeless find dialog (F7 / Ctrl+F) with find next/previous, wrap-around, and a match position status line
⚙️ Search optionsCase sensitive · regular expressions · whole words · fuzzy search
↩️ Word wrapOn by default, wrapping at word boundaries
🛡️ Safe fallbackNon-UTF-8 files open in read-only mode

⌨️ Keyboard Shortcuts

KeyAction
F2 / Ctrl+SSave (editor only)
F3 / EscapeClose editor / viewer
F7 / Ctrl+FOpen the search dialog

🎯 Supported Formats

Any file that TextFileDetector recognises as text can be opened — detection is content-based (an 8 KB sample), not extension-based, so binary files are skipped automatically and extensionless text files open fine.

The extension only picks the syntax highlighting:

CategoryExtensions
JVMjava
Webjs, mjs, ts, tsx, html, htm, css, php
Data / configjson, xml, yaml, yml, toml, properties, ini, csv
Systemsc, h, cpp, hpp, cs, go, rs
Scriptspy, sql
Markup / plain textmd, txt, log

Anything else opens with highlighting off.

📥 Installation

Copy the signed plugin archive and detached signature into the Nuclr Commander plugins/ directory:

screenpanel-text-editor-<version>.zip
screenpanel-text-editor-<version>.zip.sig

Nuclr Commander verifies the RSA-SHA256 signature against nuclr-cert.pem on load. The plugin becomes available immediately without a restart.

⚙️ How it works

TextEditorScreenPlugin implements FullscreenNuclrPlugin in the editor role. It creates an RSyntaxTextArea inside an RTextScrollPane, applies the theme XML, and binds the theme updater to NuclrThemeScheme. TextViewerScreenPlugin extends it and overrides isEditable() to return false, so both roles share all editing, search, and theming code. TextFileDetector performs a binary scan before the plugin reports support for a resource.

Key bindings are installed on the panel, the scroll pane and the text area, so a shortcut fires regardless of which of the three currently holds focus.

🗂️ Source Layout

src/main/java/dev/nuclr/plugin/core/screen/texteditor/
├── TextEditorScreenPlugin.java   fullscreen text editor (editor role), search dialog
├── TextViewerScreenPlugin.java   read-only viewer variant (viewer role)
└── TextFileDetector.java         text vs binary file detection

📚 Dependencies

LibraryVersionPurpose
dev.nuclr:platform-sdk3.0.2Nuclr platform interfaces
rsyntaxtextarea3.6.1Syntax-highlighted text editor component
commons-io2.22.0File reading / encoding helpers
commons-lang33.20.0String utilities

📜 License

Apache License 2.0 — see LICENSE.

Releases

Version Released Size Download
1.0.7 1.2 MB Download
1.0.6 1.2 MB Download
1.0.5 1.2 MB Download
1.0.4 1.2 MB Download
1.0.3 1.2 MB Download
1.0.2 1.2 MB Download
1.0.1 1.2 MB Download
1.0.0 1.2 MB Download

Details

Plugin ID
dev.nuclr.plugin.core.screen.texteditor
Repository
nuclrdev/plugin-screenpanel-text-editor
Platform SDK
4.0.0
SHA-256
99815f792da647b1747ad7579945560f46bb8da21852396a12ed19a782e29b4d