mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-01-14 22:18:43 +00:00
Merge commit '4decba7b95f33fe058e8d3fa7c19256df7938e96' into jpg
This commit is contained in:
commit
f96c408d02
2
content/.gitignore
vendored
Normal file
2
content/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.obsidian/workspace.json
|
||||||
|
Do-Not-Commit
|
4
content/.obsidian/app.json
vendored
Normal file
4
content/.obsidian/app.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"alwaysUpdateLinks": true,
|
||||||
|
"showInlineTitle": false
|
||||||
|
}
|
10
content/.obsidian/appearance.json
vendored
Normal file
10
content/.obsidian/appearance.json
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"accentColor": "",
|
||||||
|
"theme": "moonstone",
|
||||||
|
"enabledCssSnippets": [
|
||||||
|
"usage",
|
||||||
|
"spacing"
|
||||||
|
],
|
||||||
|
"cssTheme": "AnuPpuccin",
|
||||||
|
"showViewHeader": true
|
||||||
|
}
|
6
content/.obsidian/community-plugins.json
vendored
Normal file
6
content/.obsidian/community-plugins.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[
|
||||||
|
"obsidian-markdown-furigana",
|
||||||
|
"obsidian-style-settings",
|
||||||
|
"obsidian42-brat",
|
||||||
|
"obsidian-opener"
|
||||||
|
]
|
30
content/.obsidian/core-plugins-migration.json
vendored
Normal file
30
content/.obsidian/core-plugins-migration.json
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"file-explorer": true,
|
||||||
|
"global-search": true,
|
||||||
|
"switcher": true,
|
||||||
|
"graph": true,
|
||||||
|
"backlink": true,
|
||||||
|
"canvas": true,
|
||||||
|
"outgoing-link": true,
|
||||||
|
"tag-pane": true,
|
||||||
|
"properties": false,
|
||||||
|
"page-preview": true,
|
||||||
|
"daily-notes": true,
|
||||||
|
"templates": true,
|
||||||
|
"note-composer": true,
|
||||||
|
"command-palette": true,
|
||||||
|
"slash-command": false,
|
||||||
|
"editor-status": true,
|
||||||
|
"bookmarks": true,
|
||||||
|
"markdown-importer": false,
|
||||||
|
"zk-prefixer": false,
|
||||||
|
"random-note": false,
|
||||||
|
"outline": true,
|
||||||
|
"word-count": true,
|
||||||
|
"slides": false,
|
||||||
|
"audio-recorder": false,
|
||||||
|
"workspaces": false,
|
||||||
|
"file-recovery": true,
|
||||||
|
"publish": false,
|
||||||
|
"sync": false
|
||||||
|
}
|
20
content/.obsidian/core-plugins.json
vendored
Normal file
20
content/.obsidian/core-plugins.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[
|
||||||
|
"file-explorer",
|
||||||
|
"global-search",
|
||||||
|
"switcher",
|
||||||
|
"graph",
|
||||||
|
"backlink",
|
||||||
|
"canvas",
|
||||||
|
"outgoing-link",
|
||||||
|
"tag-pane",
|
||||||
|
"page-preview",
|
||||||
|
"daily-notes",
|
||||||
|
"templates",
|
||||||
|
"note-composer",
|
||||||
|
"command-palette",
|
||||||
|
"editor-status",
|
||||||
|
"bookmarks",
|
||||||
|
"outline",
|
||||||
|
"word-count",
|
||||||
|
"file-recovery"
|
||||||
|
]
|
22
content/.obsidian/graph.json
vendored
Normal file
22
content/.obsidian/graph.json
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"collapse-filter": true,
|
||||||
|
"search": "",
|
||||||
|
"showTags": false,
|
||||||
|
"showAttachments": false,
|
||||||
|
"hideUnresolved": false,
|
||||||
|
"showOrphans": true,
|
||||||
|
"collapse-color-groups": true,
|
||||||
|
"colorGroups": [],
|
||||||
|
"collapse-display": true,
|
||||||
|
"showArrow": false,
|
||||||
|
"textFadeMultiplier": 0,
|
||||||
|
"nodeSizeMultiplier": 1,
|
||||||
|
"lineSizeMultiplier": 1,
|
||||||
|
"collapse-forces": true,
|
||||||
|
"centerStrength": 0.518713248970312,
|
||||||
|
"repelStrength": 10,
|
||||||
|
"linkStrength": 1,
|
||||||
|
"linkDistance": 250,
|
||||||
|
"scale": 1,
|
||||||
|
"close": false
|
||||||
|
}
|
169
content/.obsidian/plugins/obsidian-markdown-furigana/main.js
vendored
Normal file
169
content/.obsidian/plugins/obsidian-markdown-furigana/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
content/.obsidian/plugins/obsidian-markdown-furigana/manifest.json
vendored
Normal file
10
content/.obsidian/plugins/obsidian-markdown-furigana/manifest.json
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "obsidian-markdown-furigana",
|
||||||
|
"name": "Markdown Furigana",
|
||||||
|
"version": "1.3.0",
|
||||||
|
"minAppVersion": "0.9.12",
|
||||||
|
"description": "Simple Markdown to Furigana Rendering Plugin for Obsidian.",
|
||||||
|
"author": "Steven Kraft",
|
||||||
|
"authorUrl": "https://github.com/steven-kraft/obsidian-markdown-furigana",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
377
content/.obsidian/plugins/obsidian-opener/main.js
vendored
Normal file
377
content/.obsidian/plugins/obsidian-opener/main.js
vendored
Normal file
@ -0,0 +1,377 @@
|
|||||||
|
/*
|
||||||
|
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);
|
||||||
|
|
||||||
|
// main.ts
|
||||||
|
var main_exports = {};
|
||||||
|
__export(main_exports, {
|
||||||
|
default: () => Opener
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(main_exports);
|
||||||
|
var import_obsidian2 = require("obsidian");
|
||||||
|
|
||||||
|
// node_modules/monkey-around/mjs/index.js
|
||||||
|
function around(obj, factories) {
|
||||||
|
const removers = Object.keys(factories).map((key) => around1(obj, key, factories[key]));
|
||||||
|
return removers.length === 1 ? removers[0] : function() {
|
||||||
|
removers.forEach((r) => r());
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function around1(obj, method, createWrapper) {
|
||||||
|
const original = obj[method], hadOwn = obj.hasOwnProperty(method);
|
||||||
|
let current = createWrapper(original);
|
||||||
|
if (original)
|
||||||
|
Object.setPrototypeOf(current, original);
|
||||||
|
Object.setPrototypeOf(wrapper, current);
|
||||||
|
obj[method] = wrapper;
|
||||||
|
return remove;
|
||||||
|
function wrapper(...args) {
|
||||||
|
if (current === original && obj[method] === wrapper)
|
||||||
|
remove();
|
||||||
|
return current.apply(this, args);
|
||||||
|
}
|
||||||
|
function remove() {
|
||||||
|
if (obj[method] === wrapper) {
|
||||||
|
if (hadOwn)
|
||||||
|
obj[method] = original;
|
||||||
|
else
|
||||||
|
delete obj[method];
|
||||||
|
}
|
||||||
|
if (current === original)
|
||||||
|
return;
|
||||||
|
current = original;
|
||||||
|
Object.setPrototypeOf(wrapper, original || Function);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// settings.ts
|
||||||
|
var import_obsidian = require("obsidian");
|
||||||
|
var OpenerSettingTab = class extends import_obsidian.PluginSettingTab {
|
||||||
|
display() {
|
||||||
|
const { containerEl } = this;
|
||||||
|
const plugin = this.plugin;
|
||||||
|
containerEl.empty();
|
||||||
|
new import_obsidian.Setting(containerEl).setName("New Tab Default").setDesc(
|
||||||
|
"Enable to open new files in a new tab (or existing tab, if it was previously opened). Disable for default Obsidian behavior."
|
||||||
|
).addToggle(
|
||||||
|
(toggle) => toggle.setValue(plugin.settings.newTab).onChange((value) => {
|
||||||
|
plugin.settings.newTab = value;
|
||||||
|
plugin.saveSettings();
|
||||||
|
})
|
||||||
|
);
|
||||||
|
new import_obsidian.Setting(containerEl).setName("PDF Default App").setDesc(
|
||||||
|
"Enable to open pdfs with system viewer app. Disable for default behavior (open pdfs in Obsidian)."
|
||||||
|
).addToggle(
|
||||||
|
(toggle) => toggle.setValue(plugin.settings.PDFApp).onChange((value) => {
|
||||||
|
plugin.settings.PDFApp = value;
|
||||||
|
plugin.saveSettings();
|
||||||
|
})
|
||||||
|
);
|
||||||
|
new import_obsidian.Setting(containerEl).setName("Default app only when Ctrl/Cmd-Key is held").setDesc(
|
||||||
|
"Open in default app only when Ctrl/Cmd-Key is held. Disable to always\u201A open with system viewer."
|
||||||
|
).addToggle(
|
||||||
|
(toggle) => toggle.setValue(plugin.settings.extOnlyWhenMetaKey).onChange((value) => {
|
||||||
|
plugin.settings.extOnlyWhenMetaKey = value;
|
||||||
|
plugin.saveSettings();
|
||||||
|
})
|
||||||
|
);
|
||||||
|
new import_obsidian.Setting(containerEl).setName("Open everything outside of Obsidian").setDesc(
|
||||||
|
"Enable to open all obsidian supported extensions with system viewer instead. Disable for default behavior (open within Obsidian). Defaults supported extensions are 'png', 'webp', 'jpg', 'jpeg', 'gif', 'bmp', 'svg', 'mp3', 'webm', 'wav', 'm4a', 'ogg','3gp', 'flac', 'mp4', 'ogv', 'mov', 'mkv'."
|
||||||
|
).addToggle(
|
||||||
|
(toggle) => toggle.setValue(plugin.settings.allExt).onChange((value) => {
|
||||||
|
plugin.settings.allExt = value;
|
||||||
|
plugin.saveSettings();
|
||||||
|
})
|
||||||
|
);
|
||||||
|
new import_obsidian.Setting(containerEl).setName("Open Outside Obsidian: Manual List").setDesc("This shouldn't be necessary, but you can manually enable custom extensions here.").addToggle(
|
||||||
|
(toggle) => toggle.setValue(plugin.settings.custExt).onChange((value) => {
|
||||||
|
plugin.settings.custExt = value;
|
||||||
|
plugin.saveSettings();
|
||||||
|
this.display();
|
||||||
|
})
|
||||||
|
);
|
||||||
|
if (plugin.settings.custExt) {
|
||||||
|
new import_obsidian.Setting(containerEl).setName("Manual List").setDesc("Enter extension names (without the dot, ie, just docx separated by newlines).").addTextArea((textArea) => {
|
||||||
|
textArea.inputEl.rows = 5;
|
||||||
|
textArea.setValue(plugin.settings.custExtList.join("\n")).onChange(async (value) => {
|
||||||
|
plugin.settings.custExtList = value.split("\n");
|
||||||
|
plugin.saveSettings();
|
||||||
|
});
|
||||||
|
}).settingEl.style.borderTop = "none";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// constants.ts
|
||||||
|
var DEFAULT_SETTINGS = {
|
||||||
|
newTab: true,
|
||||||
|
PDFApp: true,
|
||||||
|
extOnlyWhenMetaKey: true,
|
||||||
|
allExt: false,
|
||||||
|
custExt: false,
|
||||||
|
custExtList: []
|
||||||
|
};
|
||||||
|
|
||||||
|
// main.ts
|
||||||
|
var Opener = class extends import_obsidian2.Plugin {
|
||||||
|
constructor() {
|
||||||
|
super(...arguments);
|
||||||
|
this.isMetaKeyHeld = null;
|
||||||
|
this.sameTabOnce = false;
|
||||||
|
// Meta key listeners
|
||||||
|
// arrow syntax to preserve `this` context
|
||||||
|
this.keyDownHandler = (e) => {
|
||||||
|
if (e.key === "Meta" || e.key === "Control") {
|
||||||
|
this.isMetaKeyHeld = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.keyUpHandler = (e) => {
|
||||||
|
if (e.key === "Meta" || e.key === "Control") {
|
||||||
|
this.isMetaKeyHeld = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Mouse handler is needed because the key handler will not fire if the app is out of focus
|
||||||
|
this.mouseDownHandler = (e) => {
|
||||||
|
if (e.metaKey || e.ctrlKey) {
|
||||||
|
this.isMetaKeyHeld = true;
|
||||||
|
} else {
|
||||||
|
this.isMetaKeyHeld = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
async onload() {
|
||||||
|
console.log("loading " + this.manifest.name + " plugin");
|
||||||
|
await this.loadSettings();
|
||||||
|
this.addSettingTab(new OpenerSettingTab(this.app, this));
|
||||||
|
this.updateMetaKeyListeners();
|
||||||
|
this.monkeyPatchOpenFile();
|
||||||
|
this.addCommands();
|
||||||
|
this.addMenuItem();
|
||||||
|
}
|
||||||
|
onunload() {
|
||||||
|
this.uninstallMonkeyPatchOpenFile && this.uninstallMonkeyPatchOpenFile();
|
||||||
|
this.removeMetaKeyListeners();
|
||||||
|
console.log("unloading " + this.manifest.name + " plugin");
|
||||||
|
}
|
||||||
|
async loadSettings() {
|
||||||
|
const data = await this.loadData();
|
||||||
|
this.settings = Object.assign({}, DEFAULT_SETTINGS, data);
|
||||||
|
}
|
||||||
|
async saveSettings() {
|
||||||
|
await this.saveData(this.settings);
|
||||||
|
this.updateMetaKeyListeners();
|
||||||
|
}
|
||||||
|
addCommands() {
|
||||||
|
this.addCommand({
|
||||||
|
id: "same-tab-once",
|
||||||
|
name: "Open next file in same tab (Obsidian default behavior)",
|
||||||
|
checkCallback: (checking) => {
|
||||||
|
if (checking) {
|
||||||
|
return this.settings.newTab;
|
||||||
|
}
|
||||||
|
this.sameTabOnce = true;
|
||||||
|
new import_obsidian2.Notice("Next file will open in same tab");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.addCommand({
|
||||||
|
id: "enable-new-tab",
|
||||||
|
name: "Enable new tab for all files",
|
||||||
|
checkCallback: (checking) => {
|
||||||
|
if (checking) {
|
||||||
|
return !this.settings.newTab;
|
||||||
|
}
|
||||||
|
this.settings.newTab = true;
|
||||||
|
this.saveSettings();
|
||||||
|
new import_obsidian2.Notice("Opener: New tab for all files enabled");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.addCommand({
|
||||||
|
id: "disable-new-tab",
|
||||||
|
name: "Disable new tab for all files",
|
||||||
|
checkCallback: (checking) => {
|
||||||
|
if (checking) {
|
||||||
|
return this.settings.newTab;
|
||||||
|
}
|
||||||
|
this.settings.newTab = false;
|
||||||
|
this.saveSettings();
|
||||||
|
new import_obsidian2.Notice("Opener: New tab for all files disabled");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.addCommand({
|
||||||
|
id: "enable-pdf",
|
||||||
|
name: "Enable open all PDFs with default app",
|
||||||
|
checkCallback: (checking) => {
|
||||||
|
if (checking) {
|
||||||
|
return !this.settings.PDFApp;
|
||||||
|
}
|
||||||
|
this.settings.PDFApp = true;
|
||||||
|
this.saveSettings();
|
||||||
|
new import_obsidian2.Notice("Opener: Open all PDFs with default app enabled");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.addCommand({
|
||||||
|
id: "disable-pdf",
|
||||||
|
name: "Disable open all PDFs with default app",
|
||||||
|
checkCallback: (checking) => {
|
||||||
|
if (checking) {
|
||||||
|
return this.settings.PDFApp;
|
||||||
|
}
|
||||||
|
this.settings.PDFApp = false;
|
||||||
|
this.saveSettings();
|
||||||
|
new import_obsidian2.Notice("Opener: Open all PDFs with default app disabled");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.addCommand({
|
||||||
|
id: "open-graph-view-in-new-tab",
|
||||||
|
name: "Open Graph View in new tab",
|
||||||
|
callback: () => {
|
||||||
|
this.app.commands.executeCommandById("workspace:new-tab");
|
||||||
|
this.app.commands.executeCommandById("graph:open");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// add command to right-click menu
|
||||||
|
addMenuItem() {
|
||||||
|
this.registerEvent(
|
||||||
|
this.app.workspace.on("file-menu", (menu, file, source, leaf) => {
|
||||||
|
if (file instanceof import_obsidian2.TFile) {
|
||||||
|
menu.addItem((item) => {
|
||||||
|
item.setSection("open");
|
||||||
|
item.setTitle("Open in same tab").onClick(() => {
|
||||||
|
this.sameTabOnce = true;
|
||||||
|
this.app.workspace.getLeaf().openFile(file);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
addMetaKeyListeners() {
|
||||||
|
if (this.isMetaKeyHeld !== null)
|
||||||
|
return;
|
||||||
|
this.isMetaKeyHeld = false;
|
||||||
|
document.addEventListener("keydown", this.keyDownHandler);
|
||||||
|
document.addEventListener("keyup", this.keyUpHandler);
|
||||||
|
document.addEventListener("mousedown", this.mouseDownHandler, { capture: true });
|
||||||
|
}
|
||||||
|
removeMetaKeyListeners() {
|
||||||
|
if (this.isMetaKeyHeld === null)
|
||||||
|
return;
|
||||||
|
document.removeEventListener("keydown", this.keyDownHandler);
|
||||||
|
document.removeEventListener("keyup", this.keyUpHandler);
|
||||||
|
document.removeEventListener("mousedown", this.mouseDownHandler, { capture: true });
|
||||||
|
this.isMetaKeyHeld = null;
|
||||||
|
}
|
||||||
|
updateMetaKeyListeners() {
|
||||||
|
if (this.settings.extOnlyWhenMetaKey) {
|
||||||
|
this.addMetaKeyListeners();
|
||||||
|
} else {
|
||||||
|
this.removeMetaKeyListeners();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
monkeyPatchOpenFile() {
|
||||||
|
const parentThis = this;
|
||||||
|
this.uninstallMonkeyPatchOpenFile = around(import_obsidian2.WorkspaceLeaf.prototype, {
|
||||||
|
openFile(oldOpenFile) {
|
||||||
|
return async function(file, openState) {
|
||||||
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
||||||
|
const defaultBehavior = () => {
|
||||||
|
return oldOpenFile.apply(this, [file, openState]);
|
||||||
|
};
|
||||||
|
const preparedEmptyLeave = ((_a = this.getViewState()) == null ? void 0 : _a.type) == "empty";
|
||||||
|
if (((_b = openState == null ? void 0 : openState.state) == null ? void 0 : _b.mode) && preparedEmptyLeave) {
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
if (file.path == ((_c = app.workspace.getActiveFile()) == null ? void 0 : _c.path) && ((_d = openState == null ? void 0 : openState.eState) == null ? void 0 : _d.subpath)) {
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
if (parentThis.sameTabOnce) {
|
||||||
|
parentThis.sameTabOnce = false;
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
const ALLEXT = ["png", "webp", "jpg", "jpeg", "gif", "bmp", "svg", "mp3", "webm", "wav", "m4a", "ogg", "3gp", "flac", "mp4", "ogv", "mov", "mkv"];
|
||||||
|
const OBSID_OPENABLE = ALLEXT.concat(["md", "canvas", "pdf"]);
|
||||||
|
if (parentThis.settings.PDFApp && file.extension == "pdf" || parentThis.settings.allExt && ALLEXT.includes(file.extension) || parentThis.settings.custExt && parentThis.settings.custExtList.includes(file.extension)) {
|
||||||
|
if (!parentThis.settings.extOnlyWhenMetaKey || parentThis.isMetaKeyHeld) {
|
||||||
|
new import_obsidian2.Notice("Opening external file with default app (Opener Plugin)");
|
||||||
|
if (preparedEmptyLeave) {
|
||||||
|
this.detach();
|
||||||
|
}
|
||||||
|
parentThis.app.openWithDefaultApp(file.path);
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
new import_obsidian2.Notice("Opener Tip: Hold Cmd/Ctrl key to open with default app");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!parentThis.settings.newTab) {
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
if (this.group) {
|
||||||
|
new import_obsidian2.Notice("Opener: This is a Linked Tab! Opening in same tab therefore.");
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
const matchingLeaves = [];
|
||||||
|
const pushLeaveIfMatching = (leaf) => {
|
||||||
|
var _a2;
|
||||||
|
if (((_a2 = leaf.getViewState().state) == null ? void 0 : _a2.file) == file.path) {
|
||||||
|
matchingLeaves.push(leaf);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
app.workspace.iterateRootLeaves(pushLeaveIfMatching);
|
||||||
|
(_g = (_f = (_e = app.workspace.getLayout()) == null ? void 0 : _e.floating) == null ? void 0 : _f.children) == null ? void 0 : _g.forEach((win) => {
|
||||||
|
var _a2;
|
||||||
|
if ((win == null ? void 0 : win.type) !== "window")
|
||||||
|
return console.log("Opener-Plugin: Strange floating object found (no window)", win);
|
||||||
|
(_a2 = win.children) == null ? void 0 : _a2.forEach((tabs) => {
|
||||||
|
var _a3;
|
||||||
|
if ((tabs == null ? void 0 : tabs.type) !== "tabs")
|
||||||
|
return console.log("Opener-Plugin: Strange floating object found (no tabs)", tabs);
|
||||||
|
(_a3 = tabs.children) == null ? void 0 : _a3.forEach((leaf) => {
|
||||||
|
if ((leaf == null ? void 0 : leaf.type) !== "leaf")
|
||||||
|
return console.log("Opener-Plugin: Strange floating object found (no leaf)", leaf);
|
||||||
|
pushLeaveIfMatching(app.workspace.getLeafById(leaf.id));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
if (matchingLeaves.length) {
|
||||||
|
if (preparedEmptyLeave) {
|
||||||
|
new import_obsidian2.Notice(`File is now open in ${matchingLeaves.length + 1} Tabs`);
|
||||||
|
return defaultBehavior();
|
||||||
|
} else {
|
||||||
|
return oldOpenFile.apply(matchingLeaves[0], [file, openState]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (preparedEmptyLeave) {
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
if (!((_h = parentThis.app.viewRegistry) == null ? void 0 : _h.getTypeByExtension(file.extension))) {
|
||||||
|
return defaultBehavior();
|
||||||
|
}
|
||||||
|
return oldOpenFile.apply(app.workspace.getLeaf("tab"), [
|
||||||
|
file,
|
||||||
|
openState
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
1
content/.obsidian/plugins/obsidian-opener/manifest.json
vendored
Normal file
1
content/.obsidian/plugins/obsidian-opener/manifest.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"id":"obsidian-opener","name":"Opener","minAppVersion":"0.15.9","description":"Open links in new/existing tabs by default. Open PDFs in System App by default. Can open other file formats in System Apps if desired.","author":"Aidan Gibson","authorUrl":"https://github.com/aidan-gibson","isDesktopOnly":false,"version":"2.1.2"}
|
5
content/.obsidian/plugins/obsidian-style-settings/data.json
vendored
Normal file
5
content/.obsidian/plugins/obsidian-style-settings/data.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"anuppuccin-theme-settings@@anuppuccin-theme-light": "ctp-latte",
|
||||||
|
"anuppuccin-theme-settings@@anuppuccin-light-theme-accents": "ctp-accent-light-lavender",
|
||||||
|
"anuppuccin-theme-settings@@anuppuccin-theme-accents": "ctp-accent-lavender"
|
||||||
|
}
|
9858
content/.obsidian/plugins/obsidian-style-settings/main.js
vendored
Normal file
9858
content/.obsidian/plugins/obsidian-style-settings/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
content/.obsidian/plugins/obsidian-style-settings/manifest.json
vendored
Normal file
10
content/.obsidian/plugins/obsidian-style-settings/manifest.json
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "obsidian-style-settings",
|
||||||
|
"name": "Style Settings",
|
||||||
|
"version": "1.0.8",
|
||||||
|
"minAppVersion": "0.11.5",
|
||||||
|
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
|
||||||
|
"author": "mgmeyers",
|
||||||
|
"authorUrl": "https://github.com/mgmeyers/obsidian-style-settings",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
243
content/.obsidian/plugins/obsidian-style-settings/styles.css
vendored
Normal file
243
content/.obsidian/plugins/obsidian-style-settings/styles.css
vendored
Normal file
File diff suppressed because one or more lines are too long
16
content/.obsidian/plugins/obsidian42-brat/data.json
vendored
Normal file
16
content/.obsidian/plugins/obsidian42-brat/data.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"pluginList": [
|
||||||
|
"aidan-gibson/obsidian-opener"
|
||||||
|
],
|
||||||
|
"pluginSubListFrozenVersion": [],
|
||||||
|
"themesList": [],
|
||||||
|
"updateAtStartup": true,
|
||||||
|
"updateThemesAtStartup": true,
|
||||||
|
"enableAfterInstall": true,
|
||||||
|
"loggingEnabled": false,
|
||||||
|
"loggingPath": "BRAT-log",
|
||||||
|
"loggingVerboseEnabled": false,
|
||||||
|
"debuggingMode": false,
|
||||||
|
"notificationsEnabled": true,
|
||||||
|
"personalAccessToken": ""
|
||||||
|
}
|
2419
content/.obsidian/plugins/obsidian42-brat/main.js
vendored
Normal file
2419
content/.obsidian/plugins/obsidian42-brat/main.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
15
content/.obsidian/plugins/obsidian42-brat/manifest.json
vendored
Normal file
15
content/.obsidian/plugins/obsidian42-brat/manifest.json
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"id": "obsidian42-brat",
|
||||||
|
"name": "BRAT",
|
||||||
|
"version": "1.0.1",
|
||||||
|
"minAppVersion": "1.4.16",
|
||||||
|
"description": "Easily install a beta version of a plugin for testing.",
|
||||||
|
"author": "TfTHacker",
|
||||||
|
"authorUrl": "https://github.com/TfTHacker/obsidian42-brat",
|
||||||
|
"helpUrl": "https://tfthacker.com/BRAT",
|
||||||
|
"isDesktopOnly": false,
|
||||||
|
"fundingUrl": {
|
||||||
|
"Buy Me a Coffee": "https://bit.ly/o42-kofi",
|
||||||
|
"Visit my site": "https://tfthacker.com"
|
||||||
|
}
|
||||||
|
}
|
3
content/.obsidian/plugins/obsidian42-brat/styles.css
vendored
Normal file
3
content/.obsidian/plugins/obsidian42-brat/styles.css
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.brat-modal .modal-button-container {
|
||||||
|
margin-top: 5px !important;
|
||||||
|
}
|
3
content/.obsidian/snippets/spacing.css
vendored
Normal file
3
content/.obsidian/snippets/spacing.css
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.cm-s-obsidian .cm-line.HyperMD-header {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
34
content/.obsidian/snippets/usage.css
vendored
Normal file
34
content/.obsidian/snippets/usage.css
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
.box {
|
||||||
|
border: 1px solid black;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
padding: 0.2rem 0.3rem 0.2rem 0.3rem;
|
||||||
|
display: inline-block;
|
||||||
|
width: fit-content;
|
||||||
|
margin: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.usage {
|
||||||
|
display:flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
padding-right: 1.7rem;
|
||||||
|
|
||||||
|
background-image: linear-gradient(black, black), linear-gradient(black, black);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 8px 2px;
|
||||||
|
background-position: top right, bottom right;
|
||||||
|
|
||||||
|
border-right: solid black;
|
||||||
|
border-width: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left p {
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
7
content/.obsidian/themes/AnuPpuccin/manifest.json
vendored
Normal file
7
content/.obsidian/themes/AnuPpuccin/manifest.json
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "AnuPpuccin",
|
||||||
|
"version": "1.4.5",
|
||||||
|
"minAppVersion": "0.16.0",
|
||||||
|
"author": "Anubis",
|
||||||
|
"authorUrl": "https://github.com/AnubisNekhet"
|
||||||
|
}
|
8490
content/.obsidian/themes/AnuPpuccin/theme.css
vendored
Normal file
8490
content/.obsidian/themes/AnuPpuccin/theme.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user