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

Commit dc50271

Browse files
authored
Merge pull request #733 from RafaelGB/imed-docu-branch
doc update 3.0.0 -> 3.2.0
2 parents 5bcbe7e + 3066d09 commit dc50271

File tree

6 files changed

+45
-12
lines changed

6 files changed

+45
-12
lines changed

docs/docs/features/Displaying data.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
## Footer
22

3-
You can enable a footer from the database or plugin global setting under `Rows section`. For now, it only works with the number type column and only displays the sum of the values.
3+
You can enable a footer from the database or plugin global setting under `Rows section`. You can choose between a number of options :
4+
5+
- Percentage of empty cells
6+
- Percentage of cells with a value
7+
- Count of empty cells
8+
- Count of cells with a value
9+
- Count of unique values
10+
- Formula
11+
- Sum of number columns
412

513
## Filtering
614

@@ -10,19 +18,20 @@ After opening the filter modal via the obsidian bar button or the command `DB Fo
1018

1119
You can create a `group filter` within a `group filter` for more granular filtering, and you can delete or rename them. Keep in mind that deleting a `parent group filter` will delete all the `children group filters` within it.
1220

13-
Each `group filter` will have a dedicated **named button** on the database top bar to quickly enable/disable it. It's important to note that the state of all the filters is determined by another button. So in this case, you have to enable both the **named button** and the **filter button** for `group filters` to work. You can also toggle the filter state by using the command `DB Folder: Toggle filters`.
21+
Each `group filter` will have a dedicated **named colored button** on the database top bar to quickly enable/disable it. It's important to note that the state of all the filters is determined by another button. So in this case, you have to enable both the **named button** and the **filter button** for `group filters` to work. You can also toggle the filter state by using the command `DB Folder: Toggle filters`.
1422

1523
You can also filter each column separately via the search filters which can be enabled by the icon on the top left.
1624

1725
> The database filters hold priority over the dataview query source filters.
26+
> You can make search/filter bar always visible in the plugin global settings under `Helpers/Commands related to the table`
1827
1928
<video width="670" controls>
2029
<source src="https://user-images.githubusercontent.com/38974541/197636117-9268cbbe-fcb4-464e-9840-4c966e503589.mov" type="video/mp4">
2130
</video>
2231

2332
## Refresh Database
2433

25-
There is no actual refresh button, but you can use the `activate/desactive filter` button to refresh the database.
34+
The databaes should refresh after every change, but you can use the `activate/desactive filter` button if you want to manually refresh it. On the other hand, you can disable auto-refreshing when an external change is detected in the plugin global settings.
2635

2736
<video width="670" controls>
2837
<source src="https://user-images.githubusercontent.com/38974541/197636392-0c1c17fa-8f21-47dc-8c1f-887ca96d4bab.mov" type="video/mp4">

docs/docs/features/Formulas.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ The root object `db` has the following functions:
3333
- `dataview`: expose the dataview API. (see [Dataview API](https://github.com/blacksmithgu/obsidian-dataview/blob/master/src/api/plugin-api.ts))
3434
- `rollup`: expose the rollup functions of the dbfolder plugin. (see [Rollup documentation](/obsidian-db-folder/features/Relations/#rollups))
3535
- Internal functions of the plugin (see [API DatabaseFnType](https://github.com/RafaelGB/obsidian-db-folder/blob/master/src/cdm/ModulesFnModel.ts))
36+
3637
#### Javascript file structure
38+
3739
To add a javascript file to the `js` folder, it must be a `.js` file and have the following structure:
3840

3941
```javascript

docs/docs/features/Properties.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Types
22

3-
- **Text**: this property support markdown, internal links, external links, and tags. If you're using links you can enable alias in the column settings or in the plugin global settings ;
3+
- **Text**: this property support markdown, internal links, external links, tags and lists in this format `[a,b,c,1,2,3]`. If you're using links you can enable alias in the column settings or in the plugin global settings. You can also resize the cell while editing to display more text. ;
44
- **Number**: this property only accepts numbers ;
55
- **Checkbox**: this property is represented by `true/false` in the underlying markdown ;
66
- **Date**: this property accepts dates. The default format is `yyyy-MM-dd`, but it can be changed in the plugin or database settings under `editing engine section > Date format` ;
@@ -9,8 +9,8 @@
99
- **Tags**: similar to the previous property, but instead of only selecting one option, you can select multiples options per cell ;
1010
- **Formulas**: property that accepts js code to return dynamic values in function of your code. See the [Formulas](/obsidian-db-folder/features/Formulas/) section for more details.
1111
- **Image**: you can embed images in the `text` property in this format `![[image]]`. Make sure to enable `media links` in the column settings and adjust the dimensions too ;
12-
- **Created time**: this column can be added only once from the database settings and will display the created time of the row ;
13-
- **Modified time**: this column can be added only once from the database settings and will display the last modified time of the row ;
12+
- **Created time**: this column can be added only once from the database settings and will display the created time of the row. The date format can be changed in the global settings under `Configuration about editing engine > Metadata datetime format` ;
13+
- **Modified time**: this column can be added only once from the database settings and will display the last modified time of the row. The date format can be changed in the global settings under `Configuration about editing engine > Metadata datetime format` ;
1414
- **Tasks**: this column can be added only once from the database settings and will display the task of the given file. You can also choose to hide the completed tasks in the column settings ;
1515
- **Inlinks**: this column can be added only once from the database settings and will display the files that have links to the select file ;
1616
- **Outlinks**: this column can be added only once from the database settings and will display the files that have links from the select file ;
@@ -30,7 +30,7 @@ Where you create a column, the `column name` (name displayed in the database) is
3030

