mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-05 09:32:37 +02:00
Drop blacklists for an org free of non-plugins. Closes #255.
This commit is contained in:
parent
a125d8158c
commit
4ac3e19193
1 changed files with 5 additions and 9 deletions
14
fisher.fish
14
fisher.fish
|
@ -292,7 +292,7 @@ function fisher
|
||||||
' "$fisher_cache/.index" ^ /dev/null | while read -l name info
|
' "$fisher_cache/.index" ^ /dev/null | while read -l name info
|
||||||
|
|
||||||
switch "$name"
|
switch "$name"
|
||||||
case awesome-\* fisherman\* index\* logo\* taof
|
case fisherman\*
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1009,10 +1009,6 @@ function __fisher_list_remote -a format
|
||||||
return a[n]
|
return a[n]
|
||||||
}
|
}
|
||||||
|
|
||||||
function plugin_is_blacklisted(item) {
|
|
||||||
return (item ~ /^awesome-fish|^fisherman|^index|^logo|^taof/)
|
|
||||||
}
|
|
||||||
|
|
||||||
function record_printf(fmt, name, info, url, stars) {
|
function record_printf(fmt, name, info, url, stars) {
|
||||||
gsub(/%name/, name, fmt)
|
gsub(/%name/, name, fmt)
|
||||||
gsub(/%stars/, stars, fmt)
|
gsub(/%stars/, stars, fmt)
|
||||||
|
@ -1023,18 +1019,18 @@ function __fisher_list_remote -a format
|
||||||
}
|
}
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
keys_count = split(keys, keys_a, " ")
|
keys_n = split(keys, keys_a, " ")
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
if (keys_count > 0) {
|
if (keys_n > 0) {
|
||||||
for (i = 1; i <= keys_count; i++) {
|
for (i = 1; i <= keys_n; i++) {
|
||||||
if (keys_a[i] == $1) {
|
if (keys_a[i] == $1) {
|
||||||
record_printf(format_s, $1, $2, $3, $4)
|
record_printf(format_s, $1, $2, $3, $4)
|
||||||
next
|
next
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!plugin_is_blacklisted($1)) {
|
} else if ($1 !~ /^fisherman/) {
|
||||||
record_printf(format_s, $1, $2, $3, $4)
|
record_printf(format_s, $1, $2, $3, $4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue