Skip to content

Commit f98a3f7

Browse files
relastleHiroki-Konishi
authored andcommitted
Rename:
1 parent c4b56ec commit f98a3f7

File tree

5 files changed

+58
-52
lines changed

5 files changed

+58
-52
lines changed

resources/pmy_config.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

resources/pmy_rules.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[
2+
{
3+
"regexpLeft": "^cd +(?P<path>.*)$",
4+
"command": "\\ls ${PMY_LS_OPTION} -1 <path> | egrep '/$'",
5+
"bufferLeft": "[]",
6+
"bufferRight": "[]"
7+
},
8+
{
9+
"regexpLeft": "^python.* ",
10+
"command": "\\find . | egrep py$",
11+
"bufferLeft": "[]",
12+
"bufferRight": "[]"
13+
},
14+
{
15+
"regexpLeft": "^go ",
16+
"command": "\\find . | egrep go$",
17+
"bufferLeft": "[]",
18+
"bufferRight": "[]"
19+
},
20+
{
21+
"regexpLeft": "^make ",
22+
"regexpRight": "",
23+
"command": "cat Makefile",
24+
"bufferLeft": "[]",
25+
"bufferRight": "[]"
26+
},
27+
{
28+
"regexpLeft": "git +add +",
29+
"command": "git status --short | git status -s | grep -Ev \"^(A|C|D|M|R|T|U|X|B)\" | cut -c4-",
30+
"bufferLeft": "[]",
31+
"bufferRight": "[]"
32+
},
33+
{
34+
"regexpLeft": "^export ",
35+
"command": "printenv",
36+
"bufferLeft": "[]",
37+
"bufferRight": "[]"
38+
},
39+
{
40+
"regexpLeft": "(?P<cmd>.+)\\.for",
41+
"command": "echo ''",
42+
"bufferLeft": "for x in $(<cmd>); do ",
43+
"bufferRight": "; done"
44+
},
45+
{
46+
"regexpLeft": "^(vi||vim|nvim) ",
47+
"command": "find . -maxdepth 2",
48+
"bufferLeft": "[]",
49+
"bufferRight": "[]"
50+
}
51+
]

resources/test/test_pmy_config.json

Whitespace-only changes.

resources/test/test_pmy_input.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"bufferLeft": "ks
4+
}
5+
6+
]

shell/pmy.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# test environment path variable
22
export PATH="${GOPATH}/src/github.com/relastle/pmy:${PATH}"
3-
export PMY_CONFIG_PATH="${GOPATH}/src/github.com/relastle/pmy/resources/pmy_config.json"
3+
export PMY_CONFIG_PATH="${GOPATH}/src/github.com/relastle/pmy/resources/pmy_rules.json"
44

55
pmy-widget() {
66
local buffer_left=${LBUFFER}

0 commit comments

Comments
 (0)