3131
The plugin works with YAML and dataview inline fields, but looks for metadata in YAML by default. To make it work with inline fields, you have two options :
3232

33-
- You can toggle `enable inline field as default` in database or plugin global settings, and you can choose between putting the inline fields at the top or the bottom of the file ;
33+
- You can toggle `enable inline field as default` in database or plugin global settings, and you can choose between putting the inline fields at the top, the bottom or after the last field ;
3434
- Or you can change it in the column's settings to use it with one property only. This change will not convert the underlying YAML to an inline format until you edit one of the cells in the column.
3535

3636
If there is no metadata in your notes, it will be created when you fill the corresponding cell in the database.
@@ -58,7 +58,7 @@ If you want to add existing nested metadata, you'll have to abide by the format
5858

5959
## Appearance
6060

61-
You can enable text wrapping and you can change the text alignment between `right-aligned`, `centered`, `left-aligned`, and `justified` from the column settings of the **text**, **number**, and **formula** properties.
61+
You can enable text wrapping and you can change the text's horizontal or vertical alignment from the column settings.
6262

6363
<video width="670" controls>
6464
<source src="https://user-images.githubusercontent.com/38974541/197635327-31c273a1-6cb5-4283-a9a5-dddbdcc6b831.mov" type="video/mp4">

docs/docs/features/Relations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Relations are a very important part of any database. They allow you to model com
66

77
### How to Use
88

9-
To create a relation, you need to create a column with the `Relation` type. You can then select the table you want to relate to. You can also select the column you want to use as the relation key as `Rollup`. This is the column that will be used to match the rows. For example, if you have a `User` table with a `Name` column, and a `Post` table with an `Author` column, you can use the `Name` column as the relation key.
9+
To create a relation, you need to create a column with the `Relation` type. You can then select the table you want to relate to (or select same database to relate to itself). You can also select the column you want to use as the relation key as `Rollup`. This is the column that will be used to match the rows. For example, if you have a `User` table with a `Name` column, and a `Post` table with an `Author` column, you can use the `Name` column as the relation key.
1010

1111
## Rollups
1212

docs/docs/features/Rows.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Row Number
22

3-
To help with displaying a lot of data, by default the database displays only 10 rows and allows changing the pages using the numbers displayed in the bottom right or by using the commands `DB Folder: Go to previous/next page`. You can change the number of rows displayed per page in the database settings under `Rows section`.
3+
To help with displaying a lot of data, by default the database displays only 10 rows and allows changing the pages using the numbers displayed in the bottom right or by using the commands `DB Folder: Go to previous/next page`. You can change the number of rows displayed per page in the database settings under `Rows section`, or you can change the default number of rows when creating a database in the global plugin settings.
44

55
<video width="670" controls>
66
<source src="https://user-images.githubusercontent.com/38974541/197636349-f473a874-4c6a-434e-8b90-56aa05f368f6.mov" type="video/mp4">
@@ -16,4 +16,26 @@ In the database settings under `cell size`, you can change the row height betwe
1616

1717
<video width="670" controls>
1818
<source src="https://user-images.githubusercontent.com/38974541/197636446-9f17f8a7-baa5-4b7e-b910-557b0c5a478c.mov" type="video/mp4">
19-
</video>
19+
</video>
20+
21+
## Row Font Size
22+
23+
You can select the font size of the cells in the database settings, you can set a default font size in the plugin's global settings for all newly created databases.
24+
25+
## Row Navigation
26+
27+
You can navigate the cells by using `Tab` or the arrow keys. You can also edit each one by using the `Enter` key.
28+
29+
## Display Rows From Top to Bottom
30+
31+
If you don't use pagination, you can enable a full pane display of the rows by creating and enabling this CSS snippet. Keep in mind, though, that when enabling the search/filter bar, the last row will not be accessible.
32+
33+
```css
34+
@media {
35+
.database-plugin__scroll-container {
36+
will-change: transform;
37+
width: 100%;
38+
height: 100%;
39+
}
40+
}
41+
```

docs/docs/features/Sources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Just like dataview, you can use multiple sources for your data :
44

55
1. **Current_folder**: this will match all files within the selected folder when creating the database. If you want to change the folder, just move the database to another folder ;
66
2. **Current folder without subfolders**: Just like the previous source, but doesn't recognize notes under subfolders ;
7-
3. **Tag**: this will match all files with the given tag ;
7+
3. **Tag(s)**: this will match all files with the given tag(s) ;
88
4. **Incoming_link**: this will match all files that have links to the select file ;
99
5. **Outgoing_link**: this will match all files that have links from the select file ;
1010
6. **Dataview**: you can put your dataview query (DQL) without the first line `TABLE columns` as the plugin will autocomplete this part. For example : `FROM "folder" WHERE column = "something" SORT column ASC`. Use this source if you want to combine multiple tags, links, or folders.

0 commit comments

Comments
 (0)