Initial commit
This commit is contained in:
120
.obsidian/plugins/obsidian-text-format/data.json
vendored
Normal file
120
.obsidian/plugins/obsidian-text-format/data.json
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"manifest": {
|
||||
"version": "3.0.2"
|
||||
},
|
||||
"MergeParagraph_Newlines": true,
|
||||
"MergeParagraph_Spaces": true,
|
||||
"LowercaseFirst": true,
|
||||
"RemoveBlanksWhenChinese": false,
|
||||
"ZoteroNoteRegExp": "“(?<text>.*)” \\((?<item>.*?)\\) \\(\\[pdf\\]\\((?<pdf_url>.*?)\\)\\)",
|
||||
"ZoteroNoteTemplate": "{text} [🔖]({pdf_url})",
|
||||
"BulletPoints": "•–§",
|
||||
"WrapperList": [
|
||||
{
|
||||
"name": "underline",
|
||||
"prefix": "<u>",
|
||||
"suffix": "</u>",
|
||||
"id": "underline"
|
||||
}
|
||||
],
|
||||
"RequestList": [],
|
||||
"customReplaceList": [
|
||||
{
|
||||
"id": "remove-trailing-spaces",
|
||||
"name": "Remove trailing spaces",
|
||||
"data": [
|
||||
{
|
||||
"search": "(\\s*)(?=\\n)|(\\s*)$",
|
||||
"replace": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "remove-blank-line",
|
||||
"name": "Remove blank line(s)",
|
||||
"data": [
|
||||
{
|
||||
"search": "\\n\\s*\\n",
|
||||
"replace": "\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "add-line-break",
|
||||
"name": "Add extra line break between paragraphs",
|
||||
"data": [
|
||||
{
|
||||
"search": "\\n",
|
||||
"replace": "\\n\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "split-lines-by-blank",
|
||||
"name": "Split line(s) by blanks",
|
||||
"data": [
|
||||
{
|
||||
"search": " ",
|
||||
"replace": "\\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"customReplaceBuiltInLog": {
|
||||
"remove-trailing-spaces": {
|
||||
"id": "remove-trailing-spaces",
|
||||
"modified": false,
|
||||
"data": [
|
||||
{
|
||||
"search": "(\\s*)(?=\\n)|(\\s*)$",
|
||||
"replace": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"remove-blank-line": {
|
||||
"id": "remove-blank-line",
|
||||
"modified": false,
|
||||
"data": [
|
||||
{
|
||||
"search": "\\n\\s*\\n",
|
||||
"replace": "\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"add-line-break": {
|
||||
"id": "add-line-break",
|
||||
"modified": false,
|
||||
"data": [
|
||||
{
|
||||
"search": "\\n",
|
||||
"replace": "\\n\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"split-lines-by-blank": {
|
||||
"id": "split-lines-by-blank",
|
||||
"modified": false,
|
||||
"data": [
|
||||
{
|
||||
"search": " ",
|
||||
"replace": "\\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ToggleSequence": "titleCase\nlowerCase\nupperCase",
|
||||
"RemoveWikiURL2": false,
|
||||
"WikiLinkFormat": {
|
||||
"headingOnly": "{title} (> {heading})",
|
||||
"aliasOnly": "{alias} ({title})",
|
||||
"both": "{alias} ({title} > {heading})"
|
||||
},
|
||||
"UrlLinkFormat": "{text}",
|
||||
"ProperNoun": "",
|
||||
"OrderedListOtherSeparator": "",
|
||||
"Wikilink2mdRelativePath": "relative-obsidian",
|
||||
"calloutType": "NOTE",
|
||||
"debugMode": false,
|
||||
"headingLevelMin": 0,
|
||||
"calloutTypeDecider": "previous-content"
|
||||
}
|
10638
.obsidian/plugins/obsidian-text-format/main.js
vendored
Normal file
10638
.obsidian/plugins/obsidian-text-format/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
15
.obsidian/plugins/obsidian-text-format/manifest.json
vendored
Normal file
15
.obsidian/plugins/obsidian-text-format/manifest.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": "obsidian-text-format",
|
||||
"name": "Text Format",
|
||||
"version": "3.0.2",
|
||||
"minAppVersion": "0.9.7",
|
||||
"description": "Format text such as lowercase/uppercase/capitalize/titlecase, converting order/bullet list, removing redundant spaces/newline characters.",
|
||||
"author": "Benature",
|
||||
"authorUrl": "https://github.com/Benature",
|
||||
"fundingUrl": {
|
||||
"Buy Me a Coffee": "https://www.buymeacoffee.com/benature",
|
||||
"爱发电": "https://afdian.net/a/Benature-K",
|
||||
"微信/支付宝": "https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png"
|
||||
},
|
||||
"isDesktopOnly": false
|
||||
}
|
55
.obsidian/plugins/obsidian-text-format/styles.css
vendored
Normal file
55
.obsidian/plugins/obsidian-text-format/styles.css
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
.plugin-text-format H3,
|
||||
.plugin-text-format H4 {
|
||||
margin-bottom: 0px;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
.plugin-text-format .heading-description {
|
||||
padding-top: 0px;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
.plugin-text-format .header-div:has(H3) + .tf-collapsible-content {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.plugin-text-format .header-div:has(H4) + .tf-collapsible-content {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.plugin-text-format .setting-item > .setting-item-control > input {
|
||||
min-width: 145px;
|
||||
}
|
||||
|
||||
.plugin-text-format .setting-item.custom-replace input,
|
||||
.plugin-text-format .setting-item.wrapper input {
|
||||
width: 33%;
|
||||
}
|
||||
.plugin-text-format .setting-item.api-request input:first-child {
|
||||
width: 30%;
|
||||
}
|
||||
.plugin-text-format .setting-item.api-request input {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.tf-collapsible-content.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tf-collapsible-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.plugin-text-format .header-div:hover {
|
||||
background-color: var(--interactive-hover, #363636);
|
||||
border-radius: var(--button-radius, 5px);
|
||||
}
|
||||
|
||||
.tf-collapsible-header {
|
||||
padding-bottom: 8px;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.tf-collapsible-icon {
|
||||
position: relative;
|
||||
top: 4px;
|
||||
left: 16px;
|
||||
}
|
Reference in New Issue
Block a user