fix: fixed issue with CSV files edits not being properly saved

This commit is contained in:
Kacper Kula 2025-05-02 19:53:16 +01:00
parent b5cbfcee93
commit 6c349c6020
6 changed files with 11 additions and 5 deletions

View file

@ -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

View file

@ -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",

View file

@ -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": {

View file

@ -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({

View file

@ -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) {

View file

@ -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"
}