You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,10 @@ A barebones "Custom autocorrect"/text replacement plugin for Zim.
5
5
### How to use
6
6
7
7
1. Move `textreplacer.py` into the plugins folder
8
-
2. Create your replacements json (see `example.json` for reference) and copy its full path
9
-
2. Enable the plugin in Zim and click "Configure"
8
+
2. Create your replacements json and copy its full path
9
+
* see `example.json` for reference
10
+
* on Linux, moving `example.json` to `~/.local/share/zim/plugins/text_replacements.json` is enough to get going; you can skip the rest of the steps
11
+
3. Enable the plugin in Zim and click "Configure"
10
12
4. Paste in the path from step 2 and click "OK"
11
13
12
14
From now on, every time you type one of the words you specified it will get replaced with the replacement you've chosen; this can be undone via undo (Ctrl+Z).
@@ -40,12 +42,13 @@ ERROR: Failed to load json from bad path: Error text here
40
42
41
43
Some common errors and how to fix them:
42
44
43
-
*`[Errno 2] No such file or directory: 'bad path'`: check the path; it should be a full, absolute path (eg. no `~` or `$HOME`)
45
+
*`[Errno 2] No such file or directory: 'bad path'`: check the path; aside from `~` and `~user` constructs you should use an absolute path (see [pathlib.Path](https://docs.python.org/3/library/pathlib.html#pathlib.Path) for more information)
44
46
* Check your json if any of these show up:
45
47
*`Extra data: line n, column m, (char l)` (or `Expecting value: ...` etc): something's not json
46
48
*`invalid json object`: couldn't be loaded as a Python `dict`
0 commit comments