Nosc v1.0 — Release Overview & Feature Summary
Nosc is a modernized, terminal-based spreadsheet editor built on ncurses. This release expands file format interoperability, introduces an embedded Lua scripting engine, refines terminal UI responsiveness, and resolves screen rendering issues while maintaining full compatibility with original Neo/Oleo features and evaluation routines.
Nosc is built from Neo-Oleo, whose roots are in GNU Oleo. The name Nosc comes from Neo-Oleo and SC (spreadsheet calculator).
Most basic instructions:
= to enter a number or function.
" to enter a string. (Same as typing = then ")
Highlights & Major Additions
1. Extended Multi-Format File Support
- - Nosc automatically selects file handlers based on extension upon load (Ctrl+O) and save (Ctrl+S):
- Native Oleo (.oleo, .neo)
- - Full native read/write support for formulas, evaluation state, decimal precision, text alignment, cell styling (bold/italic), column widths, and cursor coordinates. Unnamed sheets default to unnamed.oleo.
- Delimited Text (.csv)
- - Interactive configuration modal allowing customizable field delimiters (comma ,, semicolon ;, tab \t, pipe |), quote characters (", '), optional header row skipping on import, and formula evaluation vs. literal text toggles.
- Symbolic Link (.slk)
- - Full read/write round-tripping for SYLK files (C;X...;Y...;E...;K... records), featuring automatic translation between Nosc A1 references and SYLK R1C1 formula syntax.
- LaTeX Tabular (.tex)
- - Export spreadsheets as clean LaTeX tabular environments with \hline formatting and automatic escaping of special characters. Import tabular code while stripping column specification brackets ({lll...}) and horizontal rule directives (\hline, \cline{...}).
- SC Spreadsheet (.sc)
- - Read-only import for SC directives including let, label, leftstring, rightstring, and width. Exporting to .sc is safely guarded to prevent incomplete files from being written.
2. Built-in Lua Scripting Support
Alongside existing Tcl bindings, Nosc features an embedded, lightweight Lua 5.x scripting runtime (luascript) for automated sheet manipulation and custom commands.
- Interactive Shortcuts:
- - Esc X (or x): Load and execute a .lua script file.
- - Esc L (or l): Open an inline Lua code evaluation prompt.
- Exposed sheet. API:
- - sheet.getcell(row, col) — Retrieve cell string contents.
- - sheet.setcell(row, col, expr) — Write a value or formula (e.g., "=A1+B1") with full dependency recalculation.
- - sheet.go(row, col) — Move active cursor to (row, col).
- - sheet.cursor() — Return active cursor coordinates (row, col).
- - sheet.bounds() — Return sheet limits (maxrow, maxcol).
- - sheet.setwidth(col, width) — Set display column width.
- - sheet.setprec(col, prec) — Set decimal precision for a column.
- - sheet.setstatus(msg) — Print a message to the top status bar.
- - sheet.clear() — Clear all sheet contents.
Note: TCL is not a very popular language and added MBs of requirements, so has been disabled. Compile with cmake -DENABLETCL=ON to re-enable full TCL support.
3. Terminal UI & Interaction Refinements
- Unified Header & Status Bar:
- - Consolidated file title, active cell coordinate, cell value/formula display, quick shortcut reminders (Alt+g, Ctrl+g), and inline error alerts on row 0.
- Dual-Mode Input Model:
- - Immediate single-key confirmation: Unsaved changes prompts (y/n/Esc) and modal dialog confirmations execute instantly without requiring Enter.
- - Line-edited input: Retained standard line-editing for variable-length inputs (formulas, text labels, file paths, column width values).
- Screen Redraw & Latency Fixes:
- - Added instant screen clearing (clear() + clearok()) on file load to eliminate residual characters from prior sessions.
- - Corrected column offset alignment and row header indexing.
- - Configured low escape latency (ESCDELAY = 25 ms) for instantaneous key responsiveness on Esc and Alt combinations.
- - Replaced stack memory allocation with safe string buffers in output formatting routines.
4. Preserved Core Engine Capabilities
- All legacy Oleo core functions remain fully active and supported:
- - Formula parsing, dependency graph tracking, and automatic recalculation (setandeval).
- - Cell formatting: Bold (Ctrl+B), Italic (Ctrl+I), Percentage (%), Left/Right Alignment (>).
- - Structural controls: Insert/delete/copy rows and columns.
- - Mouse selection and wheel scrolling support.
- - Built-in help popups (Ctrl+g) and cheat-sheet keybinding viewer (Alt+g).
5. And many sniped gremlins.
- - Gemini was used to fork Neo-Oleo to Nosc. Do with that what you will.