Skip to content

Commit

Permalink
hothix of saving
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Sep 12, 2022
1 parent 17a57f9 commit 9cbefe9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# 2.5.1
- hotfix of persist saving introduced in 2.5.0 with the change of config centinel
# 2.5.0
*Published on 2022/09/11*
### Shiny new things
- 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)
- CSV import option included on menu [ISSUE#129](https://github.com/RafaelGB/obsidian-db-folder/issues/129)
- Global search not admit regex [ISSUE#169](https://github.com/RafaelGB/obsidian-db-folder/issues/169)
- Global search now admit regex [ISSUE#169](https://github.com/RafaelGB/obsidian-db-folder/issues/169)
- New metadata options from dataview: Inlinks and Outlinks [ISSUE#170](https://github.com/RafaelGB/obsidian-db-folder/issues/170)
### Improved
- Button to clear date and datetime fields [ISSUE#160](https://github.com/RafaelGB/obsidian-db-folder/issues/160)
Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.5.0",
"version": "2.5.1",
"minAppVersion": "0.15.9",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.5.0",
"version": "2.5.1",
"minAppVersion": "0.15.9",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-dbfolder",
"version": "2.5.0",
"version": "2.5.1",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export const DEFAULT_SETTINGS: DatabaseSettings = {
******************************************************************************/
export const DATABASE_CONFIG = Object.freeze({
YAML: /%%\sdbfolder:yaml\s+([\w\W]+?)\s+%%/,
REPLACE_YAML_REGEX: new RegExp(`<%%\\s+([\\w\\W]+?)\\s+%%>`, "g"),
REPLACE_YAML_REGEX: new RegExp(`%%\\sdbfolder:yaml\\s+([\\w\\W]+?)\\s+%%`, "g"),
START_CENTINEL: '%% dbfolder:yaml',
END_CENTINEL: '%%',
START_CENTINEL_LEGACY: '<%%',
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { DatabaseSettings, LocalSettings } from 'cdm/SettingsModel';
import StateManager from 'StateManager';
import { around } from 'monkey-around';
import { LOGGER } from 'services/Logger';
import { DatabaseCore, DB_ICONS, DEFAULT_SETTINGS, YAML_INDENT } from 'helpers/Constants';
import { DatabaseCore, DATABASE_CONFIG, DB_ICONS, DEFAULT_SETTINGS, YAML_INDENT } from 'helpers/Constants';
import { PreviewDatabaseModeService } from 'services/MarkdownPostProcessorService';
import { unmountComponentAtNode } from 'react-dom';
import { isDatabaseNote } from 'helpers/VaultManagement';
Expand Down Expand Up @@ -319,7 +319,7 @@ export default class DBFolderPlugin extends Plugin {
const defaultValue = local_settings[key as keyof LocalSettings] !== undefined ? local_settings[key as keyof LocalSettings] : value;
defaultConfig.push(`${YAML_INDENT}${key}: ${defaultValue}`);
});
defaultConfig.push("%%>");
defaultConfig.push(DATABASE_CONFIG.END_CENTINEL);
return defaultConfig.join('\n');
}

Expand Down

0 comments on commit 9cbefe9

Please sign in to comment.