No description
Find a file
Christian Lemer 9f503e3df8 fix: address Obsidian review bot findings
- Remove unnecessary regex escape (\/), control chars in regex (\x1b)
- Replace innerHTML with DOM building (ansiToDom)
- Mark fire-and-forget promises with void
- Fix unknown type in catch template literals
- Fix sentence case in placeholder text
- Add eslint-plugin-obsidianmd to toolchain (npm run lint)
- Embed build commit hash in settings footer
2026-04-13 20:50:00 +02:00
.github/workflows feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
local feat: deploy command, support wide tables without truncation 2026-04-13 19:52:49 +02:00
Nushell Plugin Playground feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
screenshots feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
.gitignore fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
esbuild.config.mjs fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
eslint.config.mjs fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
LICENSE feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
main.ts fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
manifest.json fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
obsidian-nushell.code-workspace feat: deploy command, support wide tables without truncation 2026-04-13 19:52:49 +02:00
package-lock.json fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
package.json fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00
README.md feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
REQUIREMENTS.md feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
styles.css feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
tsconfig.json feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
version-bump.mjs feat: render .nuon data and highlight .nu scripts in Obsidian 2026-04-12 22:17:12 +02:00
versions.json fix: address Obsidian review bot findings 2026-04-13 20:50:00 +02:00

Nushell for Obsidian

Render Nushell data files (.nuon) and syntax-highlight Nushell scripts (.nu) using the local Nushell installation.

.nuon file rendered as a table

Nuon data blocks in a note

.nu script with syntax highlighting

Nu code blocks in a note

Features

  • .nuon file viewer -- open .nuon files directly in Obsidian and see them rendered as colored Nushell tables with nested records, lists, and type-based coloring
  • .nu file viewer -- open .nu scripts with syntax highlighting powered by Nushell's own nu-highlight
  • nuon code blocks -- embed Nushell data inline in your notes
  • nu code blocks -- embed syntax-highlighted Nushell scripts in your notes
  • Settings panel -- configure date/time format (with presets), filesize units, and boolean/datetime/filesize colors
  • Graceful fallback -- if Nushell is not installed, files are displayed as raw text with a warning

Code block examples

```nuon
[[name, age, city]; [Alice, 30, Brussels], [Bob, 25, Ghent]]
```

```nu
def greet [name: string] {
    print $"Hello, ($name)!"
}
```

Requirements

  • Nushell must be installed locally (v0.102+ recommended for color support)
  • Desktop only (requires shell access)

Installation

From Obsidian

  1. Open Settings > Community plugins
  2. Search for "Nushell"
  3. Install and enable

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Create a folder <vault>/.obsidian/plugins/obsidian-nushell/
  3. Copy the files into that folder
  4. Enable the plugin in Settings > Community plugins

Settings

Setting Description
Date/time format strftime format string with presets, or leave empty for natural ("2 days ago")
Date/time color Color for datetime values
Filesize unit Metric (kB, MB) or binary (KiB, MiB)
Filesize color Color for filesize values
True/False color Separate colors for boolean values

Development

npm install
npm run dev    # watch mode
npm run build  # production build

A Nushell Plugin Playground folder is included as a test vault. To open it:

use local; local obsidian open