diff --git a/manifest.json b/manifest.json index 0630fd9..4fba5a2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-org-mode", "name": "Org Mode", - "version": "1.0.1", + "version": "1.1.0", "minAppVersion": "0.10.12", "description": "Add Org Mode support to Obsidian.", "author": "ryanpcmcquen", diff --git a/package.json b/package.json index 79296bb..d3fdddf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-org-mode", - "version": "1.0.1", + "version": "1.1.0", "description": "Add Org Mode support to Obsidian.", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 9ba03df..b0654a4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,6 +38,16 @@ class OrgView extends TextFileView { // @ts-ignore this.codeMirror = CodeMirror(this.extContentEl, { theme: 'obsidian', + + // I am not sure autofocus is necessary ... + autofocus: true, + foldGutter: { + minFoldSize: 1, + }, + foldOptions: { + widget: ' ...', + }, + gutters: ['CodeMirror-foldgutter'], }); this.codeMirror.on('changes', this.changed); diff --git a/versions.json b/versions.json index 346725b..1552b6b 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ { + "1.1.0": "0.10.12", "1.0.1": "0.10.12", "1.0.0": "0.10.12" }