Sublime Text 4 plugin which can patch Sublime Text and Sublime Merge.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
n6333373 a0e1015bab refactor(build): bundle plugin into a single compiled module
Replace the per-submodule .pyd/.so artifacts under plugin/ with a single
top-level plugin extension module per platform to simplify distribution
and loading.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: n6333373 <[email protected]>
2026-06-03 05:15:24 +08:00
SelfPatcher refactor(build): bundle plugin into a single compiled module 2026-06-03 05:15:24 +08:00
README.md refactor: py314 support / stable SM patterns 2026-04-30 03:54:04 +08:00

Sublime Self Patcher

⚠️ Sublime Text >= 4205 (Python 3.14 plugin host) is required to run this plugin.

This is a Sublime Text plugin which can patch Sublime Text and Sublime Merge.

Supported Environments

Sign Meaning
✅ Supported. Patch patterns seem to be stable.
⚠️ Unstable patch patterns. You may have to update this plugin frequently.
☠️ Sorry but I don't use it.
Linux x64 Windows x64 Others
Sublime Text ✅ ✅ ☠️
Sublime Merge ✅ ✅ ☠️

Download

https://github.com/n6333373/sublime-self-patcher/archive/refs/heads/main.zip

Installation

First, you have to find out the Packages directory.

  • If you are using a portable version of Sublime Text, it is Data/Packages.
  • If you are using an installed version of Sublime Text,
    • On Windows, it is %appdata%\Sublime Text\Packages.
    • On Linux, it is $HOME/.config/sublime_text/Packages.

Now, (decompress if necessary) put the downloaded directory into the Packages directory so that the directory structure looks like the following:

Packages/
└── SelfPatcher/
    ├── boot.py
    ├── ...

And then restart Sublime Text if it's running.

Usage

Patch Self (The Current Sublime Text)

  • If you are using a unregistered dev build, this plugin should show a popup for patching when starting.
  • If you are using a stable build, you can patch from the menu: Help ⇒ Patch This Application

Patch External Sublime Text/Merge

If your application is installed in a place which requires admin/root permission to write, you can use this plugin to create a patched executable in a temporarily directory.

Click the menu: Help ⇒ Patch External Sublime Text/Merge and then select the executable of Sublime Text/Merge.

Q&A

How to Disable Sublime Text/Merge Auto Update?

This plugin usually just continues to work for future versions of Sublime Text/Merge. But if you want to disable the application auto update, you can set the following settings:

{
    "update_check": false, // this works only if you have registered
}

This Plugin is Suspicious

I don't think I do anything malicious, but you don't have to trust me. You can