@@ -15,8 +15,8 @@ function alfredMatcher(str) {
15
15
function httpRequest ( url ) {
16
16
const queryURL = $ . NSURL . URLWithString ( url ) ;
17
17
const requestData = $ . NSData . dataWithContentsOfURL ( queryURL ) ;
18
- const requestString = $ . NSString . alloc . initWithDataEncoding ( requestData , $ . NSUTF8StringEncoding ) . js ;
19
- return requestString ;
18
+ const requestStr = $ . NSString . alloc . initWithDataEncoding ( requestData , $ . NSUTF8StringEncoding ) . js ;
19
+ return requestStr ;
20
20
}
21
21
22
22
//ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
@@ -71,13 +71,12 @@ function run() {
71
71
. map ( ( /** @type {GithubRepo&{local: {path: string}} } */ repo ) => {
72
72
let matcher = alfredMatcher ( repo . name ) ;
73
73
let type = "" ;
74
+ let subtitle = "" ;
74
75
75
76
// changes when repo is local
76
77
repo . local = localRepos [ repo . name ] ;
77
78
const mainArg = repo . local ?. path || repo . html_url ;
78
- const terminalActionDesc = repo . local
79
- ? "Open in Terminal"
80
- : "Shallow Clone"
79
+ const terminalActionDesc = repo . local ? "Open in Terminal" : "Shallow Clone" ;
81
80
// open in terminal when local, clone when not
82
81
const terminalArg = repo . local ?. path || repo . html_url ;
83
82
if ( repo . local ) {
@@ -87,23 +86,10 @@ function run() {
87
86
}
88
87
89
88
// extra info
90
- if ( repo . archived ) {
91
- type += "π " ;
92
- matcher += "archived " ;
93
- }
94
- if ( repo . fork ) {
95
- type += "π΄ " ;
96
- matcher += "fork " ;
97
- }
98
- if ( repo . is_template ) {
99
- type += "π " ;
100
- matcher += "template " ;
101
- }
102
- if ( repo . private ) {
103
- type += "π " ;
104
- matcher += "private " ;
105
- }
106
- let subtitle = "" ;
89
+ if ( repo . fork ) type += "π΄ " ;
90
+ if ( repo . fork ) matcher += "fork " ;
91
+ if ( repo . is_template ) type += "π " ;
92
+ if ( repo . is_template ) matcher += "template " ;
107
93
if ( repo . stargazers_count > 0 ) subtitle += `β ${ repo . stargazers_count } ` ;
108
94
if ( repo . open_issues > 0 ) subtitle += `π’ ${ repo . open_issues } ` ;
109
95
if ( repo . forks_count > 0 ) subtitle += `π΄ ${ repo . forks_count } ` ;
@@ -120,7 +106,7 @@ function run() {
120
106
valid : Boolean ( repo . local ) ,
121
107
} ,
122
108
ctrl : {
123
- subtitle : ` β: ${ terminalActionDesc } ` ,
109
+ subtitle : " β: " + terminalActionDesc ,
124
110
arg : terminalArg ,
125
111
} ,
126
112
alt : {
0 commit comments