diff --git a/README.md b/README.md index 4a5cb4d7..1ea5a7a0 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ The information you add or edit will be saved into the target obsidian note. - Global filters ![GlobalFilter.gif](docs/resources/GlobalFilter.gif) +#### Event Driven +- (*NEW*) Configurable select column with `group_folder_column` property. This column will be used to group the notes into subfolders with the same cell value. The subfolder will be created if it does not exist. +![GroupFolderColumn.gif](docs/resources/GroupFolderColumn.gif) + ### Whats inside the database view? Database view read the yaml configuration inside .md file and render a react DOM. @@ -40,8 +44,11 @@ Mandatory: - **label**: name of the column Optional: - **position**: order of the columns -#### Local configuration + +#### Local configuration +- **enable_show_state**: show react table state at bottom of the page. It has a default value & local value of each database. +- **group_folder_column**: name of the column used to group the notes into subfolders with the same cell value. The subfolder will be created if it does not exist. It must be a select column type. ```markdown --- @@ -75,9 +82,16 @@ columns: accessor: Calification label: Calification key: Calification + position: 5 + view_state: + input: select + accessor: view_state + key: view_state + label: view_state position: 4 config: enable_show_state: false + group_folder_column: view_state %%> ``` diff --git a/docs/resources/GroupFolderColumn.gif b/docs/resources/GroupFolderColumn.gif new file mode 100644 index 00000000..6d3d485d Binary files /dev/null and b/docs/resources/GroupFolderColumn.gif differ diff --git a/manifest.json b/manifest.json index 44de21d5..723cf55b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "dbfolder", "name": "DB Folder", - "version": "0.0.6", + "version": "0.0.7", "minAppVersion": "0.14.6", "description": "Folder with the capability to store and retrieve data from a folder like database", "author": "RafaelGB", diff --git a/package.json b/package.json index 4c22a9ca..8eeb5c3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-dbfolder", - "version": "0.0.6", + "version": "0.0.7", "description": "This is a sample plugin for Obsidian (https://obsidian.md)", "main": "main.js", "scripts": {