first commit
This commit is contained in:
257
.obsidian/plugins/obsidian-linter/data.json
vendored
Normal file
257
.obsidian/plugins/obsidian-linter/data.json
vendored
Normal file
@@ -0,0 +1,257 @@
|
||||
{
|
||||
"ruleConfigs": {
|
||||
"escape-yaml-special-characters": {
|
||||
"enabled": false,
|
||||
"try-to-escape-single-line-arrays": false
|
||||
},
|
||||
"force-yaml-escape": {
|
||||
"enabled": false,
|
||||
"force-yaml-escape-keys": ""
|
||||
},
|
||||
"format-tags-in-yaml": {
|
||||
"enabled": false
|
||||
},
|
||||
"format-yaml-array": {
|
||||
"enabled": false,
|
||||
"alias-key": true,
|
||||
"tag-key": true,
|
||||
"default-array-style": "single-line",
|
||||
"default-array-keys": true,
|
||||
"force-single-line-array-style": "",
|
||||
"force-multi-line-array-style": ""
|
||||
},
|
||||
"insert-yaml-attributes": {
|
||||
"enabled": false,
|
||||
"text-to-insert": "aliases: \ntags: "
|
||||
},
|
||||
"move-tags-to-yaml": {
|
||||
"enabled": false,
|
||||
"how-to-handle-existing-tags": "Nothing",
|
||||
"tags-to-ignore": ""
|
||||
},
|
||||
"remove-yaml-keys": {
|
||||
"enabled": false,
|
||||
"yaml-keys-to-remove": ""
|
||||
},
|
||||
"yaml-key-sort": {
|
||||
"enabled": false,
|
||||
"yaml-key-priority-sort-order": "",
|
||||
"priority-keys-at-start-of-yaml": true,
|
||||
"yaml-sort-order-for-other-keys": "None"
|
||||
},
|
||||
"yaml-timestamp": {
|
||||
"enabled": false,
|
||||
"date-created": true,
|
||||
"date-created-key": "date created",
|
||||
"force-retention-of-create-value": false,
|
||||
"date-modified": true,
|
||||
"date-modified-key": "date modified",
|
||||
"format": "dddd, MMMM Do YYYY, h:mm:ss a"
|
||||
},
|
||||
"yaml-title": {
|
||||
"enabled": false,
|
||||
"title-key": "title",
|
||||
"mode": "first-h1-or-filename-if-h1-missing"
|
||||
},
|
||||
"yaml-title-alias": {
|
||||
"enabled": false,
|
||||
"preserve-existing-alias-section-style": true,
|
||||
"keep-alias-that-matches-the-filename": false,
|
||||
"use-yaml-key-to-keep-track-of-old-filename-or-heading": true
|
||||
},
|
||||
"capitalize-headings": {
|
||||
"enabled": true,
|
||||
"style": "Title Case",
|
||||
"ignore-case-words": true,
|
||||
"ignore-words": "macOS, iOS, iPhone, iPad, JavaScript, TypeScript, AppleScript, I",
|
||||
"lowercase-words": "a, an, the, aboard, about, abt., above, abreast, absent, across, after, against, along, aloft, alongside, amid, amidst, mid, midst, among, amongst, anti, apropos, around, round, as, aslant, astride, at, atop, ontop, bar, barring, before, B4, behind, below, beneath, neath, beside, besides, between, 'tween, beyond, but, by, chez, circa, c., ca., come, concerning, contra, counting, cum, despite, spite, down, during, effective, ere, except, excepting, excluding, failing, following, for, from, in, including, inside, into, less, like, minus, modulo, mod, near, nearer, nearest, next, notwithstanding, of, o', off, offshore, on, onto, opposite, out, outside, over, o'er, pace, past, pending, per, plus, post, pre, pro, qua, re, regarding, respecting, sans, save, saving, short, since, sub, than, through, thru, throughout, thruout, till, times, to, t', touching, toward, towards, under, underneath, unlike, until, unto, up, upon, versus, vs., v., via, vice, vis-à-vis, wanting, with, w/, w., c̄, within, w/i, without, 'thout, w/o, abroad, adrift, aft, afterward, afterwards, ahead, apart, ashore, aside, away, back, backward, backwards, beforehand, downhill, downstage, downstairs, downstream, downward, downwards, downwind, east, eastward, eastwards, forth, forward, forwards, heavenward, heavenwards, hence, henceforth, here, hereby, herein, hereof, hereto, herewith, home, homeward, homewards, indoors, inward, inwards, leftward, leftwards, north, northeast, northward, northwards, northwest, now, onward, onwards, outdoors, outward, outwards, overboard, overhead, overland, overseas, rightward, rightwards, seaward, seawards, skywards, skyward, south, southeast, southwards, southward, southwest, then, thence, thenceforth, there, thereby, therein, thereof, thereto, therewith, together, underfoot, underground, uphill, upstage, upstairs, upstream, upward, upwards, upwind, west, westward, westwards, when, whence, where, whereby, wherein, whereto, wherewith, although, because, considering, given, granted, if, lest, once, provided, providing, seeing, so, supposing, though, unless, whenever, whereas, wherever, while, whilst, ago, according to, as regards, counter to, instead of, owing to, pertaining to, at the behest of, at the expense of, at the hands of, at risk of, at the risk of, at variance with, by dint of, by means of, by virtue of, by way of, for the sake of, for sake of, for lack of, for want of, from want of, in accordance with, in addition to, in case of, in charge of, in compliance with, in conformity with, in contact with, in exchange for, in favor of, in front of, in lieu of, in light of, in the light of, in line with, in place of, in point of, in quest of, in relation to, in regard to, with regard to, in respect to, with respect to, in return for, in search of, in step with, in touch with, in terms of, in the name of, in view of, on account of, on behalf of, on grounds of, on the grounds of, on the part of, on top of, with a view to, with the exception of, à la, a la, as soon as, as well as, close to, due to, far from, in case, other than, prior to, pursuant to, regardless of, subsequent to, as long as, as much as, as far as, by the time, in as much as, inasmuch, in order to, in order that, even, provide that, if only, whether, whose, whoever, why, how, or not, whatever, what, both, and, or, not only, but also, either, neither, nor, just, rather, no sooner, such, that, yet, is, it"
|
||||
},
|
||||
"file-name-heading": {
|
||||
"enabled": false
|
||||
},
|
||||
"header-increment": {
|
||||
"enabled": false,
|
||||
"start-at-h2": false
|
||||
},
|
||||
"headings-start-line": {
|
||||
"enabled": false
|
||||
},
|
||||
"remove-trailing-punctuation-in-heading": {
|
||||
"enabled": false,
|
||||
"punctuation-to-remove": ".,;:!。,;:!"
|
||||
},
|
||||
"footnote-after-punctuation": {
|
||||
"enabled": true
|
||||
},
|
||||
"move-footnotes-to-the-bottom": {
|
||||
"enabled": true
|
||||
},
|
||||
"re-index-footnotes": {
|
||||
"enabled": true
|
||||
},
|
||||
"auto-correct-common-misspellings": {
|
||||
"enabled": true,
|
||||
"ignore-words": ""
|
||||
},
|
||||
"blockquote-style": {
|
||||
"enabled": true,
|
||||
"style": "space"
|
||||
},
|
||||
"convert-bullet-list-markers": {
|
||||
"enabled": true
|
||||
},
|
||||
"emphasis-style": {
|
||||
"enabled": true,
|
||||
"style": "asterisk"
|
||||
},
|
||||
"no-bare-urls": {
|
||||
"enabled": true,
|
||||
"no-bare-uris": true
|
||||
},
|
||||
"ordered-list-style": {
|
||||
"enabled": true,
|
||||
"number-style": "ascending",
|
||||
"list-end-style": "."
|
||||
},
|
||||
"proper-ellipsis": {
|
||||
"enabled": true
|
||||
},
|
||||
"quote-style": {
|
||||
"enabled": false,
|
||||
"single-quote-enabled": true,
|
||||
"single-quote-style": "''",
|
||||
"double-quote-enabled": true,
|
||||
"double-quote-style": "\"\""
|
||||
},
|
||||
"remove-consecutive-list-markers": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-empty-list-markers": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-hyphenated-line-breaks": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-multiple-spaces": {
|
||||
"enabled": true
|
||||
},
|
||||
"strong-style": {
|
||||
"enabled": true,
|
||||
"style": "consistent"
|
||||
},
|
||||
"two-spaces-between-lines-with-content": {
|
||||
"enabled": true
|
||||
},
|
||||
"unordered-list-style": {
|
||||
"enabled": true,
|
||||
"list-style": "consistent"
|
||||
},
|
||||
"compact-yaml": {
|
||||
"enabled": true,
|
||||
"inner-new-lines": false
|
||||
},
|
||||
"consecutive-blank-lines": {
|
||||
"enabled": true
|
||||
},
|
||||
"convert-spaces-to-tabs": {
|
||||
"enabled": true,
|
||||
"tabsize": " "
|
||||
},
|
||||
"empty-line-around-blockquotes": {
|
||||
"enabled": true
|
||||
},
|
||||
"empty-line-around-code-fences": {
|
||||
"enabled": true
|
||||
},
|
||||
"empty-line-around-math-blocks": {
|
||||
"enabled": true
|
||||
},
|
||||
"empty-line-around-tables": {
|
||||
"enabled": true
|
||||
},
|
||||
"heading-blank-lines": {
|
||||
"enabled": true,
|
||||
"bottom": true,
|
||||
"empty-line-after-yaml": true
|
||||
},
|
||||
"line-break-at-document-end": {
|
||||
"enabled": true
|
||||
},
|
||||
"move-math-block-indicators-to-their-own-line": {
|
||||
"enabled": true
|
||||
},
|
||||
"paragraph-blank-lines": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-empty-lines-between-list-markers-and-checklists": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-link-spacing": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-space-around-characters": {
|
||||
"enabled": false,
|
||||
"include-fullwidth-forms": true,
|
||||
"include-cjk-symbols-and-punctuation": true,
|
||||
"include-dashes": true,
|
||||
"other-symbols": ""
|
||||
},
|
||||
"remove-space-before-or-after-characters": {
|
||||
"enabled": false,
|
||||
"characters-to-remove-space-before": ",!?;:).’”]",
|
||||
"characters-to-remove-space-after": "¿¡‘“(["
|
||||
},
|
||||
"space-after-list-markers": {
|
||||
"enabled": true
|
||||
},
|
||||
"space-between-chinese-japanese-or-korean-and-english-or-numbers": {
|
||||
"enabled": false
|
||||
},
|
||||
"trailing-spaces": {
|
||||
"enabled": true,
|
||||
"twp-space-line-break": false
|
||||
},
|
||||
"add-blockquote-indentation-on-paste": {
|
||||
"enabled": false
|
||||
},
|
||||
"prevent-double-checklist-indicator-on-paste": {
|
||||
"enabled": true
|
||||
},
|
||||
"prevent-double-list-item-indicator-on-paste": {
|
||||
"enabled": true
|
||||
},
|
||||
"proper-ellipsis-on-paste": {
|
||||
"enabled": false
|
||||
},
|
||||
"remove-hyphens-on-paste": {
|
||||
"enabled": false
|
||||
},
|
||||
"remove-leading-or-trailing-whitespace-on-paste": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-leftover-footnotes-from-quote-on-paste": {
|
||||
"enabled": true
|
||||
},
|
||||
"remove-multiple-blank-lines-on-paste": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"lintOnSave": true,
|
||||
"recordLintOnSaveLogs": false,
|
||||
"displayChanged": true,
|
||||
"lintOnFileChange": false,
|
||||
"displayLintOnFileChangeNotice": false,
|
||||
"settingsConvertedToConfigKeyValues": true,
|
||||
"foldersToIgnore": [],
|
||||
"linterLocale": "system-default",
|
||||
"logLevel": "ERROR",
|
||||
"lintCommands": [],
|
||||
"customRegexes": [],
|
||||
"commonStyles": {
|
||||
"aliasArrayStyle": "single-line",
|
||||
"tagArrayStyle": "single-line",
|
||||
"minimumNumberOfDollarSignsToBeAMathBlock": 2,
|
||||
"escapeCharacter": "\"",
|
||||
"removeUnnecessaryEscapeCharsForMultiLineArrays": false
|
||||
}
|
||||
}
|
2624
.obsidian/plugins/obsidian-linter/main.js
vendored
Normal file
2624
.obsidian/plugins/obsidian-linter/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
.obsidian/plugins/obsidian-linter/manifest.json
vendored
Normal file
10
.obsidian/plugins/obsidian-linter/manifest.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-linter",
|
||||
"name": "Linter",
|
||||
"version": "1.20.0",
|
||||
"minAppVersion": "0.15.6",
|
||||
"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",
|
||||
"isDesktopOnly": false
|
||||
}
|
225
.obsidian/plugins/obsidian-linter/styles.css
vendored
Normal file
225
.obsidian/plugins/obsidian-linter/styles.css
vendored
Normal file
@@ -0,0 +1,225 @@
|
||||
/**
|
||||
* Based on https://github.com/Fevol/obsidian-translate/blob/master/src/ui/translator-components/SettingsPage.svelte
|
||||
*/
|
||||
|
||||
.linter-navigation-item {
|
||||
cursor: pointer;
|
||||
border-radius: 100px;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 8px 8px 2px 2px;
|
||||
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
white-space: nowrap;
|
||||
|
||||
padding: 4px 6px;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
overflow: hidden;
|
||||
|
||||
background-color: var(--background-primary-secondary-alt);
|
||||
|
||||
transition: color 0.25s ease-in-out,
|
||||
padding 0.25s ease-in-out,
|
||||
background-color 0.35s cubic-bezier(0.45, 0.25, 0.83, 0.67),
|
||||
max-width 0.35s cubic-bezier(0.57, 0.04, 0.58, 1);
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1325px) {
|
||||
.linter-navigation-item.linter-desktop {
|
||||
max-width: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
.linter-navigation-item.linter-mobile {
|
||||
max-width: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.linter-navigation-item-icon {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.linter-navigation-item:hover {
|
||||
border-color: var(--interactive-accent-hover);
|
||||
border-bottom: 0px;
|
||||
}
|
||||
|
||||
.linter-navigation-item-selected {
|
||||
background-color: var(--interactive-accent) !important;
|
||||
color: var(--text-on-accent);
|
||||
padding: 4px 9px !important;
|
||||
max-width: 100% !important;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 8px 8px 2px 2px;
|
||||
border-bottom: 0px;
|
||||
transition: color 0.25s ease-in-out,
|
||||
padding 0.25s ease-in-out,
|
||||
background-color 0.35s cubic-bezier(0.45, 0.25, 0.83, 0.67),
|
||||
max-width 0.45s cubic-bezier(0.57, 0.04, 0.58, 1) 0.2s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Based on https://github.com/phibr0/obsidian-commander/blob/main/src/styles.scss
|
||||
*/
|
||||
.linter {
|
||||
transition: transform 400ms 0s;
|
||||
}
|
||||
|
||||
.linter-setting-title {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 30px;
|
||||
}
|
||||
.linter-setting-title.linter-mobile {
|
||||
justify-content: space-around;
|
||||
}
|
||||
.linter-setting-title h1 {
|
||||
font-weight: 900;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.linter-setting-header {
|
||||
margin-bottom: 24px;
|
||||
overflow-y: hidden;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.linter-setting-header .linter-setting-tab-group {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
}
|
||||
.linter-setting-tab-group {
|
||||
margin-top: 6px;
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
border-bottom: 2px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.linter-setting-header .linter-tab-settings {
|
||||
padding: 6px 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
border-left: 2px solid transparent;
|
||||
border-right: 2px solid transparent;
|
||||
}
|
||||
.linter-setting-header .linter-tab-settings:first-child {
|
||||
margin-left: 6px;
|
||||
}
|
||||
.linter-setting-header .linter-tab-settings.linter-tab-settings-active {
|
||||
border-bottom: 2px solid var(--background-primary);
|
||||
transform: translateY(2px);
|
||||
border-radius: 2px;
|
||||
border-left: 2px solid var(--background-modifier-border);
|
||||
border-top: 2px solid var(--background-modifier-border);
|
||||
border-right: 2px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
/** Hide linter element css
|
||||
* Based on https://zellwk.com/blog/hide-content-accessibly/
|
||||
*/
|
||||
.linter-navigation-item:not(.linter-navigation-item-selected) > span:nth-child(2),
|
||||
.linter-visually-hidden {
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
clip-path: rect(0 0 0 0);
|
||||
height: auto;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Full-width text areas
|
||||
* Based on https://github.com/nyable/obsidian-code-block-enhancer/blob/bb0c636c1e7609b6d26c48a8d7ca15d5cd9abdcf/src/styles/index.scss
|
||||
*/
|
||||
textarea.full-width {
|
||||
width: 100%;
|
||||
min-height: 10em;
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
|
||||
.full-width-textbox-input-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.settings-copy-button {
|
||||
position: absolute;
|
||||
top: 0.8em;
|
||||
right: 0.8em;
|
||||
margin: 0 0 0 auto;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.settings-copy-button svg.linter-clipboard path {
|
||||
fill: var(--text-faint);
|
||||
}
|
||||
.settings-copy-button svg.linter-success path {
|
||||
fill: var(--interactive-success);
|
||||
}
|
||||
.settings-copy-button:hover, .settings-copy-button:active {
|
||||
cursor: pointer;
|
||||
}
|
||||
.settings-copy-button:hover svg path, .settings-copy-button:active svg path {
|
||||
fill: var(--text-accent-hover);
|
||||
transition: all ease 0.3s;
|
||||
}
|
||||
.settings-copy-button:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom regex replacement
|
||||
*/
|
||||
.linter-custom-regex-replacement-container div:last-child{
|
||||
border: none;
|
||||
}
|
||||
.linter-custom-regex-replacement {
|
||||
margin-bottom: 15px;
|
||||
border: none;
|
||||
border-bottom: var(--hr-thickness) solid;
|
||||
border-color: var(--hr-color);
|
||||
}
|
||||
.linter-custom-regex-replacement-row2 {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.linter-custom-regex-replacement-normal-input {
|
||||
width: 40%;
|
||||
}
|
||||
.linter-custom-regex-replacement-flags {
|
||||
width: 15%;
|
||||
}
|
||||
.linter-custom-regex-replacement-label {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.linter-custom-regex-replacement-label-input {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting item no border
|
||||
*/
|
||||
.linter-no-border {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom row
|
||||
*/
|
||||
.custom-row-description {
|
||||
margin-top: 0px;
|
||||
}
|
Reference in New Issue
Block a user