Skip to content

Commit 9ad4492

Browse files
committed
update
1 parent 5e4665a commit 9ad4492

File tree

2 files changed

+17
-38
lines changed

2 files changed

+17
-38
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.DS_Store

README.md

+15-38
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,37 @@
1-
# Seer-plugin
1+
# Seer Plug-in
22

33
#### How to add a plugin
44

5-
- The extension of the file is not case sensitive.
6-
- Drag the line number to change sequence
7-
- Triggered only check the plug-in type at a time
5+
- The extension of file is case insensitive
6+
- Drag line number to change sequence
7+
- Triggered only check the plug-in type once
88

9-
![plugin](https://raw.githubusercontent.com/ccseer/Seer/master/img/plugins-add.jpg)
10-
11-
#### How to write a plugin
12-
13-
######Replace invocation
14-
15-
Seer will replace *SEER_OUTPUT_PATH\* with the triggered file, replace *SEER_INPUT_PATH\* with the output path. If the plugin output file doesn't contain a suffix, you could append suffix to the *SEER_OUTPUT_PATH\*.
16-
17-
*In practical use, it looks like this:*
18-
19-
> nconvert.exe -out pdf -o \*SEER_OUTPUT_PATH\*.pdf \*SEER_INPUT_PATH\*
9+
To install a plugin, select it in the `Settings` and hit the `Download` button afterwards. This initiates the download of the plugin file in the default system browser.
2010

11+
All plugins are provided as zip archives which you need to extract on the local system. Afterwards, switch to the `Local` tab under `Plugins` in Seer's `Settings`, and click on add. This opens a file browser which you use to select the `json` file in the folder you have extracted the archive to.
2112

13+
Once done, support for the new file types has been added to Seer.
2214

2315

2416

25-
######Normal invocation
26-
27-
Seer will add two strings after command line when invoking the plugin.
28-
29-
```
30-
1. The front string is the full path to the triggered file, for example, "E:/my_folder/name.ttf".
31-
2. The other string has a full path of the file and there is no file suffix. For example, "C:/Users/COREY/AppData/Local/Temp/Seer/a-random-name".
32-
```
33-
34-
The plugin will analysis triggered file into the format of one of the built-in Seer suffix, name the resulting file as a-random-name, and save it on the path, “C:/Users/COREY/AppData/Local/Temp/Seer/”.
35-
36-
To illustrate the function, we use the mentioned font file above as an example.
17+
#### How to write a plugin
3718

38-
The invocation of Seer is shown as below.
19+
######Replace invocation
3920

40-
`C:/Seer/fontpreview.exe C:/triggering-path/FILE.TTF C:/Seer-temp-path/ABCabc123`
21+
Seer replaces `*SEER_INPUT_PATH*` with the triggered file, replaces `*SEER_OUTPUT_PATH*` with the saving path. If the plugin output file doesn't contain a suffix, you can append suffix to the `*SEER_OUTPUT_PATH*`.
4122

42-
**fontpreview.exe would render FILE.TTF to ABCabc123.png**
23+
*In practical use, it looks like this:*
4324

44-
*In practical use, it looks like these:*
25+
> nconvert.exe -out pdf -o \*SEER_OUTPUT_PATH\*.pdf \*SEER_INPUT_PATH\*
4526
46-
> - fontpreview_py.exe -t "A Quick Brown Fox Jumps Over The Lazy Dog 0123456789"
47-
> - 1syt.exe
48-
######
4927

5028

29+
*Source Code for example*
5130

52-
*Source Code*
31+
- [fontpreview](https://github.com/ccseer/Seer-plugins/blob/master/font/fontpreview_py.py)
32+
- [MS-Office](https://github.com/ccseer/Seer-plugins/blob/master/ms-office/1syt.py)
5333

54-
- fontpreview [Github](https://github.com/ccseer/Seer-plugins/blob/master/font/fontpreview_py.py)
55-
- MS-Office [Github](https://github.com/ccseer/Seer-plugins/blob/master/ms-office/1syt.py)
5634

57-
Contact: cc.seer@gmail.com
5835

5936

6037

0 commit comments

Comments
 (0)