Table to CSV Exporter

by Stefan Wolfrum
5
4
3
2
1
Score: 32/100

Description

Category: File Management

The Table to CSV Exporter plugin allows users to export table data from a note in reading mode directly into a CSV file. Originally designed to work with dynamic tables generated by the Dataview plugin, it can also handle manually created markdown tables or tables from other plugins. Users can customize file naming, field separators, quoting, and handling of line breaks within data cells. The plugin ensures no files are overwritten and provides options to copy the CSV data to the clipboard. It supports mobile platforms and is designed for simple and efficient export workflows.

Reviews

No reviews yet.

Stats

89
stars
16,623
downloads
7
forks
1,409
days
46
days
1,422
days
3
total PRs
2
open PRs
0
closed PRs
1
merged PRs
13
total issues
7
open issues
6
closed issues
2
commits

Latest Version

4 years ago

Changelog

Release notes for v0.1.4:

  • The separation character can now be selected in a dropdown menu and includes the tab and many other characters. Defaults to semicolon now.
  • The data quotation character can now be selected in a dropdown and can either be the double quotes (") or single quotes (') character.

README file from

Github

Obsidian Plugin "Table to CSV Exporter"

This is my very first attempt in writing a plugin for Obsidian. I didn't even know TypeScript before (but JavaScript).

What does it do?

The purpose of this plugin is to be able to export table data from a pane in reading mode into a CSV file.

Background: The fabulous Dataview plugin for Obsidian allows to dynamically create tables from an SQL-like query over your notes' metadata. I wanted to be able to further use this created data in external applications, like MS Power BI, to create visualizations of that data.
But the plugin can export any table into a CSV file, even those you "hard-coded" in Markdown (if that makes sense for you) or those that were created by some other plugin.

Settings

My plugin allows you to configure a few things in its settings:

  • The base filename of the CSV file

    This is the first part of the filename of the CSV file you're about to save.

    Default: table-export

  • A file number addition

    This gets added to the base filename (after a hyphen). After this, the extension .csv is added.
    This number gets incremented by one after each succesful export and resetted to 001 after reaching 999.
    Normally you won't need to interfere with this in the settings but you can change it if you want.
    But be careful! Don't mess with this. Don't change this to text or something different than numbers. And stay in the ### scheme (three ciphers max., leading zeroes).
    It may become neccessary to either change this number manually or to delete/rename/move files out of your vault folder.
    No worries, though: the plugin never overwrites any files and warns you if a file already exists.

    Default: 001

  • The separation character

    Here you can select the character that separates the data fields in the CSV file. The dropdown box contains the usual suspects like comma, semicolon and tab. But there are some unusual choices as well.

    Default: ;

  • Quote data

    If you want the data cells in the CSV file to be enclosed in quotation marks you can choose to do so here. In the dropdown box you can choose between either double quotation marks ("), single quotation marks (') or not to quote data at all.

    Default: no quoting

  • Handling of CR/LF in data

    In some rare cases you might have return (CR) or linefeed (LF) characters inside of data fields/cells. This will break the CSV file. With this setting you can select how you want to handle these characters. You can either simply strip them, replace them with a single space character or replace them with the fixed string [CR]so that you later can still see that there once was some kind of return character in your data.

    Default: Replace all CR & LF characters with one space

  • Copy to clipboard, too

    Optionally you can copy the CSV string to the clipboard, too.

    Default: off

Usage

The plugin adds a new command: "Export table to CSV file". This will only work when your currently active pane is in reading mode. When the command is executed a .csv file is written according to the settings in your vault's main folder. This CSV file contains the data of the first table in the reading mode of the note.

The plugin works on mobile, too. (Tested on iPadOS only, though.)

Current limitations

Of course, there's always room for improvement. As of version 0.1.4, there are the following limitations/restrictions:

  • The plugin currently exports only the first table that it finds in the reading mode of a note.
  • The plugin saves the CSV file directly into you vault's main folder. A feature to select another folder inside your vault will be added later.

Thanks

I'd like to thank several people here. Without them this plugin wouldn't have come to live.

  • Edmund Gröpl – for bringing up the problem at all and his encouragement over all the years.
  • Marcus Olsson – for starting the Obsidian Plugin Developer Docs project which I highly recommend, especially for beginners. He's on Twitter, too: @marcusolsson
  • Johannes Theiner – a very kind and helpful user over at the official Obsidian Discord server. I met him in the #plugin-dev channel and his answers to my questions were very helpful. He's also on Twitter: @joethei

Contact

Please leave feedback here in the GitHub discussions or file a new issue if you found a bug or have a feature request. You can reach me via Twitter, too:

Sponsoring

If this plugin adds value for you and you would like to help support continued development, please consider sponsoring this repository via GitHub Sponsors, PayPal or Buy me a coffee.

Made with ❤️ in Bonn, Germany.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Excel to Markdown Table
4 years ago by Ganessh Kumar R P
An Obsidian plugin to paste data from Microsoft Excel, Google Sheets, Apple Numbers and LibreOffice Calc as Markdown tables in Obsidian editor.
Heatmap Calendar
4 years ago by Richard Slettevoll
An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
AsciiDoc Blocks Plugin
4 years ago by Juracy Filho
A plugin to render asciidoc blocks in Obsidian, initially asciidoc tables
Release Timeline
4 years ago by cakechaser
Habit Tracker
4 years ago by David Moeller
A Plugin to display a Habit Tracker in Obsidian.
Simple Note Review
4 years ago by dartungar
Simple, customizable plugin for easy note review, resurfacing & repetition in Obsidian.md.
Better Inline Fields
4 years ago by David Sarman
Obsidian plugin to enhance Dataview style inline fields
Table Generator
4 years ago by Boninall
A plugin for generate markdown table quickly like Typora.
Page Gallery
3 years ago by Nathan Clark
Generates a gallery based on selected page contents.
Double Colon Conceal
3 years ago by Michal Srch
Obsidian plugin to display double colon (i.e. Dataview inline fields) as a single colon for more natural reading experience.
Habit Calendar
3 years ago by Hedonihilist
Monthly Habit Calendar for DataviewJS. This plugin helps you render a calendar inside DataviewJS code block, showing your habit status within a month.
Meld Build
3 years ago by meld-cp
Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.
Any Block
3 years ago by LincZero
You can flexibility to create a 'Block' by many means. It also provides many useful features, like `list to table`. (obsidian/markdown-it/vuepress plugin/app)
HackerOne
3 years ago by neolex
A plugin to get our hackerone reports data into obsidian
Query all the things
3 years ago by Sytone
Query all your data stored in Obsidian, this plugin allows SQL based queries against the data collections available in Obsidian and Dataview. Output can then be rendered by Handlebars
Bulk Exporter
3 years ago by symunona
Bulk export Markdown filtered, renamed and sorted by front matter metadata into a new structure.
Link Tree
3 years ago by Joshua Tazman Reinier
A sidebar foldable list of Obsidian link hierarchies.
Sheets Extended
3 years ago by NicoNekoru
Plugin that adds features to tables in obsidian including merging, vertical headers, and custom css
moviegrabber
3 years ago by Leon Holtmeier
obsidian.md plugin to grab data from public movie Databases and make them into a note that can be used with dataview querries
Markdown table checkboxes
3 years ago by DylanGiesberts
Obsidian plugin. Allows for the usage of checkboxes inside markdown tables.
JSON table
2 years ago by Dario Baumberger
Simply switch between JSON and tables in your Obsidian notes.
Run
2 years ago by Hananoshika Yomaru
Generate markdown from dataview query and javascript.
Feeds
2 years ago by LukeMT, pashashocky, madx
Magic feeds dataview query for obsidian
Adjacency Matrix Exporter
2 years ago by danielegrazzini
Create a numerical adjacency matrix of your Vault in two ways: Absolute and Normalized
Reason
2 years ago by Joshua Pham
Digest your Obsidian notes
Enhanced tables
2 years ago by pistacchio
A plugin for Obsidian to add advanced controls (like sorting and filtering) to standard markup tables
View Count
2 years ago by Trey Wallis
Add view count tracking to your Obsidian vault
Dataview Serializer
2 years ago by Sébastien Dubois
Obsidian plugin that gives you the power of Dataview, but generates Markdown, making it compatible with Obsidian Publish, and making the links appear on the Graph.
Dataview Publisher
2 years ago by UD
Output markdown from your Dataview queries and keep them up to date. You can also be able to publish them.
Account Viewer
2 years ago by Muaz Yediyüzkırkiki
Obsidian Plugin that automatically generate accounting tables from Markdown code blocks tagged with "accounting" alias.
Pug Templates
2 years ago by Nicholas Wilcox
An Obsidian plugin that enables the usage of Pug templates.
Advanced Tables
6 years ago by Tony Grosinger
Improved table navigation, formatting, and manipulation in Obsidian.md
Dataview
5 years ago by Michael Brenan
A data index and query language over Markdown files, for https://obsidian.md/.
Table of Contents
5 years ago by hipstersmoothie
Create a tables of contents for a note.
Table Extended
5 years ago by AidenLx
Extend basic table in Obsidian with MultiMarkdown table syntax
Charts View
5 years ago by caronchen
Data visualization solution in Obsidian, support plots and graphs.
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.
MOC Link Helper
a year ago by Bogdan Codreanu
This obsidian plugins allows you to quickly see which notes you need to include in your MOC.
Dataview Autocompletion
a year ago by Daniel Bauer
Every Day Calendar
a year ago by QuBe
Obsidian plugin to create calendars inspired by Simone Giertz's Every Day Calendar
HTML checkboxes
a year ago by Anareaty
Tier List
a year ago by Mox Alehin
Obsidian plugin for visual ranking and organizing content into customizable Tier Lists.
CSV All-in-One
a year ago by hihangeol
Tagvis
a year ago by Mason Bryant
Smart ChatGPT
a year ago by 🌴 Brian
Kanban Status Updater
a year ago by Ankit Kapur
Obsidian plugin that automatically updates the note property when card is moved to a column.
DataCards
a year ago by Sophokles187
Obsidian Plugin that transforms dataview tables into visually appealing and customizable card layouts.
Virtual Footer
a year ago by Signynt
Display markdown text (including dataview queries or Obsidian bases) at the bottom or top of all notes which match a specified rule, without modifying them.
Log Keeper
10 months ago by James Sonneveld
Generates times stamps automatically as changes are made to a note.
Slash snippets
10 months ago by echo-saurav
Insert snippet of text with slash command
Dataview (to) Properties
9 months ago by Mara-Li
Sync inline Dataview to properties (YAML frontmatter)
Sortable Tables
9 months ago by filippov112
A plugin for Obsidian that adds the ability to interactively sort Markdown tables in preview mode.
Move Cursor On Startup
8 months ago by Jared Kelnhofer
Obsidian plugin to move the cursor to the right and back to the left when starting up. Why? To keep DataView expressions from not running on the first load of, say, your Home file.
Tasks Map
7 months ago by NicoKNL
A graph view of your tasks.
List to table converter
6 months ago by paddomanno
Table Checkbox Renderer
5 months ago by Daniel Aguerrevere
Interactive checkboxes for Markdown tables in Obsidian. Toggle checkboxes in Reading Mode and instantly update your Markdown file. Supports multiple checkboxes per cell and any table layout.
Workout Planner
3 months ago by Rares Spatariu
Table Line Break Mobile
3 months ago by marcelflymark
Obsidian plugin: Insert a new line break inside a table cell using the <br> HTML element
TikToker
a month ago by ameyxd
Save TikTok videos as markdown notes with embedded content and metadata extraction.