From d185b35f5f4630a8461eb87a8843dc3c75cdc036 Mon Sep 17 00:00:00 2001 From: netzbub <77230315+netzbub@users.noreply.github.com> Date: Mon, 29 Jun 2026 11:45:33 +0200 Subject: [PATCH 1/3] Add English and German README translations --- README_de_DE.md | 136 +++++++++++++++++++++++++++++++++++++++++++++++ README_en_US.md | 138 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 274 insertions(+) create mode 100644 README_de_DE.md create mode 100644 README_en_US.md diff --git a/README_de_DE.md b/README_de_DE.md new file mode 100644 index 0000000..7483c79 --- /dev/null +++ b/README_de_DE.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:", wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D. h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/README_en_US.md b/README_en_US.md new file mode 100644 index 0000000..24463fa --- /dev/null +++ b/README_en_US.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing From 11e95406a2b59fd759638c3c98ad8171d74cf99c Mon Sep 17 00:00:00 2001 From: netzbub <77230315+netzbub@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:08:06 +0200 Subject: [PATCH 2/3] README.md --- .history/README_20260629110901.md | 135 +++++++++++++++++++++++ .history/README_20260629114805.md | 137 +++++++++++++++++++++++ .history/README_20260629114807.md | 137 +++++++++++++++++++++++ .history/README_20260629114832.md | 139 ++++++++++++++++++++++++ .history/README_20260629114834.md | 139 ++++++++++++++++++++++++ .history/README_20260629114913.md | 139 ++++++++++++++++++++++++ .history/README_20260629114915.md | 139 ++++++++++++++++++++++++ .history/README_20260629114929.md | 139 ++++++++++++++++++++++++ .history/README_20260629114933.md | 139 ++++++++++++++++++++++++ .history/README_20260629114951.md | 139 ++++++++++++++++++++++++ .history/README_20260629114953.md | 139 ++++++++++++++++++++++++ .history/README_20260629114957.md | 139 ++++++++++++++++++++++++ .history/README_20260629115003.md | 139 ++++++++++++++++++++++++ .history/README_20260629115008.md | 139 ++++++++++++++++++++++++ .history/README_20260629115044.md | 139 ++++++++++++++++++++++++ .history/README_20260629115049.md | 139 ++++++++++++++++++++++++ .history/README_20260629115050.md | 139 ++++++++++++++++++++++++ .history/README_20260629115054.md | 139 ++++++++++++++++++++++++ .history/README_20260629115057.md | 139 ++++++++++++++++++++++++ .history/README_20260629115112.md | 139 ++++++++++++++++++++++++ .history/README_20260629115114.md | 139 ++++++++++++++++++++++++ .history/README_20260629115115.md | 139 ++++++++++++++++++++++++ .history/README_20260629115118.md | 139 ++++++++++++++++++++++++ .history/README_20260629115119.md | 139 ++++++++++++++++++++++++ .history/README_20260629115124.md | 139 ++++++++++++++++++++++++ .history/README_20260629115127.md | 139 ++++++++++++++++++++++++ .history/README_20260629115131.md | 139 ++++++++++++++++++++++++ .history/README_20260629115134.md | 139 ++++++++++++++++++++++++ .history/README_20260629115140.md | 139 ++++++++++++++++++++++++ .history/README_20260629115141.md | 139 ++++++++++++++++++++++++ .history/README_20260629115146.md | 139 ++++++++++++++++++++++++ .history/README_20260629115240.md | 139 ++++++++++++++++++++++++ .history/README_20260629115245.md | 139 ++++++++++++++++++++++++ .history/README_20260629115257.md | 139 ++++++++++++++++++++++++ .history/README_20260629115307.md | 139 ++++++++++++++++++++++++ .history/README_20260629115314.md | 139 ++++++++++++++++++++++++ .history/README_20260629115319.md | 139 ++++++++++++++++++++++++ .history/README_20260629115323.md | 139 ++++++++++++++++++++++++ .history/README_20260629115326.md | 139 ++++++++++++++++++++++++ .history/README_20260629115333.md | 139 ++++++++++++++++++++++++ .history/README_20260629115338.md | 139 ++++++++++++++++++++++++ .history/README_20260629115343.md | 139 ++++++++++++++++++++++++ .history/README_20260629115359.md | 139 ++++++++++++++++++++++++ .history/README_20260629115407.md | 139 ++++++++++++++++++++++++ .history/README_20260629115547.md | 139 ++++++++++++++++++++++++ .history/README_20260629115549.md | 139 ++++++++++++++++++++++++ .history/README_20260629115555.md | 139 ++++++++++++++++++++++++ .history/README_20260629115557.md | 139 ++++++++++++++++++++++++ .history/README_20260629115600.md | 139 ++++++++++++++++++++++++ .history/README_20260629115605.md | 139 ++++++++++++++++++++++++ .history/README_20260629115611.md | 139 ++++++++++++++++++++++++ .history/README_20260629115617.md | 139 ++++++++++++++++++++++++ .history/README_20260629115620.md | 139 ++++++++++++++++++++++++ .history/README_20260629115638.md | 139 ++++++++++++++++++++++++ .history/README_20260629115640.md | 139 ++++++++++++++++++++++++ .history/README_20260629115641.md | 139 ++++++++++++++++++++++++ .history/README_20260629115648.md | 139 ++++++++++++++++++++++++ .history/README_20260629115743.md | 139 ++++++++++++++++++++++++ .history/README_20260629115803.md | 139 ++++++++++++++++++++++++ .history/README_20260629115804.md | 139 ++++++++++++++++++++++++ .history/README_20260629115827.md | 139 ++++++++++++++++++++++++ .history/README_20260629115832.md | 139 ++++++++++++++++++++++++ .history/README_20260629115833.md | 139 ++++++++++++++++++++++++ .history/README_20260629115852.md | 139 ++++++++++++++++++++++++ .history/README_20260629115857.md | 139 ++++++++++++++++++++++++ .history/README_20260629115901.md | 139 ++++++++++++++++++++++++ .history/README_20260629115907.md | 139 ++++++++++++++++++++++++ .history/README_20260629115926.md | 139 ++++++++++++++++++++++++ .history/README_20260629115930.md | 139 ++++++++++++++++++++++++ .history/README_20260629115941.md | 139 ++++++++++++++++++++++++ .history/README_20260629115948.md | 139 ++++++++++++++++++++++++ .history/README_20260629120004.md | 139 ++++++++++++++++++++++++ .history/README_20260629120007.md | 139 ++++++++++++++++++++++++ .history/README_20260629120015.md | 139 ++++++++++++++++++++++++ .history/README_20260629120025.md | 139 ++++++++++++++++++++++++ .history/README_20260629120032.md | 139 ++++++++++++++++++++++++ .history/README_20260629120047.md | 139 ++++++++++++++++++++++++ .history/README_20260629120050.md | 139 ++++++++++++++++++++++++ .history/README_20260629120054.md | 139 ++++++++++++++++++++++++ .history/README_20260629120056.md | 139 ++++++++++++++++++++++++ .history/README_20260629120105.md | 139 ++++++++++++++++++++++++ .history/README_20260629120123.md | 139 ++++++++++++++++++++++++ .history/README_20260629120127.md | 139 ++++++++++++++++++++++++ .history/README_20260629120138.md | 139 ++++++++++++++++++++++++ .history/README_20260629120142.md | 139 ++++++++++++++++++++++++ .history/README_20260629120217.md | 139 ++++++++++++++++++++++++ .history/README_20260629120230.md | 139 ++++++++++++++++++++++++ .history/README_20260629120234.md | 139 ++++++++++++++++++++++++ .history/README_20260629120238.md | 139 ++++++++++++++++++++++++ .history/README_20260629120244.md | 139 ++++++++++++++++++++++++ .history/README_20260629120251.md | 139 ++++++++++++++++++++++++ .history/README_20260629120252.md | 139 ++++++++++++++++++++++++ .history/README_20260629120255.md | 139 ++++++++++++++++++++++++ .history/README_20260629120258.md | 139 ++++++++++++++++++++++++ .history/README_20260629120301.md | 139 ++++++++++++++++++++++++ .history/README_20260629120305.md | 139 ++++++++++++++++++++++++ .history/README_20260629120310.md | 139 ++++++++++++++++++++++++ .history/README_de_DE_20260629103810.md | 134 +++++++++++++++++++++++ .history/README_de_DE_20260629113130.md | 136 +++++++++++++++++++++++ .history/README_de_DE_20260629113132.md | 136 +++++++++++++++++++++++ .history/README_de_DE_20260629113200.md | 136 +++++++++++++++++++++++ .history/README_de_DE_20260629113205.md | 136 +++++++++++++++++++++++ .history/README_de_DE_20260629113207.md | 136 +++++++++++++++++++++++ .history/README_de_DE_20260629113225.md | 136 +++++++++++++++++++++++ .history/README_de_DE_20260629113247.md | 136 +++++++++++++++++++++++ .history/README_en_US_20260629104419.md | 134 +++++++++++++++++++++++ .history/README_en_US_20260629112508.md | 136 +++++++++++++++++++++++ .history/README_en_US_20260629112510.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112617.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112621.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112627.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112628.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112635.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112648.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112656.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112702.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112706.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112707.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112735.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112738.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112747.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112748.md | 138 +++++++++++++++++++++++ .history/README_en_US_20260629112954.md | 138 +++++++++++++++++++++++ README.md | 4 + 124 files changed, 17043 insertions(+) create mode 100644 .history/README_20260629110901.md create mode 100644 .history/README_20260629114805.md create mode 100644 .history/README_20260629114807.md create mode 100644 .history/README_20260629114832.md create mode 100644 .history/README_20260629114834.md create mode 100644 .history/README_20260629114913.md create mode 100644 .history/README_20260629114915.md create mode 100644 .history/README_20260629114929.md create mode 100644 .history/README_20260629114933.md create mode 100644 .history/README_20260629114951.md create mode 100644 .history/README_20260629114953.md create mode 100644 .history/README_20260629114957.md create mode 100644 .history/README_20260629115003.md create mode 100644 .history/README_20260629115008.md create mode 100644 .history/README_20260629115044.md create mode 100644 .history/README_20260629115049.md create mode 100644 .history/README_20260629115050.md create mode 100644 .history/README_20260629115054.md create mode 100644 .history/README_20260629115057.md create mode 100644 .history/README_20260629115112.md create mode 100644 .history/README_20260629115114.md create mode 100644 .history/README_20260629115115.md create mode 100644 .history/README_20260629115118.md create mode 100644 .history/README_20260629115119.md create mode 100644 .history/README_20260629115124.md create mode 100644 .history/README_20260629115127.md create mode 100644 .history/README_20260629115131.md create mode 100644 .history/README_20260629115134.md create mode 100644 .history/README_20260629115140.md create mode 100644 .history/README_20260629115141.md create mode 100644 .history/README_20260629115146.md create mode 100644 .history/README_20260629115240.md create mode 100644 .history/README_20260629115245.md create mode 100644 .history/README_20260629115257.md create mode 100644 .history/README_20260629115307.md create mode 100644 .history/README_20260629115314.md create mode 100644 .history/README_20260629115319.md create mode 100644 .history/README_20260629115323.md create mode 100644 .history/README_20260629115326.md create mode 100644 .history/README_20260629115333.md create mode 100644 .history/README_20260629115338.md create mode 100644 .history/README_20260629115343.md create mode 100644 .history/README_20260629115359.md create mode 100644 .history/README_20260629115407.md create mode 100644 .history/README_20260629115547.md create mode 100644 .history/README_20260629115549.md create mode 100644 .history/README_20260629115555.md create mode 100644 .history/README_20260629115557.md create mode 100644 .history/README_20260629115600.md create mode 100644 .history/README_20260629115605.md create mode 100644 .history/README_20260629115611.md create mode 100644 .history/README_20260629115617.md create mode 100644 .history/README_20260629115620.md create mode 100644 .history/README_20260629115638.md create mode 100644 .history/README_20260629115640.md create mode 100644 .history/README_20260629115641.md create mode 100644 .history/README_20260629115648.md create mode 100644 .history/README_20260629115743.md create mode 100644 .history/README_20260629115803.md create mode 100644 .history/README_20260629115804.md create mode 100644 .history/README_20260629115827.md create mode 100644 .history/README_20260629115832.md create mode 100644 .history/README_20260629115833.md create mode 100644 .history/README_20260629115852.md create mode 100644 .history/README_20260629115857.md create mode 100644 .history/README_20260629115901.md create mode 100644 .history/README_20260629115907.md create mode 100644 .history/README_20260629115926.md create mode 100644 .history/README_20260629115930.md create mode 100644 .history/README_20260629115941.md create mode 100644 .history/README_20260629115948.md create mode 100644 .history/README_20260629120004.md create mode 100644 .history/README_20260629120007.md create mode 100644 .history/README_20260629120015.md create mode 100644 .history/README_20260629120025.md create mode 100644 .history/README_20260629120032.md create mode 100644 .history/README_20260629120047.md create mode 100644 .history/README_20260629120050.md create mode 100644 .history/README_20260629120054.md create mode 100644 .history/README_20260629120056.md create mode 100644 .history/README_20260629120105.md create mode 100644 .history/README_20260629120123.md create mode 100644 .history/README_20260629120127.md create mode 100644 .history/README_20260629120138.md create mode 100644 .history/README_20260629120142.md create mode 100644 .history/README_20260629120217.md create mode 100644 .history/README_20260629120230.md create mode 100644 .history/README_20260629120234.md create mode 100644 .history/README_20260629120238.md create mode 100644 .history/README_20260629120244.md create mode 100644 .history/README_20260629120251.md create mode 100644 .history/README_20260629120252.md create mode 100644 .history/README_20260629120255.md create mode 100644 .history/README_20260629120258.md create mode 100644 .history/README_20260629120301.md create mode 100644 .history/README_20260629120305.md create mode 100644 .history/README_20260629120310.md create mode 100644 .history/README_de_DE_20260629103810.md create mode 100644 .history/README_de_DE_20260629113130.md create mode 100644 .history/README_de_DE_20260629113132.md create mode 100644 .history/README_de_DE_20260629113200.md create mode 100644 .history/README_de_DE_20260629113205.md create mode 100644 .history/README_de_DE_20260629113207.md create mode 100644 .history/README_de_DE_20260629113225.md create mode 100644 .history/README_de_DE_20260629113247.md create mode 100644 .history/README_en_US_20260629104419.md create mode 100644 .history/README_en_US_20260629112508.md create mode 100644 .history/README_en_US_20260629112510.md create mode 100644 .history/README_en_US_20260629112617.md create mode 100644 .history/README_en_US_20260629112621.md create mode 100644 .history/README_en_US_20260629112627.md create mode 100644 .history/README_en_US_20260629112628.md create mode 100644 .history/README_en_US_20260629112635.md create mode 100644 .history/README_en_US_20260629112648.md create mode 100644 .history/README_en_US_20260629112656.md create mode 100644 .history/README_en_US_20260629112702.md create mode 100644 .history/README_en_US_20260629112706.md create mode 100644 .history/README_en_US_20260629112707.md create mode 100644 .history/README_en_US_20260629112735.md create mode 100644 .history/README_en_US_20260629112738.md create mode 100644 .history/README_en_US_20260629112747.md create mode 100644 .history/README_en_US_20260629112748.md create mode 100644 .history/README_en_US_20260629112954.md diff --git a/.history/README_20260629110901.md b/.history/README_20260629110901.md new file mode 100644 index 0000000..9338078 --- /dev/null +++ b/.history/README_20260629110901.md @@ -0,0 +1,135 @@ +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114805.md b/.history/README_20260629114805.md new file mode 100644 index 0000000..775ff22 --- /dev/null +++ b/.history/README_20260629114805.md @@ -0,0 +1,137 @@ + + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114807.md b/.history/README_20260629114807.md new file mode 100644 index 0000000..4a2b053 --- /dev/null +++ b/.history/README_20260629114807.md @@ -0,0 +1,137 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114832.md b/.history/README_20260629114832.md new file mode 100644 index 0000000..7bc6e34 --- /dev/null +++ b/.history/README_20260629114832.md @@ -0,0 +1,139 @@ + + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114834.md b/.history/README_20260629114834.md new file mode 100644 index 0000000..690acda --- /dev/null +++ b/.history/README_20260629114834.md @@ -0,0 +1,139 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114913.md b/.history/README_20260629114913.md new file mode 100644 index 0000000..e9c0986 --- /dev/null +++ b/.history/README_20260629114913.md @@ -0,0 +1,139 @@ +> *Thanks community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114915.md b/.history/README_20260629114915.md new file mode 100644 index 0000000..e0bd060 --- /dev/null +++ b/.history/README_20260629114915.md @@ -0,0 +1,139 @@ +> *Thanks to community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114929.md b/.history/README_20260629114929.md new file mode 100644 index 0000000..a48a15e --- /dev/null +++ b/.history/README_20260629114929.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114933.md b/.history/README_20260629114933.md new file mode 100644 index 0000000..240d5e3 --- /dev/null +++ b/.history/README_20260629114933.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114951.md b/.history/README_20260629114951.md new file mode 100644 index 0000000..21b21db --- /dev/null +++ b/.history/README_20260629114951.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114953.md b/.history/README_20260629114953.md new file mode 100644 index 0000000..7db0a16 --- /dev/null +++ b/.history/README_20260629114953.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629114957.md b/.history/README_20260629114957.md new file mode 100644 index 0000000..b64449f --- /dev/null +++ b/.history/README_20260629114957.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115003.md b/.history/README_20260629115003.md new file mode 100644 index 0000000..720e6e5 --- /dev/null +++ b/.history/README_20260629115003.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115008.md b/.history/README_20260629115008.md new file mode 100644 index 0000000..e39d981 --- /dev/null +++ b/.history/README_20260629115008.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115044.md b/.history/README_20260629115044.md new file mode 100644 index 0000000..cead1c0 --- /dev/null +++ b/.history/README_20260629115044.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations () of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115049.md b/.history/README_20260629115049.md new file mode 100644 index 0000000..57d4fc3 --- /dev/null +++ b/.history/README_20260629115049.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and ) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115050.md b/.history/README_20260629115050.md new file mode 100644 index 0000000..11f787d --- /dev/null +++ b/.history/README_20260629115050.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and ) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115054.md b/.history/README_20260629115054.md new file mode 100644 index 0000000..1357d7d --- /dev/null +++ b/.history/README_20260629115054.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and Germa>) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115057.md b/.history/README_20260629115057.md new file mode 100644 index 0000000..6634465 --- /dev/null +++ b/.history/README_20260629115057.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115112.md b/.history/README_20260629115112.md new file mode 100644 index 0000000..31f96c4 --- /dev/null +++ b/.history/README_20260629115112.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115114.md b/.history/README_20260629115114.md new file mode 100644 index 0000000..15f452b --- /dev/null +++ b/.history/README_20260629115114.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German _ of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115115.md b/.history/README_20260629115115.md new file mode 100644 index 0000000..7360468 --- /dev/null +++ b/.history/README_20260629115115.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115118.md b/.history/README_20260629115118.md new file mode 100644 index 0000000..7360468 --- /dev/null +++ b/.history/README_20260629115118.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115119.md b/.history/README_20260629115119.md new file mode 100644 index 0000000..a87f0cb --- /dev/null +++ b/.history/README_20260629115119.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115124.md b/.history/README_20260629115124.md new file mode 100644 index 0000000..a8bb7a2 --- /dev/null +++ b/.history/README_20260629115124.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115127.md b/.history/README_20260629115127.md new file mode 100644 index 0000000..a489aa4 --- /dev/null +++ b/.history/README_20260629115127.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115131.md b/.history/README_20260629115131.md new file mode 100644 index 0000000..4ccf3c8 --- /dev/null +++ b/.history/README_20260629115131.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115134.md b/.history/README_20260629115134.md new file mode 100644 index 0000000..2bd91fd --- /dev/null +++ b/.history/README_20260629115134.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115140.md b/.history/README_20260629115140.md new file mode 100644 index 0000000..3b5c264 --- /dev/null +++ b/.history/README_20260629115140.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German*+ – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115141.md b/.history/README_20260629115141.md new file mode 100644 index 0000000..6f67d3f --- /dev/null +++ b/.history/README_20260629115141.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115146.md b/.history/README_20260629115146.md new file mode 100644 index 0000000..b50418f --- /dev/null +++ b/.history/README_20260629115146.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115240.md b/.history/README_20260629115240.md new file mode 100644 index 0000000..6fd9974 --- /dev/null +++ b/.history/README_20260629115240.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> * ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115245.md b/.history/README_20260629115245.md new file mode 100644 index 0000000..2bf2972 --- /dev/null +++ b/.history/README_20260629115245.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115257.md b/.history/README_20260629115257.md new file mode 100644 index 0000000..98824ed --- /dev/null +++ b/.history/README_20260629115257.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub) ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115307.md b/.history/README_20260629115307.md new file mode 100644 index 0000000..8ccd7c3 --- /dev/null +++ b/.history/README_20260629115307.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115314.md b/.history/README_20260629115314.md new file mode 100644 index 0000000..9a6dfc5 --- /dev/null +++ b/.history/README_20260629115314.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115319.md b/.history/README_20260629115319.md new file mode 100644 index 0000000..7f3b9e3 --- /dev/null +++ b/.history/README_20260629115319.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115323.md b/.history/README_20260629115323.md new file mode 100644 index 0000000..d962cce --- /dev/null +++ b/.history/README_20260629115323.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115326.md b/.history/README_20260629115326.md new file mode 100644 index 0000000..373f6a3 --- /dev/null +++ b/.history/README_20260629115326.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115333.md b/.history/README_20260629115333.md new file mode 100644 index 0000000..742dbe3 --- /dev/null +++ b/.history/README_20260629115333.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115338.md b/.history/README_20260629115338.md new file mode 100644 index 0000000..508b1f0 --- /dev/null +++ b/.history/README_20260629115338.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115343.md b/.history/README_20260629115343.md new file mode 100644 index 0000000..9ca6454 --- /dev/null +++ b/.history/README_20260629115343.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115359.md b/.history/README_20260629115359.md new file mode 100644 index 0000000..515d94e --- /dev/null +++ b/.history/README_20260629115359.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) . Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115407.md b/.history/README_20260629115407.md new file mode 100644 index 0000000..66daa68 --- /dev/null +++ b/.history/README_20260629115407.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115547.md b/.history/README_20260629115547.md new file mode 100644 index 0000000..4334c73 --- /dev/null +++ b/.history/README_20260629115547.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> * [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115549.md b/.history/README_20260629115549.md new file mode 100644 index 0000000..365c656 --- /dev/null +++ b/.history/README_20260629115549.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115555.md b/.history/README_20260629115555.md new file mode 100644 index 0000000..bd015b0 --- /dev/null +++ b/.history/README_20260629115555.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Bet [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115557.md b/.history/README_20260629115557.md new file mode 100644 index 0000000..0e6b55e --- /dev/null +++ b/.history/README_20260629115557.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrgas [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115600.md b/.history/README_20260629115600.md new file mode 100644 index 0000000..a34afc1 --- /dev/null +++ b/.history/README_20260629115600.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115605.md b/.history/README_20260629115605.md new file mode 100644 index 0000000..40dd30b --- /dev/null +++ b/.history/README_20260629115605.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115611.md b/.history/README_20260629115611.md new file mode 100644 index 0000000..ff5e15c --- /dev/null +++ b/.history/README_20260629115611.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), der zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115617.md b/.history/README_20260629115617.md new file mode 100644 index 0000000..8fc313f --- /dev/null +++ b/.history/README_20260629115617.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115620.md b/.history/README_20260629115620.md new file mode 100644 index 0000000..2638ecb --- /dev/null +++ b/.history/README_20260629115620.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115638.md b/.history/README_20260629115638.md new file mode 100644 index 0000000..2218fc2 --- /dev/null +++ b/.history/README_20260629115638.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi)Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115640.md b/.history/README_20260629115640.md new file mode 100644 index 0000000..678522c --- /dev/null +++ b/.history/README_20260629115640.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi).Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115641.md b/.history/README_20260629115641.md new file mode 100644 index 0000000..6408f82 --- /dev/null +++ b/.history/README_20260629115641.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115648.md b/.history/README_20260629115648.md new file mode 100644 index 0000000..c967043 --- /dev/null +++ b/.history/README_20260629115648.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115743.md b/.history/README_20260629115743.md new file mode 100644 index 0000000..db854ef --- /dev/null +++ b/.history/README_20260629115743.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115803.md b/.history/README_20260629115803.md new file mode 100644 index 0000000..db5fa9e --- /dev/null +++ b/.history/README_20260629115803.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115804.md b/.history/README_20260629115804.md new file mode 100644 index 0000000..8fc313f --- /dev/null +++ b/.history/README_20260629115804.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115827.md b/.history/README_20260629115827.md new file mode 100644 index 0000000..a489aa4 --- /dev/null +++ b/.history/README_20260629115827.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115832.md b/.history/README_20260629115832.md new file mode 100644 index 0000000..4ccf3c8 --- /dev/null +++ b/.history/README_20260629115832.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115833.md b/.history/README_20260629115833.md new file mode 100644 index 0000000..2bd91fd --- /dev/null +++ b/.history/README_20260629115833.md @@ -0,0 +1,139 @@ +> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115852.md b/.history/README_20260629115852.md new file mode 100644 index 0000000..da4bf38 --- /dev/null +++ b/.history/README_20260629115852.md @@ -0,0 +1,139 @@ +> *Thanks to a community co there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115857.md b/.history/README_20260629115857.md new file mode 100644 index 0000000..68be83c --- /dev/null +++ b/.history/README_20260629115857.md @@ -0,0 +1,139 @@ +> *Thanks to a community contrib there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115901.md b/.history/README_20260629115901.md new file mode 100644 index 0000000..655711d --- /dev/null +++ b/.history/README_20260629115901.md @@ -0,0 +1,139 @@ +> *Thanks to a community contribution there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115907.md b/.history/README_20260629115907.md new file mode 100644 index 0000000..75bbdc9 --- /dev/null +++ b/.history/README_20260629115907.md @@ -0,0 +1,139 @@ +> *Thanks to a community contribution there are now two translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115926.md b/.history/README_20260629115926.md new file mode 100644 index 0000000..6febe8e --- /dev/null +++ b/.history/README_20260629115926.md @@ -0,0 +1,139 @@ +> *Thanks to a community there are now two translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115930.md b/.history/README_20260629115930.md new file mode 100644 index 0000000..a16c243 --- /dev/null +++ b/.history/README_20260629115930.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now two translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115941.md b/.history/README_20260629115941.md new file mode 100644 index 0000000..f208aa6 --- /dev/null +++ b/.history/README_20260629115941.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629115948.md b/.history/README_20260629115948.md new file mode 100644 index 0000000..f12743d --- /dev/null +++ b/.history/README_20260629115948.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120004.md b/.history/README_20260629120004.md new file mode 100644 index 0000000..3b2296b --- /dev/null +++ b/.history/README_20260629120004.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120007.md b/.history/README_20260629120007.md new file mode 100644 index 0000000..f208aa6 --- /dev/null +++ b/.history/README_20260629120007.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120015.md b/.history/README_20260629120015.md new file mode 100644 index 0000000..8699ba8 --- /dev/null +++ b/.history/README_20260629120015.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now two additional – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120025.md b/.history/README_20260629120025.md new file mode 100644 index 0000000..96f2b05 --- /dev/null +++ b/.history/README_20260629120025.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now two additional Read – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120032.md b/.history/README_20260629120032.md new file mode 100644 index 0000000..4d8e030 --- /dev/null +++ b/.history/README_20260629120032.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120047.md b/.history/README_20260629120047.md new file mode 100644 index 0000000..80617a8 --- /dev/null +++ b/.history/README_20260629120047.md @@ -0,0 +1,139 @@ +> *Thanks to a community contrib there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120050.md b/.history/README_20260629120050.md new file mode 100644 index 0000000..666d45e --- /dev/null +++ b/.history/README_20260629120050.md @@ -0,0 +1,139 @@ +> *Thanks to a community contribution there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120054.md b/.history/README_20260629120054.md new file mode 100644 index 0000000..1a0e3c0 --- /dev/null +++ b/.history/README_20260629120054.md @@ -0,0 +1,139 @@ +> *Thanks to a community contributi there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120056.md b/.history/README_20260629120056.md new file mode 100644 index 0000000..666d45e --- /dev/null +++ b/.history/README_20260629120056.md @@ -0,0 +1,139 @@ +> *Thanks to a community contribution there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120105.md b/.history/README_20260629120105.md new file mode 100644 index 0000000..48c8aa2 --- /dev/null +++ b/.history/README_20260629120105.md @@ -0,0 +1,139 @@ +> *Thanks to a community contribution there are now two additional README.md files – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120123.md b/.history/README_20260629120123.md new file mode 100644 index 0000000..d06ebac --- /dev/null +++ b/.history/README_20260629120123.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation there are now two additional README.md files – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120127.md b/.history/README_20260629120127.md new file mode 100644 index 0000000..e4c3f8e --- /dev/null +++ b/.history/README_20260629120127.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120138.md b/.history/README_20260629120138.md new file mode 100644 index 0000000..e4c9c01 --- /dev/null +++ b/.history/README_20260629120138.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120142.md b/.history/README_20260629120142.md new file mode 100644 index 0000000..ab93b20 --- /dev/null +++ b/.history/README_20260629120142.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120217.md b/.history/README_20260629120217.md new file mode 100644 index 0000000..06779a4 --- /dev/null +++ b/.history/README_20260629120217.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120230.md b/.history/README_20260629120230.md new file mode 100644 index 0000000..2decb41 --- /dev/null +++ b/.history/README_20260629120230.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120234.md b/.history/README_20260629120234.md new file mode 100644 index 0000000..eb0d921 --- /dev/null +++ b/.history/README_20260629120234.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120238.md b/.history/README_20260629120238.md new file mode 100644 index 0000000..1468de4 --- /dev/null +++ b/.history/README_20260629120238.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120244.md b/.history/README_20260629120244.md new file mode 100644 index 0000000..65e5ff8 --- /dev/null +++ b/.history/README_20260629120244.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.m des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120251.md b/.history/README_20260629120251.md new file mode 100644 index 0000000..87a0128 --- /dev/null +++ b/.history/README_20260629120251.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120252.md b/.history/README_20260629120252.md new file mode 100644 index 0000000..7b7586d --- /dev/null +++ b/.history/README_20260629120252.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120255.md b/.history/README_20260629120255.md new file mode 100644 index 0000000..433feb8 --- /dev/null +++ b/.history/README_20260629120255.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120258.md b/.history/README_20260629120258.md new file mode 100644 index 0000000..10efed9 --- /dev/null +++ b/.history/README_20260629120258.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – E des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120301.md b/.history/README_20260629120301.md new file mode 100644 index 0000000..7b6bca7 --- /dev/null +++ b/.history/README_20260629120301.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120305.md b/.history/README_20260629120305.md new file mode 100644 index 0000000..2b636ed --- /dev/null +++ b/.history/README_20260629120305.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch und Deutsch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_20260629120310.md b/.history/README_20260629120310.md new file mode 100644 index 0000000..3aebcdc --- /dev/null +++ b/.history/README_20260629120310.md @@ -0,0 +1,139 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch und Deutsch – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + +**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** + +## 📣 赞助声明 +欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! +如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 + +![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +金额不限,仅限微信;备注留名,不胜感谢 + +## 📣 功能说明 +### ☑️ 状态栏命令菜单 +- 支持【状态栏菜单】激活语法格式刷功能 +- 支持【状态栏菜单】执行实用增强命令 +- 支持【状态栏菜单】开启插件设置面板及快捷键面板 +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ 转换内部链接 +**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** +![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- 若未选中文本,视光标位置分两种情况处理 + - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 + - 若光标未处在链接当中,则直接输出\[\[字符 +- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 +- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 + +**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** +![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** + +### ☑️ 智能符号 +**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** +![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) + - 》 → > + - 、 → / + +- 判断前两字符并**替换为对应的符号** + - 【( 或 [( 替换为 〖 + - (< 或 (< 替换为 〈 + - (【 或 ([ 替换为 〔 + - “ 【 或 "[ 替换为 『 + - ‘ 【 或 '[ 替换为 「 + - …… 替换为 ^ + +- 判断光标以前最近的前括号,会**匹配对应的后括号** + - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 + - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 + +- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 + - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% + +- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** + - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 + +- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - 也支持 js css ph c java py等语言名称缩写 + +- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** +![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ 转换 Html 语法 +- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 +- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 + +### ☑️ 转换 MarkDown 语法 +- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 +- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 +- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 +- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 +- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 +- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 +- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 +- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 +- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 +- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 +- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 + +- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 +- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 + +### ☑️ 增减常见括号 +- 【选文】「未设置」:在选文两端添加或去除 【】符号 +- (选文)「未设置」:在选文两端添加或去除 ()符号 +- 「选文」「未设置」:在选文两端添加或去除 「」符号 +- 《选文》「未设置」:在选文两端添加或去除 《》符号 + +### ☑️ 全局转换操作 +- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 +- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 +- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 +- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 +- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 + +### ☑️ 个性增强功能 +- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 +- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 +- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) +- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 +- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 +- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 +- 选择当前整段「未设置」:选择光标所在的当前整段文本。 +- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 +- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 +- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 +- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 +- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 + +### ☑️ 插入或去除空行(空格) +- 编辑区内按下回车补加一次换行(有开关) +- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 +- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 +- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 +- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 +- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 +- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 +- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 +- 去除所有空格「未设置」:去除正文中所有的全、半角空格 + + +## 📣 安装方法 +【增强编辑】插件短期内不会上架社区商店 + +### ☑️ 手动安装: +手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. + +### ☑️ BRAT 插件安装: +- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) +- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing + diff --git a/.history/README_de_DE_20260629103810.md b/.history/README_de_DE_20260629103810.md new file mode 100644 index 0000000..923f8d6 --- /dev/null +++ b/.history/README_de_DE_20260629103810.md @@ -0,0 +1,134 @@ +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113130.md b/.history/README_de_DE_20260629113130.md new file mode 100644 index 0000000..c1cc0f1 --- /dev/null +++ b/.history/README_de_DE_20260629113130.md @@ -0,0 +1,136 @@ + + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113132.md b/.history/README_de_DE_20260629113132.md new file mode 100644 index 0000000..d301213 --- /dev/null +++ b/.history/README_de_DE_20260629113132.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Übersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113200.md b/.history/README_de_DE_20260629113200.md new file mode 100644 index 0000000..528795d --- /dev/null +++ b/.history/README_de_DE_20260629113200.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitragbersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113205.md b/.history/README_de_DE_20260629113205.md new file mode 100644 index 0000000..c620c04 --- /dev/null +++ b/.history/README_de_DE_20260629113205.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von bersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113207.md b/.history/README_de_DE_20260629113207.md new file mode 100644 index 0000000..adf5f3e --- /dev/null +++ b/.history/README_de_DE_20260629113207.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von übersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113225.md b/.history/README_de_DE_20260629113225.md new file mode 100644 index 0000000..48fdef9 --- /dev/null +++ b/.history/README_de_DE_20260629113225.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub) übersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113247.md b/.history/README_de_DE_20260629113247.md new file mode 100644 index 0000000..48fdef9 --- /dev/null +++ b/.history/README_de_DE_20260629113247.md @@ -0,0 +1,136 @@ +> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub) übersetzt mit KI-Unterstützung (Claude).* + +**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** + +## 📣 Spendenaufruf +Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! +Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. + +![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank + +## 📣 Funktionsübersicht +### ☑️ Statusleisten-Befehlsmenü +- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] +- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] +- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Interne Links umwandeln +**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** +![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: + - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt + - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben +- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. +- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. + +**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** +![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** + +### ☑️ Intelligente Symbole +**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** +![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): + - 》 → > + - 、 → / + +- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: + - 【( oder [( → 〖 + - (< oder (< → 〈 + - (【 oder ([ → 〔 + - " 【 oder "[ → 『 + - ' 【 oder '[ → 「 + - …… → ^ + +- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: + - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: + - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% + +- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: + - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. + +- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. + +- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** +![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ HTML-Syntax umwandeln +- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln +- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln + +### ☑️ Markdown-Syntax umwandeln +- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln +- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln +- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln +- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln +- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln +- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln +- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln +- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln +- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] +- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln +- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben + +- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen +- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren + +### ☑️ Klammern hinzufügen oder entfernen +- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen +- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen +- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen +- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen + +### ☑️ Globale Umwandlungsoperationen +- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. +- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. +- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln +- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln +- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln + +### ☑️ Individuelle Erweiterungsfunktionen +- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen +- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. +- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) +- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen +- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen +- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen +- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen +- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen +- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren +- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen +- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten +- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen + +### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen +- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) +- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen +- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen +- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen +- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen +- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen +- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen +- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen + + +## 📣 Installation +Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. + +### ☑️ Manuelle Installation: +Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. + +### ☑️ Installation über BRAT-Plugin: +- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) +- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629104419.md b/.history/README_en_US_20260629104419.md new file mode 100644 index 0000000..35f84bf --- /dev/null +++ b/.history/README_en_US_20260629104419.md @@ -0,0 +1,134 @@ +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112508.md b/.history/README_en_US_20260629112508.md new file mode 100644 index 0000000..f2fa05e --- /dev/null +++ b/.history/README_en_US_20260629112508.md @@ -0,0 +1,136 @@ + + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112510.md b/.history/README_en_US_20260629112510.md new file mode 100644 index 0000000..519987f --- /dev/null +++ b/.history/README_en_US_20260629112510.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112617.md b/.history/README_en_US_20260629112617.md new file mode 100644 index 0000000..410333e --- /dev/null +++ b/.history/README_en_US_20260629112617.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). IniTranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112621.md b/.history/README_en_US_20260629112621.md new file mode 100644 index 0000000..29dacae --- /dev/null +++ b/.history/README_en_US_20260629112621.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). InitiTranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112627.md b/.history/README_en_US_20260629112627.md new file mode 100644 index 0000000..d8359f9 --- /dev/null +++ b/.history/README_en_US_20260629112627.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). InitializedTranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112628.md b/.history/README_en_US_20260629112628.md new file mode 100644 index 0000000..bf7b4f8 --- /dev/null +++ b/.history/README_en_US_20260629112628.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112635.md b/.history/README_en_US_20260629112635.md new file mode 100644 index 0000000..e266c4b --- /dev/null +++ b/.history/README_en_US_20260629112635.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by netzbubTranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112648.md b/.history/README_en_US_20260629112648.md new file mode 100644 index 0000000..cb38881 --- /dev/null +++ b/.history/README_en_US_20260629112648.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbubTranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112656.md b/.history/README_en_US_20260629112656.md new file mode 100644 index 0000000..61fb0f0 --- /dev/null +++ b/.history/README_en_US_20260629112656.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub]Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112702.md b/.history/README_en_US_20260629112702.md new file mode 100644 index 0000000..1b1690d --- /dev/null +++ b/.history/README_en_US_20260629112702.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub] Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112706.md b/.history/README_en_US_20260629112706.md new file mode 100644 index 0000000..61fb0f0 --- /dev/null +++ b/.history/README_en_US_20260629112706.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub]Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112707.md b/.history/README_en_US_20260629112707.md new file mode 100644 index 0000000..84bfe17 --- /dev/null +++ b/.history/README_en_US_20260629112707.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112735.md b/.history/README_en_US_20260629112735.md new file mode 100644 index 0000000..c1dc93f --- /dev/null +++ b/.history/README_en_US_20260629112735.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbubTranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112738.md b/.history/README_en_US_20260629112738.md new file mode 100644 index 0000000..21b63eb --- /dev/null +++ b/.history/README_en_US_20260629112738.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbub) Translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112747.md b/.history/README_en_US_20260629112747.md new file mode 100644 index 0000000..d2dc6d7 --- /dev/null +++ b/.history/README_en_US_20260629112747.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbub) ranslated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112748.md b/.history/README_en_US_20260629112748.md new file mode 100644 index 0000000..6187122 --- /dev/null +++ b/.history/README_en_US_20260629112748.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbub) translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112954.md b/.history/README_en_US_20260629112954.md new file mode 100644 index 0000000..c217ca1 --- /dev/null +++ b/.history/README_en_US_20260629112954.md @@ -0,0 +1,138 @@ +> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub) translated with AI assistance (Claude).* + +--- + +**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** + +## 📣 Sponsorship +Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! +If this plugin improves your editing efficiency, consider supporting it financially. + +![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) +Any amount, WeChat only; please include your name in the note — thank you + +## 📣 Feature Overview +### ☑️ Status Bar Command Menu +- Supports activating the syntax format-painter function via the [status bar menu] +- Supports executing useful enhanced commands via the [status bar menu] +- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] +![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) + +### ☑️ Convert Internal Links +**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** +![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) + +- If no text is selected, behavior depends on cursor position: + - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed + - If the cursor is not inside a link, \[\[ is output directly +- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. +- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. + +**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** +![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) + +**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** + +### ☑️ Smart Symbols +**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** +![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) + +- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): + - 》 → > + - 、 → / + +- **Replace with corresponding symbols** based on the two preceding characters: + - 【( or [( → 〖 + - (< or (< → 〈 + - (【 or ([ → 〔 + - " 【 or "[ → 『 + - ' 【 or '[ → 「 + - …… → ^ + +- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: + - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. + - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 + +- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: + - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% + +- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: + - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. + +- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: + - dv → ```dataview``` + - qy → ```query``` + - mm → ```mermaid``` + - Also supports abbreviations for js, css, php, c, java, py, etc. + +- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** +![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) + +### ☑️ Convert HTML Syntax +- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text +- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text + +### ☑️ Convert Markdown Syntax +- Convert bold "Alt+C": apply or remove **bold** formatting to selected text +- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text +- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text +- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text +- Convert underline "Alt+H": apply or remove underline formatting to selected text +- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text +- Convert superscript "Alt+U": apply or remove superscript formatting to selected text +- Convert subscript "Alt+N": apply or remove subscript formatting to selected text +- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] +- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text +- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N + +- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text +- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard + +### ☑️ Add or Remove Common Brackets +- 【selected text】 "unassigned": add or remove 【】symbols around selected text +- (selected text) "unassigned": add or remove ()symbols around selected text +- 「selected text」 "unassigned": add or remove 「」symbols around selected text +- 《selected text》 "unassigned": add or remove 《》symbols around selected text + +### ☑️ Global Conversion Operations +- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. +- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. +- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax +- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional +- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified + +### ☑️ Additional Enhancement Features +- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables +- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. +- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) +- Search current text "unassigned": search selected content in the current document via the search panel +- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note +- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes +- Select entire paragraph "unassigned": select the entire paragraph the cursor is in +- Select entire sentence "unassigned": select the entire sentence the cursor is in +- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading +- Set current filename "unassigned": use selected text as the filename of the current note +- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page +- Get relative path "unassigned": get the relative path of the current note within the vault directory + +### ☑️ Insert or Remove Blank Lines (Spaces) +- An extra line break is added when pressing Enter in the editor (toggleable) +- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note +- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note +- Insert blank line above "unassigned": insert a blank line above the current line +- Insert blank line below "unassigned": insert a blank line below the current line +- Append trailing spaces "unassigned": append two spaces to the end of each text line +- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line +- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters +- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text + + +## 📣 Installation +The Enhanced Editing plugin will not be available in the community plugin store in the near future. + +### ☑️ Manual Installation: +Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. + +### ☑️ Install via BRAT Plugin: +- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) +- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/README.md b/README.md index 9338078..3aebcdc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* + +> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch und Deutsch – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* + **【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** ## 📣 赞助声明 From 1681b7b7552f73077ccd0c8437527fdb883cdacc Mon Sep 17 00:00:00 2001 From: netzbub <77230315+netzbub@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:17:59 +0200 Subject: [PATCH 3/3] Remove history from tracking, add .gitignore --- .gitignore | 2 + .history/README_20260629110901.md | 135 ----------------------- .history/README_20260629114805.md | 137 ----------------------- .history/README_20260629114807.md | 137 ----------------------- .history/README_20260629114832.md | 139 ------------------------ .history/README_20260629114834.md | 139 ------------------------ .history/README_20260629114913.md | 139 ------------------------ .history/README_20260629114915.md | 139 ------------------------ .history/README_20260629114929.md | 139 ------------------------ .history/README_20260629114933.md | 139 ------------------------ .history/README_20260629114951.md | 139 ------------------------ .history/README_20260629114953.md | 139 ------------------------ .history/README_20260629114957.md | 139 ------------------------ .history/README_20260629115003.md | 139 ------------------------ .history/README_20260629115008.md | 139 ------------------------ .history/README_20260629115044.md | 139 ------------------------ .history/README_20260629115049.md | 139 ------------------------ .history/README_20260629115050.md | 139 ------------------------ .history/README_20260629115054.md | 139 ------------------------ .history/README_20260629115057.md | 139 ------------------------ .history/README_20260629115112.md | 139 ------------------------ .history/README_20260629115114.md | 139 ------------------------ .history/README_20260629115115.md | 139 ------------------------ .history/README_20260629115118.md | 139 ------------------------ .history/README_20260629115119.md | 139 ------------------------ .history/README_20260629115124.md | 139 ------------------------ .history/README_20260629115127.md | 139 ------------------------ .history/README_20260629115131.md | 139 ------------------------ .history/README_20260629115134.md | 139 ------------------------ .history/README_20260629115140.md | 139 ------------------------ .history/README_20260629115141.md | 139 ------------------------ .history/README_20260629115146.md | 139 ------------------------ .history/README_20260629115240.md | 139 ------------------------ .history/README_20260629115245.md | 139 ------------------------ .history/README_20260629115257.md | 139 ------------------------ .history/README_20260629115307.md | 139 ------------------------ .history/README_20260629115314.md | 139 ------------------------ .history/README_20260629115319.md | 139 ------------------------ .history/README_20260629115323.md | 139 ------------------------ .history/README_20260629115326.md | 139 ------------------------ .history/README_20260629115333.md | 139 ------------------------ .history/README_20260629115338.md | 139 ------------------------ .history/README_20260629115343.md | 139 ------------------------ .history/README_20260629115359.md | 139 ------------------------ .history/README_20260629115407.md | 139 ------------------------ .history/README_20260629115547.md | 139 ------------------------ .history/README_20260629115549.md | 139 ------------------------ .history/README_20260629115555.md | 139 ------------------------ .history/README_20260629115557.md | 139 ------------------------ .history/README_20260629115600.md | 139 ------------------------ .history/README_20260629115605.md | 139 ------------------------ .history/README_20260629115611.md | 139 ------------------------ .history/README_20260629115617.md | 139 ------------------------ .history/README_20260629115620.md | 139 ------------------------ .history/README_20260629115638.md | 139 ------------------------ .history/README_20260629115640.md | 139 ------------------------ .history/README_20260629115641.md | 139 ------------------------ .history/README_20260629115648.md | 139 ------------------------ .history/README_20260629115743.md | 139 ------------------------ .history/README_20260629115803.md | 139 ------------------------ .history/README_20260629115804.md | 139 ------------------------ .history/README_20260629115827.md | 139 ------------------------ .history/README_20260629115832.md | 139 ------------------------ .history/README_20260629115833.md | 139 ------------------------ .history/README_20260629115852.md | 139 ------------------------ .history/README_20260629115857.md | 139 ------------------------ .history/README_20260629115901.md | 139 ------------------------ .history/README_20260629115907.md | 139 ------------------------ .history/README_20260629115926.md | 139 ------------------------ .history/README_20260629115930.md | 139 ------------------------ .history/README_20260629115941.md | 139 ------------------------ .history/README_20260629115948.md | 139 ------------------------ .history/README_20260629120004.md | 139 ------------------------ .history/README_20260629120007.md | 139 ------------------------ .history/README_20260629120015.md | 139 ------------------------ .history/README_20260629120025.md | 139 ------------------------ .history/README_20260629120032.md | 139 ------------------------ .history/README_20260629120047.md | 139 ------------------------ .history/README_20260629120050.md | 139 ------------------------ .history/README_20260629120054.md | 139 ------------------------ .history/README_20260629120056.md | 139 ------------------------ .history/README_20260629120105.md | 139 ------------------------ .history/README_20260629120123.md | 139 ------------------------ .history/README_20260629120127.md | 139 ------------------------ .history/README_20260629120138.md | 139 ------------------------ .history/README_20260629120142.md | 139 ------------------------ .history/README_20260629120217.md | 139 ------------------------ .history/README_20260629120230.md | 139 ------------------------ .history/README_20260629120234.md | 139 ------------------------ .history/README_20260629120238.md | 139 ------------------------ .history/README_20260629120244.md | 139 ------------------------ .history/README_20260629120251.md | 139 ------------------------ .history/README_20260629120252.md | 139 ------------------------ .history/README_20260629120255.md | 139 ------------------------ .history/README_20260629120258.md | 139 ------------------------ .history/README_20260629120301.md | 139 ------------------------ .history/README_20260629120305.md | 139 ------------------------ .history/README_20260629120310.md | 139 ------------------------ .history/README_de_DE_20260629103810.md | 134 ----------------------- .history/README_de_DE_20260629113130.md | 136 ----------------------- .history/README_de_DE_20260629113132.md | 136 ----------------------- .history/README_de_DE_20260629113200.md | 136 ----------------------- .history/README_de_DE_20260629113205.md | 136 ----------------------- .history/README_de_DE_20260629113207.md | 136 ----------------------- .history/README_de_DE_20260629113225.md | 136 ----------------------- .history/README_de_DE_20260629113247.md | 136 ----------------------- .history/README_en_US_20260629104419.md | 134 ----------------------- .history/README_en_US_20260629112508.md | 136 ----------------------- .history/README_en_US_20260629112510.md | 138 ----------------------- .history/README_en_US_20260629112617.md | 138 ----------------------- .history/README_en_US_20260629112621.md | 138 ----------------------- .history/README_en_US_20260629112627.md | 138 ----------------------- .history/README_en_US_20260629112628.md | 138 ----------------------- .history/README_en_US_20260629112635.md | 138 ----------------------- .history/README_en_US_20260629112648.md | 138 ----------------------- .history/README_en_US_20260629112656.md | 138 ----------------------- .history/README_en_US_20260629112702.md | 138 ----------------------- .history/README_en_US_20260629112706.md | 138 ----------------------- .history/README_en_US_20260629112707.md | 138 ----------------------- .history/README_en_US_20260629112735.md | 138 ----------------------- .history/README_en_US_20260629112738.md | 138 ----------------------- .history/README_en_US_20260629112747.md | 138 ----------------------- .history/README_en_US_20260629112748.md | 138 ----------------------- .history/README_en_US_20260629112954.md | 138 ----------------------- 124 files changed, 2 insertions(+), 17039 deletions(-) create mode 100644 .gitignore delete mode 100644 .history/README_20260629110901.md delete mode 100644 .history/README_20260629114805.md delete mode 100644 .history/README_20260629114807.md delete mode 100644 .history/README_20260629114832.md delete mode 100644 .history/README_20260629114834.md delete mode 100644 .history/README_20260629114913.md delete mode 100644 .history/README_20260629114915.md delete mode 100644 .history/README_20260629114929.md delete mode 100644 .history/README_20260629114933.md delete mode 100644 .history/README_20260629114951.md delete mode 100644 .history/README_20260629114953.md delete mode 100644 .history/README_20260629114957.md delete mode 100644 .history/README_20260629115003.md delete mode 100644 .history/README_20260629115008.md delete mode 100644 .history/README_20260629115044.md delete mode 100644 .history/README_20260629115049.md delete mode 100644 .history/README_20260629115050.md delete mode 100644 .history/README_20260629115054.md delete mode 100644 .history/README_20260629115057.md delete mode 100644 .history/README_20260629115112.md delete mode 100644 .history/README_20260629115114.md delete mode 100644 .history/README_20260629115115.md delete mode 100644 .history/README_20260629115118.md delete mode 100644 .history/README_20260629115119.md delete mode 100644 .history/README_20260629115124.md delete mode 100644 .history/README_20260629115127.md delete mode 100644 .history/README_20260629115131.md delete mode 100644 .history/README_20260629115134.md delete mode 100644 .history/README_20260629115140.md delete mode 100644 .history/README_20260629115141.md delete mode 100644 .history/README_20260629115146.md delete mode 100644 .history/README_20260629115240.md delete mode 100644 .history/README_20260629115245.md delete mode 100644 .history/README_20260629115257.md delete mode 100644 .history/README_20260629115307.md delete mode 100644 .history/README_20260629115314.md delete mode 100644 .history/README_20260629115319.md delete mode 100644 .history/README_20260629115323.md delete mode 100644 .history/README_20260629115326.md delete mode 100644 .history/README_20260629115333.md delete mode 100644 .history/README_20260629115338.md delete mode 100644 .history/README_20260629115343.md delete mode 100644 .history/README_20260629115359.md delete mode 100644 .history/README_20260629115407.md delete mode 100644 .history/README_20260629115547.md delete mode 100644 .history/README_20260629115549.md delete mode 100644 .history/README_20260629115555.md delete mode 100644 .history/README_20260629115557.md delete mode 100644 .history/README_20260629115600.md delete mode 100644 .history/README_20260629115605.md delete mode 100644 .history/README_20260629115611.md delete mode 100644 .history/README_20260629115617.md delete mode 100644 .history/README_20260629115620.md delete mode 100644 .history/README_20260629115638.md delete mode 100644 .history/README_20260629115640.md delete mode 100644 .history/README_20260629115641.md delete mode 100644 .history/README_20260629115648.md delete mode 100644 .history/README_20260629115743.md delete mode 100644 .history/README_20260629115803.md delete mode 100644 .history/README_20260629115804.md delete mode 100644 .history/README_20260629115827.md delete mode 100644 .history/README_20260629115832.md delete mode 100644 .history/README_20260629115833.md delete mode 100644 .history/README_20260629115852.md delete mode 100644 .history/README_20260629115857.md delete mode 100644 .history/README_20260629115901.md delete mode 100644 .history/README_20260629115907.md delete mode 100644 .history/README_20260629115926.md delete mode 100644 .history/README_20260629115930.md delete mode 100644 .history/README_20260629115941.md delete mode 100644 .history/README_20260629115948.md delete mode 100644 .history/README_20260629120004.md delete mode 100644 .history/README_20260629120007.md delete mode 100644 .history/README_20260629120015.md delete mode 100644 .history/README_20260629120025.md delete mode 100644 .history/README_20260629120032.md delete mode 100644 .history/README_20260629120047.md delete mode 100644 .history/README_20260629120050.md delete mode 100644 .history/README_20260629120054.md delete mode 100644 .history/README_20260629120056.md delete mode 100644 .history/README_20260629120105.md delete mode 100644 .history/README_20260629120123.md delete mode 100644 .history/README_20260629120127.md delete mode 100644 .history/README_20260629120138.md delete mode 100644 .history/README_20260629120142.md delete mode 100644 .history/README_20260629120217.md delete mode 100644 .history/README_20260629120230.md delete mode 100644 .history/README_20260629120234.md delete mode 100644 .history/README_20260629120238.md delete mode 100644 .history/README_20260629120244.md delete mode 100644 .history/README_20260629120251.md delete mode 100644 .history/README_20260629120252.md delete mode 100644 .history/README_20260629120255.md delete mode 100644 .history/README_20260629120258.md delete mode 100644 .history/README_20260629120301.md delete mode 100644 .history/README_20260629120305.md delete mode 100644 .history/README_20260629120310.md delete mode 100644 .history/README_de_DE_20260629103810.md delete mode 100644 .history/README_de_DE_20260629113130.md delete mode 100644 .history/README_de_DE_20260629113132.md delete mode 100644 .history/README_de_DE_20260629113200.md delete mode 100644 .history/README_de_DE_20260629113205.md delete mode 100644 .history/README_de_DE_20260629113207.md delete mode 100644 .history/README_de_DE_20260629113225.md delete mode 100644 .history/README_de_DE_20260629113247.md delete mode 100644 .history/README_en_US_20260629104419.md delete mode 100644 .history/README_en_US_20260629112508.md delete mode 100644 .history/README_en_US_20260629112510.md delete mode 100644 .history/README_en_US_20260629112617.md delete mode 100644 .history/README_en_US_20260629112621.md delete mode 100644 .history/README_en_US_20260629112627.md delete mode 100644 .history/README_en_US_20260629112628.md delete mode 100644 .history/README_en_US_20260629112635.md delete mode 100644 .history/README_en_US_20260629112648.md delete mode 100644 .history/README_en_US_20260629112656.md delete mode 100644 .history/README_en_US_20260629112702.md delete mode 100644 .history/README_en_US_20260629112706.md delete mode 100644 .history/README_en_US_20260629112707.md delete mode 100644 .history/README_en_US_20260629112735.md delete mode 100644 .history/README_en_US_20260629112738.md delete mode 100644 .history/README_en_US_20260629112747.md delete mode 100644 .history/README_en_US_20260629112748.md delete mode 100644 .history/README_en_US_20260629112954.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81c5975 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# VS Code Local History extension +.history/.history/ diff --git a/.history/README_20260629110901.md b/.history/README_20260629110901.md deleted file mode 100644 index 9338078..0000000 --- a/.history/README_20260629110901.md +++ /dev/null @@ -1,135 +0,0 @@ -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114805.md b/.history/README_20260629114805.md deleted file mode 100644 index 775ff22..0000000 --- a/.history/README_20260629114805.md +++ /dev/null @@ -1,137 +0,0 @@ - - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114807.md b/.history/README_20260629114807.md deleted file mode 100644 index 4a2b053..0000000 --- a/.history/README_20260629114807.md +++ /dev/null @@ -1,137 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114832.md b/.history/README_20260629114832.md deleted file mode 100644 index 7bc6e34..0000000 --- a/.history/README_20260629114832.md +++ /dev/null @@ -1,139 +0,0 @@ - - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114834.md b/.history/README_20260629114834.md deleted file mode 100644 index 690acda..0000000 --- a/.history/README_20260629114834.md +++ /dev/null @@ -1,139 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114913.md b/.history/README_20260629114913.md deleted file mode 100644 index e9c0986..0000000 --- a/.history/README_20260629114913.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114915.md b/.history/README_20260629114915.md deleted file mode 100644 index e0bd060..0000000 --- a/.history/README_20260629114915.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114929.md b/.history/README_20260629114929.md deleted file mode 100644 index a48a15e..0000000 --- a/.history/README_20260629114929.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114933.md b/.history/README_20260629114933.md deleted file mode 100644 index 240d5e3..0000000 --- a/.history/README_20260629114933.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114951.md b/.history/README_20260629114951.md deleted file mode 100644 index 21b21db..0000000 --- a/.history/README_20260629114951.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114953.md b/.history/README_20260629114953.md deleted file mode 100644 index 7db0a16..0000000 --- a/.history/README_20260629114953.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629114957.md b/.history/README_20260629114957.md deleted file mode 100644 index b64449f..0000000 --- a/.history/README_20260629114957.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115003.md b/.history/README_20260629115003.md deleted file mode 100644 index 720e6e5..0000000 --- a/.history/README_20260629115003.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115008.md b/.history/README_20260629115008.md deleted file mode 100644 index e39d981..0000000 --- a/.history/README_20260629115008.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115044.md b/.history/README_20260629115044.md deleted file mode 100644 index cead1c0..0000000 --- a/.history/README_20260629115044.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations () of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115049.md b/.history/README_20260629115049.md deleted file mode 100644 index 57d4fc3..0000000 --- a/.history/README_20260629115049.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and ) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115050.md b/.history/README_20260629115050.md deleted file mode 100644 index 11f787d..0000000 --- a/.history/README_20260629115050.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and ) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115054.md b/.history/README_20260629115054.md deleted file mode 100644 index 1357d7d..0000000 --- a/.history/README_20260629115054.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and Germa>) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115057.md b/.history/README_20260629115057.md deleted file mode 100644 index 6634465..0000000 --- a/.history/README_20260629115057.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German) of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115112.md b/.history/README_20260629115112.md deleted file mode 100644 index 31f96c4..0000000 --- a/.history/README_20260629115112.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115114.md b/.history/README_20260629115114.md deleted file mode 100644 index 15f452b..0000000 --- a/.history/README_20260629115114.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German _ of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115115.md b/.history/README_20260629115115.md deleted file mode 100644 index 7360468..0000000 --- a/.history/README_20260629115115.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115118.md b/.history/README_20260629115118.md deleted file mode 100644 index 7360468..0000000 --- a/.history/README_20260629115118.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115119.md b/.history/README_20260629115119.md deleted file mode 100644 index a87f0cb..0000000 --- a/.history/README_20260629115119.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations (English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115124.md b/.history/README_20260629115124.md deleted file mode 100644 index a8bb7a2..0000000 --- a/.history/README_20260629115124.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115127.md b/.history/README_20260629115127.md deleted file mode 100644 index a489aa4..0000000 --- a/.history/README_20260629115127.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115131.md b/.history/README_20260629115131.md deleted file mode 100644 index 4ccf3c8..0000000 --- a/.history/README_20260629115131.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115134.md b/.history/README_20260629115134.md deleted file mode 100644 index 2bd91fd..0000000 --- a/.history/README_20260629115134.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115140.md b/.history/README_20260629115140.md deleted file mode 100644 index 3b5c264..0000000 --- a/.history/README_20260629115140.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German*+ – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115141.md b/.history/README_20260629115141.md deleted file mode 100644 index 6f67d3f..0000000 --- a/.history/README_20260629115141.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115146.md b/.history/README_20260629115146.md deleted file mode 100644 index b50418f..0000000 --- a/.history/README_20260629115146.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115240.md b/.history/README_20260629115240.md deleted file mode 100644 index 6fd9974..0000000 --- a/.history/README_20260629115240.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> * ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115245.md b/.history/README_20260629115245.md deleted file mode 100644 index 2bf2972..0000000 --- a/.history/README_20260629115245.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115257.md b/.history/README_20260629115257.md deleted file mode 100644 index 98824ed..0000000 --- a/.history/README_20260629115257.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub) ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115307.md b/.history/README_20260629115307.md deleted file mode 100644 index 8ccd7c3..0000000 --- a/.history/README_20260629115307.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115314.md b/.history/README_20260629115314.md deleted file mode 100644 index 9a6dfc5..0000000 --- a/.history/README_20260629115314.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115319.md b/.history/README_20260629115319.md deleted file mode 100644 index 7f3b9e3..0000000 --- a/.history/README_20260629115319.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115323.md b/.history/README_20260629115323.md deleted file mode 100644 index d962cce..0000000 --- a/.history/README_20260629115323.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115326.md b/.history/README_20260629115326.md deleted file mode 100644 index 373f6a3..0000000 --- a/.history/README_20260629115326.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115333.md b/.history/README_20260629115333.md deleted file mode 100644 index 742dbe3..0000000 --- a/.history/README_20260629115333.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115338.md b/.history/README_20260629115338.md deleted file mode 100644 index 508b1f0..0000000 --- a/.history/README_20260629115338.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115343.md b/.history/README_20260629115343.md deleted file mode 100644 index 9ca6454..0000000 --- a/.history/README_20260629115343.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115359.md b/.history/README_20260629115359.md deleted file mode 100644 index 515d94e..0000000 --- a/.history/README_20260629115359.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) . Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115407.md b/.history/README_20260629115407.md deleted file mode 100644 index 66daa68..0000000 --- a/.history/README_20260629115407.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Vielen Dank an [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115547.md b/.history/README_20260629115547.md deleted file mode 100644 index 4334c73..0000000 --- a/.history/README_20260629115547.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> * [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115549.md b/.history/README_20260629115549.md deleted file mode 100644 index 365c656..0000000 --- a/.history/README_20260629115549.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115555.md b/.history/README_20260629115555.md deleted file mode 100644 index bd015b0..0000000 --- a/.history/README_20260629115555.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Bet [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115557.md b/.history/README_20260629115557.md deleted file mode 100644 index 0e6b55e..0000000 --- a/.history/README_20260629115557.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrgas [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115600.md b/.history/README_20260629115600.md deleted file mode 100644 index a34afc1..0000000 --- a/.history/README_20260629115600.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115605.md b/.history/README_20260629115605.md deleted file mode 100644 index 40dd30b..0000000 --- a/.history/README_20260629115605.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), der zwei Community-Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115611.md b/.history/README_20260629115611.md deleted file mode 100644 index ff5e15c..0000000 --- a/.history/README_20260629115611.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), der zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115617.md b/.history/README_20260629115617.md deleted file mode 100644 index 8fc313f..0000000 --- a/.history/README_20260629115617.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115620.md b/.history/README_20260629115620.md deleted file mode 100644 index 2638ecb..0000000 --- a/.history/README_20260629115620.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115638.md b/.history/README_20260629115638.md deleted file mode 100644 index 2218fc2..0000000 --- a/.history/README_20260629115638.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi)Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115640.md b/.history/README_20260629115640.md deleted file mode 100644 index 678522c..0000000 --- a/.history/README_20260629115640.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi).Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115641.md b/.history/README_20260629115641.md deleted file mode 100644 index 6408f82..0000000 --- a/.history/README_20260629115641.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115648.md b/.history/README_20260629115648.md deleted file mode 100644 index c967043..0000000 --- a/.history/README_20260629115648.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115743.md b/.history/README_20260629115743.md deleted file mode 100644 index db854ef..0000000 --- a/.history/README_20260629115743.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun auch zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115803.md b/.history/README_20260629115803.md deleted file mode 100644 index db5fa9e..0000000 --- a/.history/README_20260629115803.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren nun zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115804.md b/.history/README_20260629115804.md deleted file mode 100644 index 8fc313f..0000000 --- a/.history/README_20260629115804.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank eines Community-Betrags von [netzbub](https://github.com/netzbub), existieren zwei Übersetzungen – **Englisch und Deutsch** – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi) zur Verfügung gestellt hat. Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115827.md b/.history/README_20260629115827.md deleted file mode 100644 index a489aa4..0000000 --- a/.history/README_20260629115827.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115832.md b/.history/README_20260629115832.md deleted file mode 100644 index 4ccf3c8..0000000 --- a/.history/README_20260629115832.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115833.md b/.history/README_20260629115833.md deleted file mode 100644 index 2bd91fd..0000000 --- a/.history/README_20260629115833.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to [netzbub](https://github.com/netzbub) there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115852.md b/.history/README_20260629115852.md deleted file mode 100644 index da4bf38..0000000 --- a/.history/README_20260629115852.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community co there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115857.md b/.history/README_20260629115857.md deleted file mode 100644 index 68be83c..0000000 --- a/.history/README_20260629115857.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contrib there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115901.md b/.history/README_20260629115901.md deleted file mode 100644 index 655711d..0000000 --- a/.history/README_20260629115901.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contribution there are now two community translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115907.md b/.history/README_20260629115907.md deleted file mode 100644 index 75bbdc9..0000000 --- a/.history/README_20260629115907.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contribution there are now two translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115926.md b/.history/README_20260629115926.md deleted file mode 100644 index 6febe8e..0000000 --- a/.history/README_20260629115926.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community there are now two translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115930.md b/.history/README_20260629115930.md deleted file mode 100644 index a16c243..0000000 --- a/.history/README_20260629115930.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now two translations – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115941.md b/.history/README_20260629115941.md deleted file mode 100644 index f208aa6..0000000 --- a/.history/README_20260629115941.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629115948.md b/.history/README_20260629115948.md deleted file mode 100644 index f12743d..0000000 --- a/.history/README_20260629115948.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120004.md b/.history/README_20260629120004.md deleted file mode 100644 index 3b2296b..0000000 --- a/.history/README_20260629120004.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120007.md b/.history/README_20260629120007.md deleted file mode 100644 index f208aa6..0000000 --- a/.history/README_20260629120007.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120015.md b/.history/README_20260629120015.md deleted file mode 100644 index 8699ba8..0000000 --- a/.history/README_20260629120015.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now two additional – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120025.md b/.history/README_20260629120025.md deleted file mode 100644 index 96f2b05..0000000 --- a/.history/README_20260629120025.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now two additional Read – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120032.md b/.history/README_20260629120032.md deleted file mode 100644 index 4d8e030..0000000 --- a/.history/README_20260629120032.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120047.md b/.history/README_20260629120047.md deleted file mode 100644 index 80617a8..0000000 --- a/.history/README_20260629120047.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contrib there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120050.md b/.history/README_20260629120050.md deleted file mode 100644 index 666d45e..0000000 --- a/.history/README_20260629120050.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contribution there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120054.md b/.history/README_20260629120054.md deleted file mode 100644 index 1a0e3c0..0000000 --- a/.history/README_20260629120054.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contributi there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120056.md b/.history/README_20260629120056.md deleted file mode 100644 index 666d45e..0000000 --- a/.history/README_20260629120056.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contribution there are now two additional README.md – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120105.md b/.history/README_20260629120105.md deleted file mode 100644 index 48c8aa2..0000000 --- a/.history/README_20260629120105.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community contribution there are now two additional README.md files – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120123.md b/.history/README_20260629120123.md deleted file mode 100644 index d06ebac..0000000 --- a/.history/README_20260629120123.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation there are now two additional README.md files – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120127.md b/.history/README_20260629120127.md deleted file mode 100644 index e4c3f8e..0000000 --- a/.history/README_20260629120127.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – *English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120138.md b/.history/README_20260629120138.md deleted file mode 100644 index e4c9c01..0000000 --- a/.history/README_20260629120138.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German* – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120142.md b/.history/README_20260629120142.md deleted file mode 100644 index ab93b20..0000000 --- a/.history/README_20260629120142.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120217.md b/.history/README_20260629120217.md deleted file mode 100644 index 06779a4..0000000 --- a/.history/README_20260629120217.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120230.md b/.history/README_20260629120230.md deleted file mode 100644 index 2decb41..0000000 --- a/.history/README_20260629120230.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120234.md b/.history/README_20260629120234.md deleted file mode 100644 index eb0d921..0000000 --- a/.history/README_20260629120234.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120238.md b/.history/README_20260629120238.md deleted file mode 100644 index 1468de4..0000000 --- a/.history/README_20260629120238.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120244.md b/.history/README_20260629120244.md deleted file mode 100644 index 65e5ff8..0000000 --- a/.history/README_20260629120244.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.m des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120251.md b/.history/README_20260629120251.md deleted file mode 100644 index 87a0128..0000000 --- a/.history/README_20260629120251.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120252.md b/.history/README_20260629120252.md deleted file mode 100644 index 7b7586d..0000000 --- a/.history/README_20260629120252.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120255.md b/.history/README_20260629120255.md deleted file mode 100644 index 433feb8..0000000 --- a/.history/README_20260629120255.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120258.md b/.history/README_20260629120258.md deleted file mode 100644 index 10efed9..0000000 --- a/.history/README_20260629120258.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – E des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120301.md b/.history/README_20260629120301.md deleted file mode 100644 index 7b6bca7..0000000 --- a/.history/README_20260629120301.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120305.md b/.history/README_20260629120305.md deleted file mode 100644 index 2b636ed..0000000 --- a/.history/README_20260629120305.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch und Deutsch des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_20260629120310.md b/.history/README_20260629120310.md deleted file mode 100644 index 3aebcdc..0000000 --- a/.history/README_20260629120310.md +++ /dev/null @@ -1,139 +0,0 @@ -> *Thanks to a community translation, there are now two additional README.md files – **English and German** – of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub), translated with AI assistance (Claude).* - -> *Dank einer Community-Übersetzung gibt es nun zwei zusätzliche README.md Dateien – Englisch und Deutsch – des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub), übersetzt mit KI-Unterstützung (Claude).* - -**【增强编辑】插件旨在增强Obsidian软件的文本编辑操作,力求人性化、智能化、自动化处理当前页面文字。** - -## 📣 赞助声明 -欢迎向蚕子(QQ:312815311) 提出操作需求和功能建议,愿我们为增强Obsidian的编辑功能来共同努力! -如感觉此插件能够提升您的编辑效率,期待赞助支持一下国产插件。 - -![收款码](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -金额不限,仅限微信;备注留名,不胜感谢 - -## 📣 功能说明 -### ☑️ 状态栏命令菜单 -- 支持【状态栏菜单】激活语法格式刷功能 -- 支持【状态栏菜单】执行实用增强命令 -- 支持【状态栏菜单】开启插件设置面板及快捷键面板 -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ 转换内部链接 -**1. 按下「Alt+Z」快捷键,在选文两端添加或去除 \[\[ ]] 符号** -![转换内部链接](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- 若未选中文本,视光标位置分两种情况处理 - - 若光标处在\[\[链接|文字]]当中,则自动去除外围的链接符号 - - 若光标未处在链接当中,则直接输出\[\[字符 -- 支持批量转换用换行符分隔的被选中的多行文本或用顿号分隔的被选中的多个字符串。 -- 所选文本中如出现 "|[]?\*<>/: 等符号,此功能不会执行。 - -**2. 按下「Alt+Q」快捷键,将选文转换为 \[\[|选文]] 样式,方便选择笔记名** -![转为同名链接](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. 执行「批量转换内链」命令,将当前笔记中的潜在链接一次性转换为 `[[笔记名]]` 内部链接样式** - -### ☑️ 智能符号 -**3. 按下「Alt+;」快捷键,自动转换、匹配或跳过各种类型的括号符号** -![智能符号](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- 行首遇特殊字符时的**转换为专用字符**(参考Easy Typing插件) - - 》 → > - - 、 → / - -- 判断前两字符并**替换为对应的符号** - - 【( 或 [( 替换为 〖 - - (< 或 (< 替换为 〈 - - (【 或 ([ 替换为 〔 - - “ 【 或 "[ 替换为 『 - - ‘ 【 或 '[ 替换为 「 - - …… 替换为 ^ - -- 判断光标以前最近的前括号,会**匹配对应的后括号** - - 原文是〖文字|- 按「Alt+;」快捷键后,在光标|处生成〗符号,以下同理。 - - 《文字|》〈文字|〉[文字|]{文字|}【文字|】〖文字|〗〔文字|〕『文字|』「文字|」 - -- 判断光标以前最近的Md语法(前半截字符组),会**匹配对应的后半截字符组**。 - - [[链接]] ==高亮== **加粗** ~~删除~~ %%注释%% - -- 原来是 [[文字|]]其它文字,在光标|处按「Alt+;」快捷键,**光标会跳到]]符号后面** - - 即判断后面为链接、粗体、高亮、删除线等MD语法的后半截字符组时 自动跳过 - -- 判断当前行内容,如为 Dataview、Query、Mermaid等单词,则**转为代码块语法** - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - 也支持 js css ph c java py等语言名称缩写 - -- 判断当前行内容,如为 `Callout语法类型 对齐方式 +/` 样式,则**转为Callout语法引用块** -![转换callout语法](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ 转换 Html 语法 -- 转换文字颜色「Ctrl+Shift+1-5」∶将选文转为或去除 5种自定义颜色 -- 转换背景颜色「Ctrl+Alt+1-5」∶将选文背景转为或去除 5种自定义颜色 - -### ☑️ 转换 MarkDown 语法 -- 转换粗体语法「Alt+C」∶将选文转为或去除 **粗体** 效果 -- 转换斜体语法「Alt+X」∶将选文转为或去除 _斜体_ 效果 -- 转换行内代码「Alt+D」∶将选文转为或去除 `行内代码` 效果 -- 转换删除线「Alt+S」∶将选文转为或去除 ~~删除线~~ 效果 -- 转换下划线「Alt+H」∶将选文转为或去除 下划线 效果 -- 转换代码块「未设置」∶将选文转为或去除 ```代码块``` 效果 -- 转换上标语法「Alt+U」∶将选文转为或去除 上标 效果 -- 转换下标语法「Alt+N」∶将选文转为或去除 下标 效果 -- 转换待办状态「未设置」:转换选文行首的待办状态,顺序为 -[ x-!?><+] 效果 -- 转换挖空「未设置」:将选文转为或去除 {{c1::选文}} 效果 -- 转换标题语法「Ctrl+1-6」∶指定或取消当前行文本为N级标题 - -- 转换无语法文本「Ctrl+Alt+Z」∶去除选文中所有markdown语法字符 -- 获取无语法文本「Ctrl+Alt+C」∶去除选文中的所有markdown语法字符,并写入剪贴板 - -### ☑️ 增减常见括号 -- 【选文】「未设置」:在选文两端添加或去除 【】符号 -- (选文)「未设置」:在选文两端添加或去除 ()符号 -- 「选文」「未设置」:在选文两端添加或去除 「」符号 -- 《选文》「未设置」:在选文两端添加或去除 《》符号 - -### ☑️ 全局转换操作 -- 英转中文标点「未设置」∶将笔记中的英文标点转换为中文标点,如,.?!"等 -- 中转英文标点「未设置」∶将笔记中的中文标点转换为英文标点,如,。?!“等 -- 转换路径语法「未设置」∶将 c:\\windows 与 [](file:///c:\/windows) 路径语法相互转换 -- 简体转为繁体「未设置」:将笔记中的简体汉字转换为繁体汉字 -- 繁体转为简体「未设置」:将笔记中的繁体汉字转换为简体汉字 - -### ☑️ 个性增强功能 -- 智能粘贴「Ctrl+Alt+V」∶将复制的Office表格直接粘贴为MarkDown语法表格 -- 修复错误语法「未设置」∶修复错误的MD语法,如1。列表、【】()链接、[[]]()回链等 -- 修复意外断行「未设置」∶修复笔记中的意外断行(删除结尾不是句式标点的换行符) -- 搜索当前文本「未设置」:通过搜索面板在当前文档中搜索划选内容。 -- 获取时间信息「未设置」∶获取当前行中的时间信息,并控制链接笔记中的视频进行跳转播放 -- 获取标注文本「未设置」∶获取标题、高亮、注释及前缀(#标注\批注\反思)等文本内容 -- 选择当前整段「未设置」:选择光标所在的当前整段文本。 -- 选择当前整句「未设置」:选择光标所在的当前整句(中文)文本。 -- 自动设置标题「未设置」∶将选文中的单行文本(末尾非标点或数字)转为标题 -- 指定当前文件名「未设置」:划选文字后指定为当前笔记的文件名。 -- 嵌入当前网址页面「未设置」∶在行末插入Html代码来嵌入所选网址页面。 -- 获取相对路径「未设置」:获取当前笔记在库目录内的相对路径。 - -### ☑️ 插入或去除空行(空格) -- 编辑区内按下回车补加一次换行(有开关) -- 批量插入空行「Ctrl+Shift+L」∶在划选的文本行或全文中间批量插入空白行 -- 批量去除空行「Ctrl+Alt+L」∶批量去除划选文本或全文中的空白行 -- 上方插入空行「未设置」∶在当前文本行的上行插入空白行 -- 下方插入空行「未设置」∶在当前文本行的下行插入空白行 -- 末尾追加空格「未设置」∶在每行文本的末尾追加两个空格 -- 去除末尾空格「未设置」∶批量去除每个文本行末尾的空格字符 -- 添加中英间隔「未设置」:在正文的汉字与字母之间批量添加空格,如 china 中国。 -- 去除所有空格「未设置」:去除正文中所有的全、半角空格 - - -## 📣 安装方法 -【增强编辑】插件短期内不会上架社区商店 - -### ☑️ 手动安装: -手动下载最新的压缩包,然后将其中文件(main.js, manifest.json) 解压到 **库目录/.obsidian/plugins/ZH增强编辑** 文件夹即可. - -### ☑️ BRAT 插件安装: -- 安装 BRAT 插件: [点此安装](https://github.com/TfTHacker/obsidian42-brat) -- 在 BART 插件设置面板添加: obsidian-canzi/Enhanced-editing - diff --git a/.history/README_de_DE_20260629103810.md b/.history/README_de_DE_20260629103810.md deleted file mode 100644 index 923f8d6..0000000 --- a/.history/README_de_DE_20260629103810.md +++ /dev/null @@ -1,134 +0,0 @@ -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113130.md b/.history/README_de_DE_20260629113130.md deleted file mode 100644 index c1cc0f1..0000000 --- a/.history/README_de_DE_20260629113130.md +++ /dev/null @@ -1,136 +0,0 @@ - - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113132.md b/.history/README_de_DE_20260629113132.md deleted file mode 100644 index d301213..0000000 --- a/.history/README_de_DE_20260629113132.md +++ /dev/null @@ -1,136 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Übersetzt mit KI-Unterstützung (Claude).* - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113200.md b/.history/README_de_DE_20260629113200.md deleted file mode 100644 index 528795d..0000000 --- a/.history/README_de_DE_20260629113200.md +++ /dev/null @@ -1,136 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitragbersetzt mit KI-Unterstützung (Claude).* - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113205.md b/.history/README_de_DE_20260629113205.md deleted file mode 100644 index c620c04..0000000 --- a/.history/README_de_DE_20260629113205.md +++ /dev/null @@ -1,136 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von bersetzt mit KI-Unterstützung (Claude).* - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113207.md b/.history/README_de_DE_20260629113207.md deleted file mode 100644 index adf5f3e..0000000 --- a/.history/README_de_DE_20260629113207.md +++ /dev/null @@ -1,136 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von übersetzt mit KI-Unterstützung (Claude).* - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113225.md b/.history/README_de_DE_20260629113225.md deleted file mode 100644 index 48fdef9..0000000 --- a/.history/README_de_DE_20260629113225.md +++ /dev/null @@ -1,136 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub) übersetzt mit KI-Unterstützung (Claude).* - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_de_DE_20260629113247.md b/.history/README_de_DE_20260629113247.md deleted file mode 100644 index 48fdef9..0000000 --- a/.history/README_de_DE_20260629113247.md +++ /dev/null @@ -1,136 +0,0 @@ -> *Dies ist eine Community-Übersetzung des [chinesischen Original-README](README.md) von [obsidian-canzi](https://github.com/obsidian-canzi). Ein Beitrag von [netzbub](https://github.com/netzbub) übersetzt mit KI-Unterstützung (Claude).* - -**Das Plugin „Erweitertes Bearbeiten" (Enhanced Editing) soll die Textbearbeitung in Obsidian verbessern und dabei möglichst benutzerfreundlich, intelligent und automatisiert mit dem Text der aktuellen Seite umgehen.** - -## 📣 Spendenaufruf -Verbesserungsvorschläge und Funktionswünsche können gerne an den Entwickler Canzǐ (QQ: 312815311) gerichtet werden – gemeinsam für eine bessere Bearbeitungserfahrung in Obsidian! -Wenn dieses Plugin Ihre Effizienz beim Bearbeiten steigert, freuen wir uns über finanzielle Unterstützung für dieses Plugin. - -![Zahlungscode](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Beliebiger Betrag, nur über WeChat; bitte Namen als Verwendungszweck angeben – vielen Dank - -## 📣 Funktionsübersicht -### ☑️ Statusleisten-Befehlsmenü -- Unterstützt das Aktivieren der Syntax-Formatpinsel-Funktion über das [Statusleistenmenü] -- Unterstützt die Ausführung nützlicher erweiterter Befehle über das [Statusleistenmenü] -- Unterstützt das Öffnen des Plugin-Einstellungsbereichs und des Hotkey-Bereichs über das [Statusleistenmenü] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Interne Links umwandeln -**1. Taste „Alt+Z" drücken, um \[\[ ]]-Symbole um den markierten Text hinzuzufügen oder zu entfernen** -![Interne Links umwandeln](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- Ist kein Text markiert, gibt es zwei Fälle je nach Cursorposition: - - Befindet sich der Cursor innerhalb von \[\[Link|Text]], werden die äußeren Linksymbole automatisch entfernt - - Befindet sich der Cursor nicht innerhalb eines Links, wird direkt \[\[ ausgegeben -- Unterstützt die Massenkonvertierung von mehreren durch Zeilenumbrüche oder Aufzählungszeichen getrennten Zeichenketten. -- Enthält der markierte Text Symbole wie „|[]?\*<>/:" wird die Funktion nicht ausgeführt. - -**2. Taste „Alt+Q" drücken, um den markierten Text in das Format \[\[|markierter Text]] umzuwandeln – zur einfachen Auswahl von Notiznamen** -![In gleichnamigen Link umwandeln](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Befehl „Alle internen Links stapelweise umwandeln" ausführen, um potenzielle Links in der aktuellen Notiz auf einmal in `[[Notizname]]`-Stil umzuwandeln** - -### ☑️ Intelligente Symbole -**3. Taste „Alt+;" drücken, um verschiedene Arten von Klammernsymbolen automatisch umzuwandeln, zuzuordnen oder zu überspringen** -![Intelligente Symbole](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Umwandlung in dedizierte Zeichen** bei bestimmten Zeichen am Zeilenanfang (angelehnt an das Easy Typing Plugin): - - 》 → > - - 、 → / - -- **Ersetzung durch entsprechende Symbole** anhand der zwei vorherigen Zeichen: - - 【( oder [( → 〖 - - (< oder (< → 〈 - - (【 oder ([ → 〔 - - " 【 oder "[ → 『 - - ' 【 oder '[ → 「 - - …… → ^ - -- Erkennt die nächste öffnende Klammer vor dem Cursor und **generiert die passende schließende Klammer**: - - Originaltext ist 〖Text|– nach Drücken von „Alt+;" wird an der Cursorposition | 〗 generiert, analog für alle folgenden. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Erkennt die nächste MD-Syntax (erste Hälfte der Zeichengruppe) vor dem Cursor und **ergänzt die zweite Hälfte**: - - [[Link]] ==Hervorhebung== **Fett** ~~Durchgestrichen~~ %%Kommentar%% - -- Wenn der Text [[Text|]] weitere Zeichen enthält und der Cursor | davor steht, **springt der Cursor hinter ]]**: - - D.h. wenn direkt dahinter die zweite Hälfte eines MD-Syntaxelements (Link, Fettdruck, Hervorhebung, Durchstreichen) erkannt wird, wird dieser automatisch übersprungen. - -- Erkennt den Inhalt der aktuellen Zeile: bei Wörtern wie Dataview, Query, Mermaid wird er **in Codeblock-Syntax umgewandelt**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Unterstützt auch Abkürzungen für js, css, php, c, java, py usw. - -- Erkennt den Inhalt der aktuellen Zeile: bei `Callout-Syntaxtyp Ausrichtung +/`-Format wird er **in einen Callout-Syntaxblock umgewandelt** -![Callout-Syntax umwandeln](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ HTML-Syntax umwandeln -- Textfarbe umwandeln „Ctrl+Shift+1-5": markierten Text in oder aus einer von 5 benutzerdefinierten Farben umwandeln -- Hintergrundfarbe umwandeln „Ctrl+Alt+1-5": Hintergrund des markierten Textes in oder aus einer von 5 benutzerdefinierten Farben umwandeln - -### ☑️ Markdown-Syntax umwandeln -- Fettschrift-Syntax umwandeln „Alt+C": markierten Text in oder aus **Fettschrift** umwandeln -- Kursivschrift-Syntax umwandeln „Alt+X": markierten Text in oder aus _Kursivschrift_ umwandeln -- Inline-Code umwandeln „Alt+D": markierten Text in oder aus `Inline-Code` umwandeln -- Durchstreichung umwandeln „Alt+S": markierten Text in oder aus ~~Durchstreichung~~ umwandeln -- Unterstreichung umwandeln „Alt+H": markierten Text in oder aus Unterstreichung umwandeln -- Codeblock umwandeln „nicht belegt": markierten Text in oder aus ```Codeblock``` umwandeln -- Hochstellung-Syntax umwandeln „Alt+U": markierten Text in oder aus Hochstellung umwandeln -- Tiefstellung-Syntax umwandeln „Alt+N": markierten Text in oder aus Tiefstellung umwandeln -- Aufgabenstatus umwandeln „nicht belegt": Aufgabenstatus am Zeilenanfang der Markierung umwandeln, Reihenfolge: -[ x-!?><+] -- Lückentext umwandeln „nicht belegt": markierten Text in oder aus {{c1::markierter Text}} umwandeln -- Überschriften-Syntax umwandeln „Ctrl+1-6": aktuellen Zeilentext als Überschrift der Ebene N festlegen oder aufheben - -- Syntax-freier Text „Ctrl+Alt+Z": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen -- Syntax-freien Text abrufen „Ctrl+Alt+C": alle Markdown-Syntaxzeichen aus dem markierten Text entfernen und in die Zwischenablage kopieren - -### ☑️ Klammern hinzufügen oder entfernen -- 【markierter Text】 „nicht belegt": 【】-Symbole um den markierten Text hinzufügen oder entfernen -- (markierter Text) „nicht belegt": ()-Symbole um den markierten Text hinzufügen oder entfernen -- 「markierter Text」 „nicht belegt": 「」-Symbole um den markierten Text hinzufügen oder entfernen -- 《markierter Text》 „nicht belegt": 《》-Symbole um den markierten Text hinzufügen oder entfernen - -### ☑️ Globale Umwandlungsoperationen -- Englische zu chinesischen Satzzeichen „nicht belegt": Englische Satzzeichen in der Notiz in chinesische umwandeln, z.B. ,.?!" usw. -- Chinesische zu englischen Satzzeichen „nicht belegt": Chinesische Satzzeichen in der Notiz in englische umwandeln, z.B. ,。?!" usw. -- Pfad-Syntax umwandeln „nicht belegt": c:\\windows und [](file:///c:\/windows) Pfadsyntax gegenseitig umwandeln -- Vereinfachtes zu traditionellem Chinesisch „nicht belegt": vereinfachte chinesische Schriftzeichen in traditionelle umwandeln -- Traditionelles zu vereinfachtem Chinesisch „nicht belegt": traditionelle chinesische Schriftzeichen in vereinfachte umwandeln - -### ☑️ Individuelle Erweiterungsfunktionen -- Intelligentes Einfügen „Ctrl+Alt+V": kopierte Office-Tabellen direkt als Markdown-Tabelle einfügen -- Fehlerhafte Syntax reparieren „nicht belegt": fehlerhafte MD-Syntax reparieren, z.B. 1。-Listen, 【】()-Links, [[]]()-Rücklinks usw. -- Unerwartete Zeilenumbrüche reparieren „nicht belegt": unerwartete Zeilenumbrüche in der Notiz reparieren (Zeilenumbrüche ohne abschließendes Satzzeichen entfernen) -- Aktuellen Text suchen „nicht belegt": markierten Inhalt im aktuellen Dokument über den Suchbereich suchen -- Zeitinformationen abrufen „nicht belegt": Zeitinformationen aus der aktuellen Zeile abrufen und Video in verlinkter Notiz an der entsprechenden Position abspielen -- Annotationstext abrufen „nicht belegt": Inhalte aus Überschriften, Hervorhebungen, Kommentaren und Präfixen abrufen -- Gesamten Absatz auswählen „nicht belegt": den gesamten Absatz, in dem sich der Cursor befindet, auswählen -- Gesamten Satz auswählen „nicht belegt": den gesamten Satz, in dem sich der Cursor befindet, auswählen -- Überschriften automatisch setzen „nicht belegt": einzeiligen Text im markierten Bereich ohne abschließendes Satzzeichen als Überschrift formatieren -- Aktuellen Dateinamen festlegen „nicht belegt": markierten Text als Dateinamen der aktuellen Notiz festlegen -- Aktuelle Webseite einbetten „nicht belegt": HTML-Code am Zeilenende einfügen, um die markierte URL-Seite einzubetten -- Relativen Pfad abrufen „nicht belegt": relativen Pfad der aktuellen Notiz innerhalb des Vault-Verzeichnisses abrufen - -### ☑️ Leerzeilen (Leerzeichen) einfügen oder entfernen -- Im Bearbeitungsbereich wird nach dem Drücken von Enter ein zusätzlicher Zeilenumbruch eingefügt (umschaltbar) -- Leerzeilen stapelweise einfügen „Ctrl+Shift+L": in den markierten Textzeilen oder im gesamten Text stapelweise Leerzeilen einfügen -- Leerzeilen stapelweise entfernen „Ctrl+Alt+L": Leerzeilen im markierten Text oder im gesamten Text stapelweise entfernen -- Leerzeile darüber einfügen „nicht belegt": oberhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeile darunter einfügen „nicht belegt": unterhalb der aktuellen Textzeile eine Leerzeile einfügen -- Leerzeichen am Zeilenende anhängen „nicht belegt": an jede Textzeile zwei Leerzeichen anhängen -- Leerzeichen am Zeilenende entfernen „nicht belegt": Leerzeichen am Ende jeder Textzeile stapelweise entfernen -- Leerzeichen zwischen Chinesisch und Latein einfügen „nicht belegt": zwischen chinesischen Schriftzeichen und lateinischen Buchstaben stapelweise Leerzeichen einfügen -- Alle Leerzeichen entfernen „nicht belegt": alle Halb- und Vollbreiten-Leerzeichen im Text entfernen - - -## 📣 Installation -Das Plugin wird in naher Zukunft nicht im Community-Plugin-Store erscheinen. - -### ☑️ Manuelle Installation: -Das neueste Archiv herunterladen und die enthaltenen Dateien (main.js, manifest.json) in den Ordner **Vault-Verzeichnis/.obsidian/plugins/ZH增强编辑** entpacken. - -### ☑️ Installation über BRAT-Plugin: -- BRAT-Plugin installieren: [Hier klicken zum Installieren](https://github.com/TfTHacker/obsidian42-brat) -- Im BRAT-Plugin-Einstellungsbereich hinzufügen: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629104419.md b/.history/README_en_US_20260629104419.md deleted file mode 100644 index 35f84bf..0000000 --- a/.history/README_en_US_20260629104419.md +++ /dev/null @@ -1,134 +0,0 @@ -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112508.md b/.history/README_en_US_20260629112508.md deleted file mode 100644 index f2fa05e..0000000 --- a/.history/README_en_US_20260629112508.md +++ /dev/null @@ -1,136 +0,0 @@ - - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112510.md b/.history/README_en_US_20260629112510.md deleted file mode 100644 index 519987f..0000000 --- a/.history/README_en_US_20260629112510.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112617.md b/.history/README_en_US_20260629112617.md deleted file mode 100644 index 410333e..0000000 --- a/.history/README_en_US_20260629112617.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). IniTranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112621.md b/.history/README_en_US_20260629112621.md deleted file mode 100644 index 29dacae..0000000 --- a/.history/README_en_US_20260629112621.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). InitiTranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112627.md b/.history/README_en_US_20260629112627.md deleted file mode 100644 index d8359f9..0000000 --- a/.history/README_en_US_20260629112627.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). InitializedTranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112628.md b/.history/README_en_US_20260629112628.md deleted file mode 100644 index bf7b4f8..0000000 --- a/.history/README_en_US_20260629112628.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112635.md b/.history/README_en_US_20260629112635.md deleted file mode 100644 index e266c4b..0000000 --- a/.history/README_en_US_20260629112635.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by netzbubTranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112648.md b/.history/README_en_US_20260629112648.md deleted file mode 100644 index cb38881..0000000 --- a/.history/README_en_US_20260629112648.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbubTranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112656.md b/.history/README_en_US_20260629112656.md deleted file mode 100644 index 61fb0f0..0000000 --- a/.history/README_en_US_20260629112656.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub]Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112702.md b/.history/README_en_US_20260629112702.md deleted file mode 100644 index 1b1690d..0000000 --- a/.history/README_en_US_20260629112702.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub] Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112706.md b/.history/README_en_US_20260629112706.md deleted file mode 100644 index 61fb0f0..0000000 --- a/.history/README_en_US_20260629112706.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub]Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112707.md b/.history/README_en_US_20260629112707.md deleted file mode 100644 index 84bfe17..0000000 --- a/.history/README_en_US_20260629112707.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112735.md b/.history/README_en_US_20260629112735.md deleted file mode 100644 index c1dc93f..0000000 --- a/.history/README_en_US_20260629112735.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbubTranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112738.md b/.history/README_en_US_20260629112738.md deleted file mode 100644 index 21b63eb..0000000 --- a/.history/README_en_US_20260629112738.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbub) Translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112747.md b/.history/README_en_US_20260629112747.md deleted file mode 100644 index d2dc6d7..0000000 --- a/.history/README_en_US_20260629112747.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbub) ranslated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112748.md b/.history/README_en_US_20260629112748.md deleted file mode 100644 index 6187122..0000000 --- a/.history/README_en_US_20260629112748.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Initialized by [netzbub](https://github.com/netzbub) translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing diff --git a/.history/README_en_US_20260629112954.md b/.history/README_en_US_20260629112954.md deleted file mode 100644 index c217ca1..0000000 --- a/.history/README_en_US_20260629112954.md +++ /dev/null @@ -1,138 +0,0 @@ -> *This is a community translation of the [original Chinese README](README.md) by [obsidian-canzi](https://github.com/obsidian-canzi). Contributed by [netzbub](https://github.com/netzbub) translated with AI assistance (Claude).* - ---- - -**The "Enhanced Editing" plugin aims to improve text editing in Obsidian, striving for a user-friendly, intelligent, and automated approach to handling text on the current page.** - -## 📣 Sponsorship -Feature requests and suggestions are welcome — contact the developer Canzǐ (QQ: 312815311). Let's work together to enhance editing in Obsidian! -If this plugin improves your editing efficiency, consider supporting it financially. - -![Payment QR code](https://user-images.githubusercontent.com/16410542/163940657-65036cc5-aa18-40e1-923e-d4fb1ed658e3.png) -Any amount, WeChat only; please include your name in the note — thank you - -## 📣 Feature Overview -### ☑️ Status Bar Command Menu -- Supports activating the syntax format-painter function via the [status bar menu] -- Supports executing useful enhanced commands via the [status bar menu] -- Supports opening the plugin settings panel and hotkey panel via the [status bar menu] -![](https://user-images.githubusercontent.com/16410542/163715581-c1837e9c-b89a-4279-bfa3-68a3000eb39a.png) - -### ☑️ Convert Internal Links -**1. Press "Alt+Z" to add or remove \[\[ ]] symbols around the selected text** -![Convert internal links](https://user-images.githubusercontent.com/16410542/161437571-10987a6d-ff0f-4ef1-9193-f2b0602f18e4.gif) - -- If no text is selected, behavior depends on cursor position: - - If the cursor is inside \[\[Link|Text]], the surrounding link symbols are automatically removed - - If the cursor is not inside a link, \[\[ is output directly -- Supports batch conversion of multiple lines separated by line breaks, or multiple strings separated by enumeration marks. -- If the selected text contains symbols like „|[]?\*<>/:", the function will not execute. - -**2. Press "Alt+Q" to convert the selected text to \[\[|selected text]] format — for easy note name selection** -![Convert to alias link](https://user-images.githubusercontent.com/16410542/161437746-24db8f7a-c2f9-466e-b0d1-c16ade9bbcfc.gif) - -**3. Run the "Batch convert internal links" command to convert all potential links in the current note to `[[note name]]` style at once** - -### ☑️ Smart Symbols -**3. Press "Alt+;" to automatically convert, match, or skip various types of bracket symbols** -![Smart symbols](https://user-images.githubusercontent.com/16410542/161437355-79562ee8-60a7-41d5-85d2-d0ca5da495ba.gif) - -- **Convert to dedicated characters** when certain characters appear at the start of a line (inspired by the Easy Typing plugin): - - 》 → > - - 、 → / - -- **Replace with corresponding symbols** based on the two preceding characters: - - 【( or [( → 〖 - - (< or (< → 〈 - - (【 or ([ → 〔 - - " 【 or "[ → 『 - - ' 【 or '[ → 「 - - …… → ^ - -- Detects the nearest opening bracket before the cursor and **generates the matching closing bracket**: - - If the text is 〖Text|, pressing "Alt+;" inserts 〗 at the cursor position |, and so on for all the following. - - 《Text|》〈Text|〉[Text|]{Text|}【Text|】〖Text|〗〔Text|〕『Text|』「Text|」 - -- Detects the nearest MD syntax (first half of a character group) before the cursor and **completes the second half**: - - [[Link]] ==highlight== **bold** ~~strikethrough~~ %%comment%% - -- If the text is [[Text|]] followed by other characters and the cursor | is before it, **the cursor jumps past ]]**: - - i.e. when the second half of an MD syntax element (link, bold, highlight, strikethrough) is detected immediately after, it is automatically skipped. - -- Detects the current line content: if it contains words like Dataview, Query, or Mermaid, it is **converted to code block syntax**: - - dv → ```dataview``` - - qy → ```query``` - - mm → ```mermaid``` - - Also supports abbreviations for js, css, php, c, java, py, etc. - -- Detects the current line content: if it matches the `Callout syntax type alignment +/` format, it is **converted to a Callout syntax block** -![Convert callout syntax](https://user-images.githubusercontent.com/16410542/161438754-b58e903f-514e-46e5-b71f-9dbcde406db7.gif) - -### ☑️ Convert HTML Syntax -- Convert text color "Ctrl+Shift+1-5": apply or remove one of 5 custom colors to selected text -- Convert background color "Ctrl+Alt+1-5": apply or remove one of 5 custom background colors to selected text - -### ☑️ Convert Markdown Syntax -- Convert bold "Alt+C": apply or remove **bold** formatting to selected text -- Convert italic "Alt+X": apply or remove _italic_ formatting to selected text -- Convert inline code "Alt+D": apply or remove `inline code` formatting to selected text -- Convert strikethrough "Alt+S": apply or remove ~~strikethrough~~ formatting to selected text -- Convert underline "Alt+H": apply or remove underline formatting to selected text -- Convert code block "unassigned": apply or remove ```code block``` formatting to selected text -- Convert superscript "Alt+U": apply or remove superscript formatting to selected text -- Convert subscript "Alt+N": apply or remove subscript formatting to selected text -- Convert task status "unassigned": cycle through task statuses at line start, order: -[ x-!?><+] -- Convert cloze "unassigned": apply or remove {{c1::selected text}} formatting to selected text -- Convert heading syntax "Ctrl+1-6": set or unset the current line as a heading of level N - -- Plain text (no syntax) "Ctrl+Alt+Z": remove all Markdown syntax characters from the selected text -- Get plain text "Ctrl+Alt+C": remove all Markdown syntax characters from the selected text and copy to clipboard - -### ☑️ Add or Remove Common Brackets -- 【selected text】 "unassigned": add or remove 【】symbols around selected text -- (selected text) "unassigned": add or remove ()symbols around selected text -- 「selected text」 "unassigned": add or remove 「」symbols around selected text -- 《selected text》 "unassigned": add or remove 《》symbols around selected text - -### ☑️ Global Conversion Operations -- English to Chinese punctuation "unassigned": convert English punctuation in the note to Chinese, e.g. ,.?!" etc. -- Chinese to English punctuation "unassigned": convert Chinese punctuation in the note to English, e.g. ,。?!" etc. -- Convert path syntax "unassigned": toggle between c:\\windows and [](file:///c:\/windows) path syntax -- Simplified to Traditional Chinese "unassigned": convert simplified Chinese characters to traditional -- Traditional to Simplified Chinese "unassigned": convert traditional Chinese characters to simplified - -### ☑️ Additional Enhancement Features -- Smart paste "Ctrl+Alt+V": paste copied Office tables directly as Markdown tables -- Fix broken syntax "unassigned": fix broken MD syntax, e.g. 1。 lists, 【】()links, [[]]() backlinks, etc. -- Fix unexpected line breaks "unassigned": fix unexpected line breaks in the note (remove line breaks not ending with sentence-ending punctuation) -- Search current text "unassigned": search selected content in the current document via the search panel -- Get time information "unassigned": extract time information from the current line and jump to that position in a linked video note -- Get annotated text "unassigned": extract content from headings, highlights, comments, and prefixes -- Select entire paragraph "unassigned": select the entire paragraph the cursor is in -- Select entire sentence "unassigned": select the entire sentence the cursor is in -- Auto-set heading "unassigned": convert single-line text in the selection (not ending with punctuation or a digit) to a heading -- Set current filename "unassigned": use selected text as the filename of the current note -- Embed current URL "unassigned": insert HTML code at the end of the line to embed the selected URL as a page -- Get relative path "unassigned": get the relative path of the current note within the vault directory - -### ☑️ Insert or Remove Blank Lines (Spaces) -- An extra line break is added when pressing Enter in the editor (toggleable) -- Batch insert blank lines "Ctrl+Shift+L": insert blank lines between selected text lines or throughout the entire note -- Batch remove blank lines "Ctrl+Alt+L": remove blank lines from selected text or the entire note -- Insert blank line above "unassigned": insert a blank line above the current line -- Insert blank line below "unassigned": insert a blank line below the current line -- Append trailing spaces "unassigned": append two spaces to the end of each text line -- Remove trailing spaces "unassigned": batch remove trailing spaces from each text line -- Add spacing between Chinese and Latin "unassigned": batch insert spaces between Chinese characters and Latin letters -- Remove all spaces "unassigned": remove all half-width and full-width spaces from the text - - -## 📣 Installation -The Enhanced Editing plugin will not be available in the community plugin store in the near future. - -### ☑️ Manual Installation: -Download the latest release archive and extract the files (main.js, manifest.json) into the **vault directory/.obsidian/plugins/ZH增强编辑** folder. - -### ☑️ Install via BRAT Plugin: -- Install the BRAT plugin: [Click here to install](https://github.com/TfTHacker/obsidian42-brat) -- Add the following in the BRAT plugin settings panel: obsidian-canzi/Enhanced-editing