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

Commit 9cbefe9

Browse files
committed
hothix of saving
1 parent 17a57f9 commit 9cbefe9

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

docs/docs/changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# 2.5.1
2+
- hotfix of persist saving introduced in 2.5.0 with the change of config centinel
13
# 2.5.0
24
*Published on 2022/09/11*
35
### Shiny new things
46
- Added support for mobile devices (iOS and Android) and tablets (iPad and Android tablets) [ISSUE#27](https://github.com/RafaelGB/obsidian-db-folder/issues/27)
57
- CSV import option included on menu [ISSUE#129](https://github.com/RafaelGB/obsidian-db-folder/issues/129)
6-
- Global search not admit regex [ISSUE#169](https://github.com/RafaelGB/obsidian-db-folder/issues/169)
8+
- Global search now admit regex [ISSUE#169](https://github.com/RafaelGB/obsidian-db-folder/issues/169)
79
- New metadata options from dataview: Inlinks and Outlinks [ISSUE#170](https://github.com/RafaelGB/obsidian-db-folder/issues/170)
810
### Improved
911
- Button to clear date and datetime fields [ISSUE#160](https://github.com/RafaelGB/obsidian-db-folder/issues/160)

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.5.0",
4+
"version": "2.5.1",
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.5.0",
4+
"version": "2.5.1",
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.5.0",
3+
"version": "2.5.1",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/helpers/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export const DEFAULT_SETTINGS: DatabaseSettings = {
358358
******************************************************************************/
359359
export const DATABASE_CONFIG = Object.freeze({
360360
YAML: /%%\sdbfolder:yaml\s+([\w\W]+?)\s+%%/,
361-
REPLACE_YAML_REGEX: new RegExp(`<%%\\s+([\\w\\W]+?)\\s+%%>`, "g"),
361+
REPLACE_YAML_REGEX: new RegExp(`%%\\sdbfolder:yaml\\s+([\\w\\W]+?)\\s+%%`, "g"),
362362
START_CENTINEL: '%% dbfolder:yaml',
363363
END_CENTINEL: '%%',
364364
START_CENTINEL_LEGACY: '<%%',

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { DatabaseSettings, LocalSettings } from 'cdm/SettingsModel';
2828
import StateManager from 'StateManager';
2929
import { around } from 'monkey-around';
3030
import { LOGGER } from 'services/Logger';
31-
import { DatabaseCore, DB_ICONS, DEFAULT_SETTINGS, YAML_INDENT } from 'helpers/Constants';
31+
import { DatabaseCore, DATABASE_CONFIG, DB_ICONS, DEFAULT_SETTINGS, YAML_INDENT } from 'helpers/Constants';
3232
import { PreviewDatabaseModeService } from 'services/MarkdownPostProcessorService';
3333
import { unmountComponentAtNode } from 'react-dom';
3434
import { isDatabaseNote } from 'helpers/VaultManagement';
@@ -319,7 +319,7 @@ export default class DBFolderPlugin extends Plugin {
319319
const defaultValue = local_settings[key as keyof LocalSettings] !== undefined ? local_settings[key as keyof LocalSettings] : value;
320320
defaultConfig.push(`${YAML_INDENT}${key}: ${defaultValue}`);
321321
});
322-
defaultConfig.push("%%>");
322+
defaultConfig.push(DATABASE_CONFIG.END_CENTINEL);
323323
return defaultConfig.join('\n');
324324
}
325325

0 commit comments

Comments
 (0)