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
If you want to investigate into further examples, see [Gallery](https://github.com/relastle/pmy/wiki/Gallery).
72
+
33
73
## Basic Usage
34
74
35
75
Pmy can be invoked by <kbd>Ctrl</kbd> + <kbd>Space</kbd>.
@@ -60,16 +100,16 @@ A single rule is described as follows
60
100
"bufferRight": "[]"
61
101
}
62
102
```
63
-
| property name | description |
64
-
| --- | --- |
65
-
|***regexpLeft***| If this regexp matches the current left buffer, this rule will be activated. |
66
-
|***regexpRight***| Same as left one, but in many cases you don't have to set it becasue you usually work in line left to right. |
67
-
|***cmdGroups.tag***| tag string which will be inserted ahead of each line of outputs of the corresponding command. |
68
-
|***cmdGroups.stmt***| command that will be executed to make sources for fuzzy-finder. |
69
-
|***cmdGroups.after***| command that will be executed against line after fuzzy-finder selection (using pipe). |
70
-
|***fuzzyFinderCmd***| Fuzzy finder command that will be executed (piped) against obtained command |
71
-
|***bufferLeft***| Buffer left values after completion. [] denotes the original left buffer. |
72
-
|***bufferRight***| Buffer right values after completion. [] denotes the original right buffer. |
103
+
| property name (JSON / YML) | description |
104
+
| --- | --- |
105
+
| ***regexpLeft*** / ***regexp-left*** | If this regexp matches the current left buffer, this rule will be activated. |
106
+
| ***regexpRight*** / ***regexp-right*** | Same as left one, but in many cases you don't have to set it becasue you usually work in line left to right. |
107
+
| ***cmdGroups.tag*** / ***cmd-groups.tag*** | tag string which will be inserted ahead of each line of outputs of the corresponding command. |
108
+
| ***cmdGroups.stmt*** / ***cmd-groups.stmt*** | command that will be executed to make sources for fuzzy-finder. |
109
+
| ***cmdGroups.after*** / ***cmd-groups.after*** | command that will be executed against line after fuzzy-finder selection (using pipe). |
110
+
| ***fuzzyFinderCmd*** / ***fuzzy-finder-cmd*** | Fuzzy finder command that will be executed (piped) against obtained command |
111
+
| ***bufferLeft*** / ***buffer-left*** | Buffer left values after completion. [] denotes the original left buffer. |
112
+
| ***bufferRight*** / ***buffer-right*** | Buffer right values after completion. [] denotes the original right buffer. |
73
113
74
114
### Rule configuration
75
115
@@ -91,9 +131,9 @@ This setting is similar that of that of `$PATH` variable (, which controlls path
91
131
92
132
In this situation, priorities as follows:
93
133
94
-
-1. /path/to/1/hoge_pmy_rules.json
95
-
-2. /path/to/2/hoge_pmy_rules.json
96
-
-3. ${HOME}/.pmy/rules/hoge_pmy_rules.json
134
+
- 1. `/path/to/1/hoge_pmy_rules.json`
135
+
- 2. `/path/to/2/hoge_pmy_rules.json`
136
+
- 3. `${HOME}/.pmy/rules/hoge_pmy_rules.json`
97
137
98
138
### command specific rule
99
139
@@ -102,7 +142,7 @@ which means that setting such rules into a single one file will increase searchi
102
142
Therefore, you can define command specific rule by putting command-specific rules in the same directory as
103
143
`${PMY_RULE_PATH}`with an appropriate file name as follows.
104
144
105
-
```bash
145
+
```zsh
106
146
├── pmy_rules.json
107
147
├── git_pmy_rules.json
108
148
├── cd_pmy_rules.json
@@ -125,119 +165,13 @@ If you want to change these values, you should export them in .zshrc before you
125
165
eval "$(pmy init)"
126
166
```
127
167
128
-
## Demonstration
129
-
130
-
Here, some of examples of pmy's completion are provided as GIF with its rule(json format).
131
-
They are just a few examples of all possible pattern-matching based completion, but I think it help you to create new pmy's rule.
0 commit comments