diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ca52bf..921ee75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.35.0 (2025-05-02) +- fix: fixed issue with CSV files edits not being saved + # 0.34.0 (2025-04-30) - feat: you can now navigate to linked CSV and JSON file sources - feat: improved support for minimal theme custom classes diff --git a/manifest.json b/manifest.json index 31bb508..eb1b877 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "sqlseal", "name": "SQLSeal", - "version": "0.34.0", + "version": "0.35.0", "minAppVersion": "0.15.0", "description": "Use SQL in your notes to query your vault files and CSV content.", "author": "hypersphere", diff --git a/package.json b/package.json index 356d7c3..515821a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sqlseal", - "version": "0.34.0", + "version": "0.35.0", "description": "A plugin for Obsidian that allows you to run SQL queries on your notes.", "main": "main.js", "scripts": { diff --git a/src/editorExtension/syntaxHighlight.ts b/src/editorExtension/syntaxHighlight.ts index 1da56e8..cc470b4 100644 --- a/src/editorExtension/syntaxHighlight.ts +++ b/src/editorExtension/syntaxHighlight.ts @@ -93,8 +93,6 @@ export class SQLSealViewPlugin implements PluginValue { contentStart + dec.end ); - console.log('FOUND FILENAME', filePath) - // Create widget decoration for the filename const widget = new FilePathWidget(filePath, this.app); builder.push(Decoration.replace({ diff --git a/src/view/CSVView.ts b/src/view/CSVView.ts index b3aeed0..3b4b19e 100644 --- a/src/view/CSVView.ts +++ b/src/view/CSVView.ts @@ -206,6 +206,10 @@ export class CSVView extends TextFileView { const api = grid.render({ defaultColDef: { editable: this.enableEditing, + valueSetter: (e) => { + e.data[e.column.getUserProvidedColDef()?.headerName!] = e.newValue + return e.newValue + }, headerComponentParams: { enableMenu: this.enableEditing, showColumnMenu: function (e: any) { diff --git a/versions.json b/versions.json index 4c991a4..47d5fe1 100644 --- a/versions.json +++ b/versions.json @@ -60,5 +60,6 @@ "0.31.0": "0.15.0", "0.32.0": "0.15.0", "0.33.0": "0.15.0", - "0.34.0": "0.15.0" + "0.34.0": "0.15.0", + "0.35.0": "0.15.0" } \ No newline at end of file