Thai Bracket Remap

by Poom
5
4
3
2
1
Score: 51/100

Description

An Obisidian plugin that remap ฃ to [ and ฅ to ]

Reviews

No reviews yet.

Stats

0
stars
127
downloads
0
forks
120
days
60
days
60
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
0
total issues
0
open issues
0
closed issues
15
commits

Latest Version

2 months ago

Changelog

Fix manifest.json error

README file from

Github

Thai Bracket Remap

An Obsidian plugin that remaps two rarely-used Thai characters to square brackets while typing in the editor:

  • Typing ซ inserts [ instead
  • Typing ฅ inserts ] instead

On the Kedmanee layout those letters sit on the same physical keys as English [ and ] (ข/ซ on [, ค/ฅ on ]). The point is not to hunt for another key — it is to type [[wiki-links]] and Markdown brackets without switching from Thai to English.

ซ and ฅ are obsolete Thai consonants that almost never appear in modern spelling, so the plugin reuses them as instant bracket shortcuts. The remap happens as you type; no extra keystrokes.

Installation

Already listed in Community plugins: search Thai Bracket Remap, or open https://community.obsidian.md/plugins/thai-bracket-remap

Via BRAT (beta / sideload)

  1. Install the BRAT community plugin.
  2. In BRAT, choose "Add Beta plugin" and enter: khunpoom/Thai-bracket-remap
  3. BRAT will install and keep it updated automatically.

Manual installation

  1. Download manifest.json and main.js from the latest release.
  2. Create a folder named thai-bracket-remap inside your vault's .obsidian/plugins/ directory.
  3. Place both files inside it:
    YourVault/.obsidian/plugins/thai-bracket-remap/
      ├── manifest.json
      └── main.js
    
  4. In Obsidian, go to Settings → Community plugins, disable Restricted mode if needed, then reload and enable "Thai Bracket Remap".

Customizing the character mapping

Open main.js and edit the CHAR_MAP object:

const CHAR_MAP = {
	'ซ': '[',
	'ฅ': ']',
};

Add or change character pairs as you like, then reload the plugin for changes to take effect.


ภาษาไทย

ปลั๊กอิน Obsidian ที่แปลงตัวอักษรไทยที่แทบไม่ได้ใช้แล้ว (ซ, ฅ) ให้กลายเป็นวงเล็บเหลี่ยมขณะพิมพ์:

  • พิมพ์ ซ → ได้ [
  • พิมพ์ ฅ → ได้ ]

บนแผ้น Kedmanee ตัวอักษรสองตัวนี้อยู่ ปุ่มเดียวกับ [ / ] ของแผ้นอังกฤษ (ข/ซ อยู่ปุ่ม [, ค/ฅ อยู่ปุ่ม ]) จุดประสงค์ไม่ใช่หาปุ่มอื่น — จุดหมายคือ ไม่ต้องสลับภาษา เมื่อต้องการพิมพ์ wiki-link ([[...]]) หรือ Markdown

ทำงานทันทีที่พิมพ์ในหน้าต่างแก้ไข (editor) ของ Obsidian

วิธีติดตั้ง (Community plugins)

ค้นหา Thai Bracket Remap ใน Community plugins ของ Obsidian แล้วกด Install

ถ้าอยากแก้คู่ตัวอักษรอื่น

เปิดไฟล์ main.js แล้วแก้ใน object CHAR_MAP ตามต้องการ แล้วรีโหลดปลั๊กอิน