Skip to content

Commit cf64b71

Browse files
committed
docs: Add a test code for socket in bash
1 parent e21f686 commit cf64b71

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [4.4.2](https://github.com/riodelphino/macime/compare/v4.4.1...v4.4.2) (2026-04-17)
44

5+
* **docs:** Add a test code for socket in bash
56
* **fix:** Remove legacy code for checking `macime` executable path (`macimed` works without `macime` from v4.x)
67

78
## [4.4.1](https://github.com/riodelphino/macime/compare/v4.4.0...v4.4.1) (2026-04-17)

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,26 @@ daemon set log-level info # Set log level. Use one of debug|info|warn|error (Def
386386
> Currently `daemon set` is disabled since it requires restarting server and much more modifications.
387387

388388

389-
To test these commands via `macime.nvim` (Ensure `macimed` is running):
389+
#### Socket test
390+
391+
##### A test via bash or zsh
392+
393+
To test socket via bash or zsh command:
394+
```bash
395+
echo "ime get" | nc -U /tmp/riodelphino.macimed.sock
396+
# com.google.inputmethod.Japanese.base
397+
398+
echo "ime set com.google.inputmethod.Japanese.base" | nc -U /tmp/riodelphino.macimed.sock
399+
# IME is changed to Google Japanese
400+
```
401+
Or test socket interactively:
402+
```bash
403+
nc -U /tmp/riodelphino.macimed.sock
404+
```
405+
406+
##### A test via macime.nvim
407+
408+
To test socket via `macime.nvim` (Ensure `macimed` is running):
390409
(e.g.)
391410
```lua
392411
require("macime").send("ime set com.apple.keylayout.ABC")

0 commit comments

Comments
 (0)