Home

Awesome

Trilium JSON Editor (tje)

The Trilium JSON Editor is a table (spreadsheet) type editor for single depth JSON notes. It allows for JSON editing of any Code→JSON note type. It provides auto save functionality, formatting, formulas and more. The heart of this is the amazing x-spreadsheet javascript repo located here.

The original js and css files from the repo are used here untouched (mostly, see comments at the top of each file to see what has been changed) and additional functionality is located in the TJE js note. Minimal css is included in TJE css, including the inline inclusion of the toolbar svg images to allow for use offline.

There are no external dependancies so this should all work identically both online and offline.

<img width="1029" alt="image" src="https://github.com/sottey/tje/assets/8494620/2550626e-21d2-4808-8015-64d4ac3a792f">

Installation

To install, import the release zip file with safe import unselected. If you wish, you can do a manual review and install of the files.

Notes:

Usage

Once imported/configured, simply go to the “Trillium JSON Editor” note. When opened, it will look for all JSON notes (see below for criteria) and put them in the drop down list. Selecting an item will load that JSON into a table for editing.

If autosave is checked, the data will be saved on any change (see below for exceptions). If unchecked, data will only be saved when the “Save” toolbar button is clicked.

If you have JSON notes that you do not want to be put in the list, you can add the attribute #tjeExclude to the note and it will not appear in the list.

The tje does NOT currently support multi-level JSON, only flat, single level JSON. If you load a multi level JSON note, it will not display correctly and, if Save is clicked, could corrupt your JSON note.

Notes:

Roadmap (stuff ta do)