@@ -11,7 +11,7 @@ delivering near-native IME switching speed.
1111</p >
1212
1313<p align =" center " >
14- <img src =" https://img.shields.io/github/v/tag/riodelphino/macime?tag=v4.4.1 &style=for-the-badge&cacheSeconds=60 " />
14+ <img src =" https://img.shields.io/github/v/tag/riodelphino/macime?tag=v4.4.2 &style=for-the-badge&cacheSeconds=60 " />
1515 <img src =" https://img.shields.io/badge/License-MIT-%232196F3.svg?style=for-the-badge " />
1616 <img src =" https://img.shields.io/badge/Swift-5.x-orange.svg?style=for-the-badge&logo=swift&logoColor=white " />
1717 <img src =" https://img.shields.io/badge/Easy%20Install-Homebrew-%23FBB040?style=for-the-badge " />
@@ -56,6 +56,8 @@ If you’re a Mac user frustrated by slow IME switching, give it a try.
5656
5757## ⚠️ Breaking Changes
5858
59+ * [ v4.4.2] ( https://github.com/riodelphino/macime/releases/tag/v4.4.2 ) :
60+ * Remove legacy code for checking ` macime ` executable path. (` macimed ` works without ` macime ` from ` v4.x ` .)
5961* [ v4.4.0] ( https://github.com/riodelphino/macime/releases/tag/v4.4.0 ) :
6062 * Add pre-compiled binaries (` macime ` , ` macimed ` ) - no ` xcode ` or build required.
6163* [ v4.0.0] ( https://github.com/riodelphino/macime/releases/tag/v4.0.0 ) :
@@ -92,23 +94,25 @@ Select specific version and CPU architecture from:
9294
9395for Intel Mac:
9496``` bash
95- curl -L -O https://github.com/riodelphino/macime/releases/download/v4.4.0 /macime-v4.4.0 -x86_64.tar.gz
96- tar -zxvf macime-v4.4.0 -x86_64.tar.gz
97+ curl -L -O https://github.com/riodelphino/macime/releases/download/v4.4.2 /macime-v4.4.2 -x86_64.tar.gz
98+ tar -zxvf macime-v4.4.2 -x86_64.tar.gz
9799mv macime macimed ~ /bin
98100```
99101for Apple Silicon:
100102``` bash
101- curl -L -O https://github.com/riodelphino/macime/releases/download/v4.4.0 /macime-v4.4.0 -arm64.tar.gz
102- tar -zxvf macime-v4.4.0 -arm64.tar.gz
103+ curl -L -O https://github.com/riodelphino/macime/releases/download/v4.4.2 /macime-v4.4.2 -arm64.tar.gz
104+ tar -zxvf macime-v4.4.2 -arm64.tar.gz
103105mv macime macimed ~ /bin
104106```
105- Then add environmental variable to your ` ~/.zshrc ` or ` ~/.bashrc ` or ` ~/.profile ` :
107+ To change default sock-path and temp-dir, set environmental variable to your ` ~/.zshrc ` or ` ~/.bashrc ` or ` ~/.profile ` :
106108``` bash
107- export MACIME_PATH=" $HOME /bin/macime"
109+ export MACIME_SOCK_PATH=" /tmp/riodelphino.macimed.sock"
110+ export MACIME_TEMP_DIR=" /tmp/riodelphino.macime"
108111```
109112
110- * Replace ` v4.4.0 ` to your desired version tag.
111- * Replace ` ~/bin ` and ` $HOME/bin/macime ` to your desired directory.
113+ * Replace ` v4.4.2 ` to your desired version tag.
114+ * Replace ` ~/bin ` and ` /tmp/riodelphino.macime ` to your desired directory.
115+ * Relpace ` /tmp/riodelphino.macimed.sock ` to your desired path.
112116* Execute permission has already been granted.
113117
114118
@@ -124,7 +128,7 @@ brew untap riodelphino/tap
124128### ⚙️ Manual
125129
126130- Remove installed binaries.
127- - Remove the ` MACIME_PATH ` environmental variable .
131+ - Remove the environmental variables .
128132
129133
130134## ⬆️ Upgrade
@@ -392,22 +396,13 @@ require("macime").send("daemon get sock-path", function(ok, data) if ok then pri
392396require(" macime" ).send(" daemon set log-level debug" , function(ok, data) if ok then print(data) end end)
393397` ` `
394398
395- # ### 📍 macime Executable Path
396-
397- ` macimed` requires the full-path of ` macime` .
398-
399- It is determined from one of the following paths:
400- - ` MACIME_PATH` (Environment variable)
401- - ` /usr/local/bin/macime` (Homebrew on Intel Mac)
402- - ` /opt/homebrew/bin/macime` (Homebrew on Apple Silicon)
403-
404399# ### 🔌 Sock path
405400
406401` macimed` listen to the ` socket` for receiving/sending daemon commands.
407402
408403The sock path is determined from one of the following paths:
409404- ` MACIME_SOCK_PATH` (Environment variable)
410- - ` /tmp/riodelphino.macimed.sock`
405+ - ` /tmp/riodelphino.macimed.sock/ `
411406
412407# ### 📁 Temp dir
413408
@@ -424,6 +419,14 @@ The previous IDs are stored in following files:
424419
425420These files are deleted automatically when you shutdown macOS.
426421
422+ # ### ⚠️ macime path
423+
424+ These legacy code have been deprecated in ` v4.4.2` :
425+ - ` MACIME_PATH` environmental variable
426+ - Checking ` macime` executable
427+
428+ Since ` macimed` does not require ` macime` executable outside anymore in ` v4.x` . They are sharing IME switching class/functions internally.
429+
427430
428431# ## ▶️ Run daemon
429432
@@ -479,18 +482,6 @@ To check the log path:
479482- Run ` cat ~ /Library/LaunchAgents/homebrew.mxcl.macime.plist` , find ` StandardErrorPath` item.
480483- or Run ` :checkhealth macime` in neovim. (Requires [macime.nvim](https://github.com/riodelphino/macime.nvim))
481484
482- # ### 📍 MACIME_PATH Enviroment Variable
483-
484- The ` MACIME_PATH` is set at ` brew install` time via ` riodelphino/homebrew-tap/Fomula/macime.rb` :
485- ` ` ` ruby
486- service do
487- ...
488- environment_variables(
489- MACIME_PATH: opt_bin/" macime"
490- )
491- ...
492- end
493- ` ` `
494485
495486# # 🔗 Integration
496487
@@ -546,12 +537,6 @@ swift build
546537swift build -c release
547538```
548539
549- For debugging, temporary run the built `macimed` with the locally built `macime`:
550- ```bash
551- # In the macime repository root:
552- MACIME_PATH=.build/release/macime .build/release/macimed
553- ```
554-
555540## 🙏 Thanks To
556541
557542- The IME switching concept is inspired by [im-select](https://github.com/daipeihust/im-select) and [macism](https://github.com/laishulu/macism)
0 commit comments