Skip to content

Commit

Permalink
update extensions and add new CSS snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata committed Oct 30, 2023
1 parent a7c96c7 commit f2996a6
Show file tree
Hide file tree
Showing 34 changed files with 1,010 additions and 337 deletions.
13 changes: 9 additions & 4 deletions .obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"accentColor": "#92611c",
"accentColor": "#8ab702",
"cssTheme": "Minimal",
"theme": "system",
"theme": "obsidian",
"enabledCssSnippets": [
"frontmatter-tweaks",
"typography-fixes",
"[editor] Normalize Links",
"[editor] Typography fixes",
"[plugin] MySnippets tweaks"
"[plugin] MySnippets tweaks",
"[editor] Table tweaks",
"[ui] Compact Tab Header",
"[ui] Default Style Settings",
"[ui] Statusbar tweaks",
"[editor] Frontmatter tweaks",
"[editor] Typography fixes"
]
}
4 changes: 2 additions & 2 deletions .obsidian/core-plugins-migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"backlink": true,
"canvas": false,
"outgoing-link": false,
"tag-pane": false,
"tag-pane": true,
"page-preview": true,
"daily-notes": false,
"daily-notes": true,
"templates": true,
"note-composer": false,
"command-palette": true,
Expand Down
2 changes: 2 additions & 0 deletions .obsidian/core-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"global-search",
"switcher",
"backlink",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"command-palette",
"editor-status",
Expand Down
4 changes: 4 additions & 0 deletions .obsidian/daily-notes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"folder": "journals",
"template": "templates/daily-journal"
}
18 changes: 9 additions & 9 deletions .obsidian/plugins/home-tab/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@
"unresolvedLinks": false,
"recentFilesStore": [
{
"filepath": "markdown-demo.md",
"timestamp": 1695747111237
"filepath": "README.md",
"timestamp": 1698675305251
},
{
"filepath": "README.md",
"timestamp": 1695746956264
"filepath": "markdown-demo.md",
"timestamp": 1698675303655
},
{
"filepath": "assets/cookie-enjoyer.png",
"timestamp": 1694936322649
"filepath": "templates/daily-journal.md",
"timestamp": 1698674900629
},
{
"filepath": "journals/first-journal.md",
"timestamp": 1694936312990
"timestamp": 1698674679557
},
{
"filepath": "templates/daily-journal.md",
"timestamp": 1694936311951
"filepath": "assets/cookie-enjoyer.png",
"timestamp": 1694936322649
}
],
"starredFileStore": [],
Expand Down
77 changes: 77 additions & 0 deletions .obsidian/plugins/mononote/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/

var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/main.ts
var main_exports = {};
__export(main_exports, {
default: () => Mononote
});
module.exports = __toCommonJS(main_exports);
var import_obsidian = require("obsidian");

// src/plugin-info.ts
var PLUGIN_INFO = {
"pluginVersion": "1.0.0",
"pluginReleasedAt": "2023-08-22T12:06:35+0200"
};

// src/main.ts
var Mononote = class extends import_obsidian.Plugin {
constructor() {
super(...arguments);
this.onFileOpen = async (file) => {
var _a;
const { workspace } = this.app;
if (!file) {
return;
}
let dupeLeaves = workspace.getLeavesOfType("markdown").filter((leaf) => leaf.view.getState().file === file.path);
if (dupeLeaves.length < 2) {
return;
}
const activeLeaf = (_a = workspace.getActiveViewOfType(import_obsidian.MarkdownView)) == null ? void 0 : _a.leaf;
if (!activeLeaf) {
return;
}
const leafWithHistory = activeLeaf;
if (leafWithHistory.history.backHistory.length) {
await leafWithHistory.history.back();
} else {
activeLeaf.detach();
}
const firstDuplicateLeaf = dupeLeaves.find((leaf) => leaf != activeLeaf);
workspace.setActiveLeaf(firstDuplicateLeaf, { focus: true });
};
}
async onload() {
this.app.workspace.onLayoutReady(() => {
this.registerEvent(
this.app.workspace.on("file-open", this.onFileOpen)
);
console.log(`Plugin Mononote v${PLUGIN_INFO.pluginVersion} initialized`);
});
}
onunload() {
console.log(`Plugin Mononote v${PLUGIN_INFO.pluginVersion} unloaded`);
}
};
10 changes: 10 additions & 0 deletions .obsidian/plugins/mononote/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "mononote",
"name": "Mononote",
"version": "1.0.0",
"minAppVersion": "1.3.0",
"description": "Ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.",
"author": "Carlo Zottmann",
"authorUrl": "https://github.com/czottmann",
"isDesktopOnly": false
}
7 changes: 7 additions & 0 deletions .obsidian/plugins/mysnippets-plugin/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"aestheticStyle": false,
"snippetViewPosition": "left",
"openSnippetFile": true,
"stylingTemplate": "/* What does this snippet do? Expand below. */\n",
"snippetEnabledStatus": false
}
437 changes: 235 additions & 202 deletions .obsidian/plugins/obsidian-linter/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .obsidian/plugins/obsidian-linter/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "obsidian-linter",
"name": "Linter",
"version": "1.20.0",
"minAppVersion": "0.15.6",
"version": "1.20.1",
"minAppVersion": "1.4.16",
"description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.",
"author": "Victor Tao",
"authorUrl": "https://github.com/platers",
Expand Down
2 changes: 1 addition & 1 deletion .obsidian/plugins/obsidian-minimal-settings/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"theme": "moonstone",
"lightStyle": "minimal-light",
"darkStyle": "minimal-dark",
"lightScheme": "minimal-default-light",
"lightScheme": "minimal-ayu-light",
"darkScheme": "minimal-ayu-dark",
"editorFont": "",
"lineHeight": 1.5,
Expand Down
Loading

0 comments on commit f2996a6

Please sign in to comment.