Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit b704a7e

Browse files
committed
new version
1 parent be0b2e9 commit b704a7e

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

docs/docs/changelog.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
# 2.3.7
1+
# 2.4.0
2+
*Published on 2022/09/08*
3+
### Shiny new things
4+
- Totally renewed row context menu! Now wraps the obsidian context menu, so you can use all the plugins that add items to it(rename and delete file included as custom options too) [ISSUE#152](https://github.com/RafaelGB/obsidian-db-folder/issues/152)
5+
- Created and modified columns now is rendered as daily link note using the complete date as alias [ISSUE#144](https://github.com/RafaelGB/obsidian-db-folder/issues/144)
6+
### Improved
7+
- Global search now ignore cases [ISSUE#340](https://github.com/RafaelGB/obsidian-db-folder/issues/340)
8+
- File column is ordered alphabetically using filename instead of path with sort options [ISSUE#335](https://github.com/RafaelGB/obsidian-db-folder/issues/335)
9+
- Checkbox edition save boolean values instead of 1 or 0 [ISSUE#158](https://github.com/RafaelGB/obsidian-db-folder/issues/158)
210
### Visual
311
- Tasks aligned to the left properly
12+
- Open tags cell on the bottom of the table is displayed properly [ISSUE#139](https://github.com/RafaelGB/obsidian-db-folder/issues/139)
413
### No longer broken
514
- new yaml breaker conditions added (>)
15+
- Edit a cell in a page out of the first one does not reset the pagination anymore [ISSUE#338](https://github.com/RafaelGB/obsidian-db-folder/issues/338)
616
# 2.3.6
717
*Published on 2022/09/07*
818
### Improved

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.3.6",
4+
"version": "2.4.0",
55
"minAppVersion": "0.15.9",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.3.6",
4+
"version": "2.4.0",
55
"minAppVersion": "0.15.9",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "2.3.6",
3+
"version": "2.4.0",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/components/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const defaultColumn: Partial<ColumnDef<RowDataType>> = {
5050
cell: DefaultCell,
5151
header: DefaultHeader,
5252
enableResizing: true,
53-
sortingFn: "basic",
53+
sortingFn: "alphanumeric",
5454
};
5555

5656
/**

src/components/cellTypes/CheckboxCell.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ function CheckboxCell(props: CellComponentProps) {
1818

1919
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
2020
const newValue = event.target.checked;
21+
console.log("newValue", newValue);
2122
// save on disk
2223
dataActions.updateCell(
2324
row.index,
2425
column.columnDef as TableColumn,
25-
newValue,
26+
newValue ? "true" : "false",
2627
columnsInfo.getAllColumns(),
2728
configInfo.getLocalSettings()
2829
);
@@ -31,7 +32,7 @@ function CheckboxCell(props: CellComponentProps) {
3132
<div key={`checkbox-div-${row.index}`} className={`${c("checkbox")}`}>
3233
<input
3334
type="checkbox"
34-
checked={checkboxRow[column.id] as boolean}
35+
checked={checkboxRow[column.id] === "true"}
3536
key={`checkbox-input-${row.index}`}
3637
onChange={handleChange}
3738
/>

src/services/DataviewService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ class DataviewProxy {
177177
}
178178
}
179179

180-
private parseToBoolean(wrapped: WrappedLiteral): boolean {
180+
private parseToBoolean(wrapped: WrappedLiteral): string {
181181
if (wrapped.type === 'boolean') {
182-
return wrapped.value;
182+
return wrapped.value ? 'true' : 'false';
183183
} else {
184184
const adjustedValue = this.getDataviewAPI().value.toString(wrapped.value);
185-
return adjustedValue === 'true' || adjustedValue === '1';
185+
return adjustedValue === 'true' ? "true" : "false";
186186
}
187187
}
188188

0 commit comments

Comments
 (0)