Nushell

approved

by christianlemer

This plugin has not been manually reviewed by Obsidian staff. Render Nushell data files (.nuon) and syntax-highlight Nushell scripts (.nu) using the local Nushell installation.

34 downloadsUpdated 1mo agoMIT

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

SettingDescription
Date/time formatstrftime format string with presets, or leave empty for natural ("2 days ago")
Date/time colorColor for datetime values
Filesize unitMetric (kB, MB) or binary (KiB, MiB)
Filesize colorColor for filesize values
True/False colorSeparate 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

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.