CSV Codeblock

by elrindir
5
4
3
2
1
Score: 40/100

Description

Category: Data Visualization

The CSV Codeblock plugin is a game-changer for Obsidian users who work with data-heavy notes. With this plugin, you can effortlessly convert CSV codeblocks into tables within your notes, making it easier to analyze and visualize your data. Simply wrap your CSV data in a codeblock and identify it as csv, and the plugin will take care of rendering it as a table. This feature is particularly useful for those who work with spreadsheets, financial data, or any other type of data that requires tabular representation. With the CSV Codeblock plugin, you can easily turn complex CSV data into an intuitive and easy-to-understand format within Obsidian.

Reviews

No reviews yet.

Stats

15
stars
5,761
downloads
1
forks
1,031
days
777
days
777
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
4
total issues
3
open issues
1
closed issues
0
commits

Latest Version

2 years ago

Changelog

Now supports tsv in codeblocks. Thanks mklepaczewski for the request.

README file from

Github

CSV Codeblock

This is a plugin for Obsidian (https://obsidian.md). This plugin renders codeblocks with csv format as tables.

Usage

Just put the csv identifyer in a codeblock:


```csv
Pos, Date, Name, Price
1, 2023-09-28, Spices, 150$
2, 2023-02-29, Shovel, 1.25$
```

A preview of the rendered table

Stolen Code

I stole the code from https://docs.obsidian.md/Plugins/Editor/Markdown+post+processing#Post-process+Markdown+code+blocks

import { Plugin } from "obsidian";

export default class ExamplePlugin extends Plugin {
  async onload() {
    this.registerMarkdownCodeBlockProcessor("csv", (source, el, ctx) => {
      const rows = source.split("\n").filter((row) => row.length > 0);

      const table = el.createEl("table");
      const body = table.createEl("tbody");

      for (let i = 0; i < rows.length; i++) {
        const cols = rows[i].split(",");

        const row = body.createEl("tr");

        for (let j = 0; j < cols.length; j++) {
          row.createEl("td", { text: cols[j] });
        }
      }
    });
  }
}

Changelog

v1.1 Added TSV Support

on Jul 18, 2024

Now supports tsv in codeblocks. Thanks mklepaczewski for the request.

v1.0 Initial Release

on Sep 28, 2023

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
ABC Music Notation
6 years ago by Til Blechschmidt
Plugin which renders music notations from code blocks
Advanced Codeblock
4 years ago by Lijyze
An obsidian plugin that give additional features to code blocks.
Bases Toolbox
a month ago by Grub Basket
Adds Quality of Life features to Obsidian Bases
Charts View
5 years ago by caronchen
Data visualization solution in Obsidian, support plots and graphs.
Code Blocks commands
a year ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Codeblock Customizer
3 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
Collapsible Code Blocks
a year ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
CSV All-in-One
a year ago by hihangeol
CSV Editor
6 years ago by death_au
Edit CSV Files in Obsidian
CSV Table
5 years ago by Adam Coddington
Have a CSV file you want to render some or all of the data from? This plugin allows you to display that data in your obsidian preview.
Embedded Code Title
5 years ago by tadashi-aikawa
It is an Obsidian plugin which can embeds title to code blocks.
Financial Doc
3 years ago by Studio Webux
Financial Documentation and Tracking using CSV format and Chart.js directly in Obsidian
HK Code Block
3 years ago by Heekang Park
Obsidian plugin developed by Heekang Park; Make code block looking good on reading view
Importer
3 years ago by Obsidian
Convert your data to Markdown files you can use in Obsidian. Works with Apple Notes, OneNote, Evernote, Notion, Google Keep, and many other formats.
JSON-CSV Importer
2 months ago by farling42
Plug-in for Obsidian.md which will create Notes from JSON files
Markmap to CSV
2 years ago by maxlee
obsidian plugin for conversion from markmap to csv
Minitabs
3 years ago by ssjy1919
Obsidian tabs
MLIR Syntax Highlight
3 years ago by Lewuathe
Numerals
4 years ago by RyanC
An obsidian plugin which turns a math code block into a full featured calculator
Obsidian Columns
4 years ago by Trevor Nichols
Power Tables
a month ago by Power Plugins
Color, calculate, and sort Markdown tables in place: cell fills and text colors, live formulas that recalculate, and column sorting, all stored as plain Markdown.
ProgressBar
4 years ago by Wei Zhang
Code block plugin for Obsidian generating a progress bar
Replace Pencil
a year ago by penyt
🐧 An obsidian plugin that can easily replace the custom variable in the code block.
SQLSeal
2 years ago by hypersphere
Query your files using SQL directly from your Obsidian Vault
Todo.txt Codeblocks
3 years ago by Benjamin Nguyen
Manage your tasks inside Obsidian codeblocks according to the Todo.txt specification.
YAML Table
a year ago by dainakai