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

Commit 16dd3ca

Browse files
committed
reordering
1 parent c3e1d8a commit 16dd3ca

File tree

5 files changed

+39
-94
lines changed

5 files changed

+39
-94
lines changed

README.md

Lines changed: 9 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -8,99 +8,18 @@ Database has its own type of view. It will search all notes into the same folder
88

99
The information you add or edit will be saved into the target obsidian note.
1010

11-
### Features
12-
#### Rows
13-
- Add new row
14-
![AddNewRow.gif](docs/resources/AddNewRow.gif)
15-
- Edit cells directly on table
16-
#### Headers
17-
- Add new column
18-
- Edit label of existed column
19-
- Delete column
20-
- Order column ascending/descending
21-
- Drag & drop column. Order of the columns persisted
22-
#### Filters
23-
- Global filters
24-
![GlobalFilter.gif](docs/resources/GlobalFilter.gif)
25-
26-
#### Event Driven
27-
- (*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.
28-
![GroupFolderColumn.gif](docs/resources/GroupFolderColumn.gif)
29-
30-
### Whats inside the database view?
31-
Database view read the yaml configuration inside .md file and render a react DOM.
32-
33-
You can edit directly the yaml configuration inside the .md file or use the table features to edit the columns.
34-
#### Information
35-
Details about your database
36-
- **name**: Name asociated to your database (TODO)
37-
- **description**: extra information explaining the purpose of the database (TODO)
38-
#### Database
39-
The *columns* key is used to charge the correct information when you charge the react-table. Each column supports all the literals of react-table column configurations.
40-
Mandatory:
41-
- **input**: indicates the type of the column (text,markdown & number)
42-
- **key**: name of obsidian field metadata in your notes (inline not supported edition yet)
43-
- **accessor**: is the key of the data. Must be unique
44-
- **label**: name of the column
45-
Optional:
46-
- **position**: order of the columns
47-
48-
49-
#### Local configuration
50-
- **enable_show_state**: show react table state at bottom of the page. It has a default value & local value of each database.
51-
- **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.
52-
```markdown
53-
---
54-
55-
database-plugin: basic
56-
57-
---
58-
<%%
59-
name: undefined
60-
description: undefined
61-
columns:
62-
title:
63-
input: text
64-
accessor: title
65-
label: title
66-
key: title
67-
position: 1
68-
director:
69-
input: text
70-
accessor: director
71-
label: director
72-
key: director
73-
position: 2
74-
Year:
75-
input: number
76-
accessor: Year
77-
label: Year
78-
key: Year
79-
position: 3
80-
Calification:
81-
input: select
82-
accessor: Calification
83-
label: Calification
84-
key: Calification
85-
position: 5
86-
view_state:
87-
input: select
88-
accessor: view_state
89-
key: view_state
90-
label: view_state
91-
position: 4
92-
config:
93-
enable_show_state: false
94-
group_folder_column: view_state
95-
%%>
96-
```
11+
## Index
12+
- [Whats inside database view](docs/docs/Whats inside database view.md)
13+
- [Obsidian dbfolder Features|Features](docs/docs/Obsidian dbfolder Features.md)
14+
- [Obsidian dbfolder Features#Rows|Rows]
15+
- [Obsidian dbfolder Features#Headers|Headers]
16+
- [Obsidian dbfolder Features#Filters|Filters]
17+
- [changelog](docs/changelog.md)
9718

9819
## Sources
9920
### Search engine:
10021
- [dataview](https://github.com/blacksmithgu/obsidian-dataview)
22+
10123
### React UI
10224
- [react-table](https://github.com/TanStack/react-table)
103-
- [Notion Style base](https://github.com/archit-p/editable-react-table)
104-
105-
## Funding
106-
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/5tsytn22v9Z)
25+
- [Notion Style base](https://github.com/archit-p/editable-react-table)

docs/changelog.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
## 0.0.8 (on progress)
1+
## 0.1.0
22
### Shiny new things
3-
- New button to download a CSV file with the current data (supports filtering!)
3+
- New button to download a CSV file with the current data (supports filtering!). Temporally this feature is inside menu bar. We are working on move it into the actual file options of Obsidian [ISSUE#15](https://github.com/RafaelGB/obsidian-db-folder/issues/15)
44
### Improved
5-
- Now when you add some cell, the plugin will check if the note has frontmatter and if the current column. If not it will be added.
5+
- Now when you edit some cell, the plugin will check if the note has frontmatter and if the current column exist. If not it will be added automatically
66
- Headers are now static when you scroll down.
7+
8+
### Visual changes
9+
- The search bar has been moved to a static menu bar
10+
711
### No longer broken
812
- Now when you create a new note, the label of the file shows just the basename, not the full path.
913
- Add prefix to the className of components, so interference with other plugins is less probable. [ISSUE#19](https://github.com/RafaelGB/obsidian-bd-folder/issues/19)
14+
- When column folder is activated and a file is moved, now link is updated correctly
1015
## 0.0.7
16+
*Published on 04/27/2022*
1117
### Shiny new things
1218
- New local property `group_folder_column` to specify a select column type column. 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. [ISSUE#11](https://github.com/RafaelGB/obsidian-bd-folder/issues/11)
1319

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#### Rows
2+
- Add new row
3+
![AddNewRow.gif](resources/AddNewRow.gif)
4+
- Edit cells directly on table
5+
6+
#### Headers
7+
- Add new column
8+
- Edit label of existed column
9+
- Delete column
10+
- Order column ascending/descending
11+
- Drag & drop column. Order of the columns persisted
12+
13+
#### Filters
14+
- Global filters
15+
![GlobalFilter.gif](resources/GlobalFilter.gif)
16+
17+
#### Event Driven
18+
- 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.
19+
![GroupFolderColumn.gif](resources/GroupFolderColumn.gif)
20+
File renamed without changes.

src/components/Cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Cell } from "react-table";
66
import { MarkdownRenderer } from "obsidian";
77
import NoteInfo from "services/NoteInfo";
88
import PopperSelectPortal from "components/portals/PopperSelectPortal";
9-
import { CellContext } from "./contexts/CellContext";
9+
import { CellContext } from "components/contexts/CellContext";
1010

1111
/**
1212
* Obtain the path of the file inside cellValue

0 commit comments

Comments
 (0)