Skip to content

Commit

Permalink
🔧 Disable Alfred smart result ordering in favor of Algolia ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Dec 22, 2022
1 parent 33a5ad8 commit edf59a3
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_VERSION=2.1.8
APP_VERSION=2.1.9
GITHUB_REPOSITORY_URL=https://github.com/techouse/alfred-tailwindcss-docs
SUPPORTED_VERSIONS=v0,v1,v2,v3
ALGOLIA_SEARCH_INDEX=
Expand Down
3 changes: 2 additions & 1 deletion bin/main_helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ part of 'main.dart';

final HtmlUnescape _unescape = HtmlUnescape();

final AlfredWorkflow _workflow = AlfredWorkflow();
final AlfredWorkflow _workflow = AlfredWorkflow()
..disableAlfredSmartResultOrdering = true;

final AlfredUpdater _updater = AlfredUpdater(
githubRepositoryUrl: Uri.parse(Env.githubRepositoryUrl),
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.1.8</string>
<string>2.1.9</string>
<key>webaddress</key>
<string>https://github.com/techouse</string>
</dict>
Expand Down
45 changes: 19 additions & 26 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "50.0.0"
version: "51.0.0"
alfred_workflow:
dependency: "direct main"
description:
name: alfred_workflow
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.10"
version: "0.3.0+1"
algolia:
dependency: "direct main"
description:
Expand All @@ -23,12 +23,12 @@ packages:
source: hosted
version: "1.1.1"
analyzer:
dependency: "direct overridden"
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.0"
version: "5.3.1"
analyzer_plugin:
dependency: transitive
description:
Expand Down Expand Up @@ -98,7 +98,7 @@ packages:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.2"
version: "2.3.3"
build_runner_core:
dependency: transitive
description:
Expand Down Expand Up @@ -140,7 +140,7 @@ packages:
name: cli_script
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.6"
version: "0.3.0"
clock:
dependency: transitive
description:
Expand All @@ -154,7 +154,7 @@ packages:
name: code_builder
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
version: "4.4.0"
collection:
dependency: "direct main"
description:
Expand All @@ -175,7 +175,7 @@ packages:
name: copy_with_extension
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.4"
version: "5.0.0"
crypto:
dependency: transitive
description:
Expand All @@ -196,35 +196,28 @@ packages:
name: dart_code_metrics
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.1"
version: "5.3.0"
dart_style:
dependency: transitive
description:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.4"
dotenv:
dependency: transitive
description:
name: dotenv
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.1"
envied:
dependency: "direct main"
description:
name: envied
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.4"
version: "0.3.0"
envied_generator:
dependency: "direct dev"
description:
name: envied_generator
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.3+1"
version: "0.3.0"
equatable:
dependency: transitive
description:
Expand Down Expand Up @@ -252,7 +245,7 @@ packages:
name: frontend_server_client
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
version: "3.2.0"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -350,7 +343,7 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.13"
version: "0.12.14"
meta:
dependency: transitive
description:
Expand All @@ -364,7 +357,7 @@ packages:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.0.3"
package_config:
dependency: transitive
description:
Expand All @@ -378,7 +371,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
version: "1.8.3"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -420,7 +413,7 @@ packages:
name: pub_updater
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.2"
version: "0.2.3"
pubspec_parse:
dependency: transitive
description:
Expand Down Expand Up @@ -476,14 +469,14 @@ packages:
name: stash
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.4"
version: "4.4.1"
stash_file:
dependency: transitive
description:
name: stash_file
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.4"
version: "4.4.1"
stream_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -546,7 +539,7 @@ packages:
name: uuid
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.6"
version: "3.0.7"
watcher:
dependency: transitive
description:
Expand Down
25 changes: 11 additions & 14 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,24 @@ description: Search the Tailwind CSS documentation using Alfred
# Prevent accidental publishing to pub.dev.
publish_to: 'none'

version: 2.1.8
version: 2.1.9

environment:
sdk: '>=2.17.0 <3.0.0'

dependencies:
algolia: ^1.1.1
args: ^2.3.0
cli_script: ^0.2.6
envied: ^0.2.3
args: ^2.3.1
cli_script: ^0.3.0
envied: ^0.3.0
html_unescape: ^2.0.0
alfred_workflow: ^0.2.0
collection: ^1.16.0
alfred_workflow: ^0.3.0+1
collection: ^1.17.0
json_annotation: ^4.7.0

dev_dependencies:
build_runner: ^2.1.7
dart_code_metrics: ^5.0.1
envied_generator: ^0.2.3
json_serializable: ^6.1.5
lints: ^2.0.0

dependency_overrides:
analyzer: ^5.2.0
build_runner: ^2.3.3
dart_code_metrics: ^5.3.0
envied_generator: ^0.3.0
json_serializable: ^6.5.4
lints: ^2.0.1
1 change: 0 additions & 1 deletion version

This file was deleted.

0 comments on commit edf59a3

Please sign in to comment.