vault backup: 2023-04-02 15:59:13

This commit is contained in:
Daniel Bulant 2023-04-02 15:59:13 +02:00
parent 5174fbadbe
commit 44df9bad80
15 changed files with 1641 additions and 5 deletions

View file

@ -43,5 +43,10 @@
"obsidian-smart-typography",
"various-complements",
"graph-analysis",
"persistent-graph"
"persistent-graph",
"obsidian-copy-block-link",
"obsidian-quiet-outline",
"lapel",
"omnisearch",
"obsidian-math-plus"
]

6
notes/.obsidian/plugins/lapel/main.js vendored Normal file
View file

@ -0,0 +1,6 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var E=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var N=(i,s)=>{for(var t in s)E(i,t,{get:s[t],enumerable:!0})},B=(i,s,t,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let e of P(s))!A.call(i,e)&&e!==t&&E(i,e,{get:()=>s[e],enumerable:!(n=M(s,e))||n.enumerable});return i};var D=i=>B(E({},"__esModule",{value:!0}),i);var C={};N(C,{default:()=>w});module.exports=D(C);var v=require("obsidian");var l=require("@codemirror/view"),d=require("obsidian"),m=require("@codemirror/language"),o=require("@codemirror/state"),V=[1,2,3,4,5,6],S="cm-heading-marker",L=class extends l.GutterMarker{constructor(t,n,e,r,a){super();this.app=t;this.view=n;this.headingLevel=e;this.from=r;this.to=a}toDOM(){let t=createDiv({cls:S});return t.dataset.level=String(this.headingLevel),t}};function x(i,s){let t=l.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.markers=this.buildMarkers(i,e)}buildMarkers(e,r){let a=new o.RangeSetBuilder;return(0,m.syntaxTree)(r.state).iterate({enter:({type:g,from:p,to:h})=>{var c;let b=/header-(\d)$/.exec((c=g.prop(m.lineClassNodeProp))!=null?c:"");if(b){let T=Number(b[1]),y=new L(e,r,T,p,h);a.add(p,h,y)}}}),a.finish()}update(e){if(!e.state.field(d.editorLivePreviewField)){this.markers=o.RangeSet.empty;return}this.markers=this.buildMarkers(i,this.view)}}),n=s?o.Prec.high:o.Prec.low;return[t,n((0,l.gutter)({class:"cm-lapel",markers(e){var r;return((r=e.plugin(t))==null?void 0:r.markers)||o.RangeSet.empty},domEventHandlers:{click:(e,r,a)=>{if(a.target instanceof HTMLDivElement&&a.target.classList.contains(S)){let g=new d.Menu(this.app);return V.forEach(p=>{g.addItem(h=>h.setIcon("hash").setTitle(`Heading ${p}`).onClick(()=>{let c=e.state.doc.lineAt(r.from).text.replace(/^#{1,6} /,"");e.dispatch({changes:{from:r.from,to:r.to,insert:`${"#".repeat(p)} ${c}`}})}))}),g.showAtMouseEvent(a),!0}return!1},mousedown:(e,r,a)=>a.target instanceof HTMLDivElement&&a.target.classList.contains(S)}}))]}var f=require("obsidian"),k={showBeforeLineNumbers:!0},u=class extends f.PluginSettingTab{constructor(t,n){super(t,n);this.plugin=n}display(){let{containerEl:t}=this;t.empty(),t.createEl("h3",{text:"Appearance"}),new f.Setting(t).setName("Show before line numbers").setDesc("Toggle whether the heading markers are shown before or after the line numbers in the gutter.").addToggle(n=>n.setValue(this.plugin.settings.showBeforeLineNumbers).onChange(async e=>{this.plugin.updateSettings(()=>({showBeforeLineNumbers:e}))}))}};var w=class extends v.Plugin{async onload(){await this.loadSettings(),this.cmExtension=x(this.app,this.settings.showBeforeLineNumbers),this.registerEditorExtension([this.cmExtension]),this.registerSettingsTab()}async loadSettings(){this.settings=Object.assign({},k,await this.loadData())}registerSettingsTab(){this.addSettingTab(new u(this.app,this))}async updateSettings(t){let n=t(this.settings),e=Object.assign({},this.settings,n);if(this.settings.showBeforeLineNumbers!==n.showBeforeLineNumbers){let r=x(this.app,e.showBeforeLineNumbers);this.cmExtension[0]=r,this.app.workspace.updateOptions()}this.settings=e,await this.saveData(this.settings)}};

View file

@ -0,0 +1,10 @@
{
"id": "lapel",
"name": "Lapel",
"description": "Dress up your editor with decorations that mark each of your headings 🤵",
"version": "0.1.0",
"author": "Liam Cain",
"authorUrl": "https://github.com/liamcain/",
"isDesktopOnly": false,
"minAppVersion": "0.15.2"
}

View file

@ -0,0 +1,44 @@
.cm-heading-marker {
align-items: center;
color: var(--text-faint);
cursor: pointer;
display: inline-block;
font-size: 0.7rem;
letter-spacing: 0.25px;
min-width: 20px;
text-align: right;
}
.cm-heading-marker:hover {
color: var(--text-muted);
font-size: 0.7rem;
letter-spacing: 0.25px;
}
.cm-heading-marker[data-level="1"] {
--heading-marker: "H1";
}
.cm-heading-marker[data-level="2"] {
--heading-marker: "H2";
}
.cm-heading-marker[data-level="3"] {
--heading-marker: "H3";
}
.cm-heading-marker[data-level="4"] {
--heading-marker: "H4";
}
.cm-heading-marker[data-level="5"] {
--heading-marker: "H5";
}
.cm-heading-marker[data-level="6"] {
--heading-marker: "H6";
}
.cm-heading-marker:before {
content: var(--heading-marker);
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,10 @@
{
"id": "obsidian-copy-block-link",
"name": "Copy Block Link",
"version": "1.0.4",
"minAppVersion": "0.12.12",
"description": "Get links to blocks and headings from Obsidian's right click menu",
"author": "mgmeyers",
"authorUrl": "https://github.com/mgmeyers/obsidian-copy-block-link",
"isDesktopOnly": false
}

View file

@ -0,0 +1,23 @@
{
"path": ".obsidian/plugins/obsidian-math-plus",
"operators": "[\n\t\t\t{\n\t\t\t\t\"op\":\"\\)\",\n\t\t\t\t\"format\":\"{\\rparen\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"\\if\",\n\t\t\t\t\t\"format\":\"{\\text{if }}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"\\then\",\n\t\t\t\t\t\"format\":\"{\\text{then }}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"\\or\",\n\t\t\t\t\t\"format\":\"{\\text{ or }}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"^\",\n\t\t\t\t\t\"format\":\"{{%s1%}^{%s2%}}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"_\",\n\t\t\t\t\t\"format\":\"{{%s1%}_{%s2%}}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"!\",\n\t\t\t\t\t\"format\":\"{%s1%!}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"/\",\n\t\t\t\t\t\"format\":\"\\frac{%s1%}{%s2%}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"\\lim\",\n\t\t\t\t\t\"format\":\"\\lim_{%s1%\\to%s2%}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"\\abs\",\n\t\t\t\t\t\"format\":\"{|%s2%|}\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\t\"op\":\"\\is\",\n\t\t\t\t\t\"format\":\"\\sum\\limits_{n=%s2%}^{\\infty}\"\n\t\t\t}\n\t]",
"color1": "#000000",
"color2": "#1864ab",
"color3": "#d9480f",
"colorPicker": false,
"minHeight": "100",
"livePreview": false,
"addDollars": false,
"idHidden": false,
"formattingHidden": true,
"lockVisable": true,
"selectVisable": true,
"rectVisable": false,
"diamondVisable": false,
"ellipseVisable": false,
"arrowVisable": true,
"lineVisable": true,
"penVisable": true,
"textVisable": true,
"gridModeEndabled": false
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
{
"id": "obsidian-quiet-outline",
"name": "Quiet Outline",
"version": "0.3.15",
"minAppVersion": "0.15.6",
"description": "Make outline quiet and more powerful, including no-auto-expand, rendering heading as markdown, and search support.",
"author": "the_tree",
"authorUrl": "",
"fundingUrl": "https://www.buymeacoffee.com/thtree",
"isDesktopOnly": false
}

View file

@ -0,0 +1,160 @@
/* src/stalin.css */
.quiet-outline .n-tree {
font-size: var(--nav-item-size);
}
.quiet-outline .n-tree-node-indent {
flex: 0 0 13px !important;
}
.quiet-outline .n-tree-node-wrapper {
padding: 0px;
}
.quiet-outline .n-tree-node.n-tree-node--selectable {
align-items: center;
}
.quiet-outline .n-tree-node .n-tree-node-content {
line-height: 1.6em;
min-height: 10px;
}
.quiet-outline .n-tree-node-content__text p {
margin: 0;
}
.quiet-outline .n-tree.ellipsis {
overflow-x: hidden;
}
.quiet-outline .n-tree.ellipsis .n-tree-node .n-tree-node-content p {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.quiet-outline .n-tree.ellipsis .n-tree-node-content__text {
width: 100%;
}
.quiet-outline .n-tree.ellipsis .n-tree-node-content {
width: 90%;
}
.quiet-outline .n-tree.n-tree--block-line .n-tree-node:not(.n-tree-node--disabled):hover {
color: var(--nav-item-color-active);
background-color: var(--nav-item-background-active);
font-weight: var(--nav-item-weight-active);
}
.quiet-outline .function-bar {
display: flex;
align-items: center;
padding: 0px;
margin-bottom: 5px;
}
.quiet-outline .function-bar .n-button {
margin-right: 5px;
text-align: center;
}
.quiet-outline .function-bar .n-input {
flex: 1;
min-width: 10px;
}
.is-mobile .quiet-outline .function-bar .n-button {
margin-right: 5px;
text-align: center;
flex: 1;
}
.is-mobile .quiet-outline .function-bar .n-input {
min-width: 10px;
flex: none;
}
.quiet-outline .n-button__icon {
--n-icon-size: 22px;
font-size: 22px;
}
.quiet-outline code {
color: var(--text-color-code, var(--code-normal));
font-weight: bold;
font-family: var(--font-monospace);
background-color: var(--code-background);
border-radius: var(--radius-s);
}
.quiet-outline a.tag {
white-space: nowrap;
padding: 0.2em 0.6em;
}
.quiet-outline a:not(.tag) {
color: var(--link-external-color);
}
.quiet-outline span.internal-link {
color: var(--link-color);
}
.quiet-outline mark {
background-color: var(--text-highlight-bg);
color: var(--text-normal);
}
.n-tree .n-tree-node-switcher {
height: 0px;
}
.quiet-outline [class*=level-]:not(.level-1) .n-tree-node-content {
font-size: 1em;
}
.n-tree-node.located {
font-weight: bold !important;
}
.n-tree-node.located code {
font-weight: 1000 !important;
}
.n-tree-node.located mjx-math {
font-weight: bold !important;
}
.n-tree.n-tree--block-line .n-tree-node:not(.n-tree-node--disabled).n-tree-node--selected {
background-color: transparent !important;
}
.quiet-outline {
height: 100%;
padding-bottom: 24px;
}
.quiet-outline #container {
height: 100%;
}
.quiet-outline .n-config-provider {
display: flex;
flex-direction: column;
height: 100%;
}
.quiet-outline .n-tree {
overflow: auto;
}
.n-tree__empty {
display: none;
}
/* main.css */
.quiet-outline .n-tree .n-tree-node-indent {
content: "";
height: unset;
align-self: stretch;
}
.quiet-outline .level-2 .n-tree-node-indent,
.quiet-outline .level-3 .n-tree-node-indent:first-child,
.quiet-outline .level-4 .n-tree-node-indent:first-child,
.quiet-outline .level-5 .n-tree-node-indent:first-child,
.quiet-outline .level-6 .n-tree-node-indent:first-child {
border-right: var(--nav-indentation-guide-width) solid var(--8de97876-rainbowColor1);
}
.quiet-outline .level-3 .n-tree-node-indent,
.quiet-outline .level-4 .n-tree-node-indent:nth-child(2),
.quiet-outline .level-5 .n-tree-node-indent:nth-child(2),
.quiet-outline .level-6 .n-tree-node-indent:nth-child(2) {
border-right: var(--nav-indentation-guide-width) solid var(--8de97876-rainbowColor2);
}
.quiet-outline .level-4 .n-tree-node-indent,
.quiet-outline .level-5 .n-tree-node-indent:nth-child(3),
.quiet-outline .level-6 .n-tree-node-indent:nth-child(3) {
border-right: var(--nav-indentation-guide-width) solid var(--8de97876-rainbowColor3);
}
.quiet-outline .level-5 .n-tree-node-indent,
.quiet-outline .level-6 .n-tree-node-indent:nth-child(4) {
border-right: var(--nav-indentation-guide-width) solid var(--8de97876-rainbowColor4);
}
.quiet-outline .level-6 .n-tree-node-indent {
border-right: var(--nav-indentation-guide-width) solid var(--8de97876-rainbowColor5);
}
.n-tree-node.located p {
color: var(--8de97876-locatedColor);
}
/* src/main.css */

View file

@ -0,0 +1,23 @@
{
"useCache": true,
"hideExcluded": false,
"ignoreDiacritics": true,
"indexedFileTypes": [],
"PDFIndexing": false,
"imagesIndexing": false,
"splitCamelCase": false,
"ribbonIcon": true,
"showExcerpt": true,
"renderLineReturnInExcerpts": true,
"showCreateButton": false,
"highlight": true,
"showPreviousQueryResults": true,
"simpleSearch": false,
"weightBasename": 3,
"weightDirectory": 2,
"weightH1": 1.5,
"weightH2": 1.3,
"weightH3": 1.1,
"welcomeMessage": "1.10.1",
"verboseLogging": false
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,14 @@
{
"id": "omnisearch",
"name": "Omnisearch",
"version": "1.13.0",
"minAppVersion": "1.0.0",
"description": "A search engine that just works",
"author": "Simon Cambier",
"authorUrl": "https://github.com/scambier/obsidian-omnisearch",
"fundingUrl": {
"Github": "https://github.com/sponsors/scambier",
"Ko-fi": "https://ko-fi.com/scambier"
},
"isDesktopOnly": false
}

View file

@ -0,0 +1,89 @@
.omnisearch-modal {
}
.omnisearch-result {
white-space: normal;
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
}
.omnisearch-result__title-container {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 5px;
flex-wrap: wrap;
}
.omnisearch-result__title {
align-items: center;
display: flex;
gap: 5px;
}
.omnisearch-result__folder-path {
font-size: 0.75rem;
align-items: center;
display: flex;
gap: 5px;
color: var(--text-muted);
}
.omnisearch-result__extension {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__counter {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__body {
white-space: normal;
font-size: small;
word-wrap: normal;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
color: var(--text-muted);
margin-left: 0.5em;
}
.omnisearch-result__image-container {
flex-basis: 20%;
text-align: right
}
.omnisearch-highlight {
}
.omnisearch-default-highlight {
text-decoration: underline;
text-decoration-color: var(--text-highlight-bg);
text-decoration-thickness: 3px;
text-underline-offset: -1px;
text-decoration-skip-ink: none;
}
.omnisearch-input-container {
display: flex;
flex-direction: row;
gap: 5px;
}
@media only screen and (max-width: 600px) {
.omnisearch-input-container {
flex-direction: column;
}
}
.omnisearch-input-field {
position: relative;
flex-grow: 1;
}

View file

@ -6,6 +6,7 @@
{
"id": "b3a1f6f8a8c6e16f",
"type": "tabs",
"dimension": 85.9138533178114,
"children": [
{
"id": "e0bf05276f7aadee",
@ -17,7 +18,26 @@
"mode": "source",
"source": false
}
}
},
"group": "e96a7ff1517d25b2"
}
]
},
{
"id": "4163434766f0d7dc",
"type": "tabs",
"dimension": 14.086146682188591,
"children": [
{
"id": "312cde2b80e58872",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "fyz/Jevy mezi pevnýma tělesama a kapalinama.md"
}
},
"group": "e96a7ff1517d25b2"
}
]
}
@ -211,12 +231,13 @@
"command-palette:Open command palette": false,
"markdown-importer:Open format converter": false,
"table-editor-obsidian:Advanced Tables Toolbar": false,
"obsidian-excalidraw-plugin:New Excalidraw drawing": false,
"breadcrumbs:Breadcrumbs Visualisation": false,
"obsidian-spaced-repetition:Review flashcards": false
"obsidian-spaced-repetition:Review flashcards": false,
"obsidian-excalidraw-plugin:Create new drawing": false,
"omnisearch:Omnisearch": false
}
},
"active": "f67c3695a56603f0",
"active": "e0bf05276f7aadee",
"lastOpenFiles": [
"data/Pasted image 20230402153918.png",
"data/Pasted image 20230402153743.png",