From e9935ce349dfbd1a62e9ca2b79763323a8acef0c Mon Sep 17 00:00:00 2001 From: Ole Begemann Date: Wed, 15 May 2024 12:20:27 +0200 Subject: [PATCH] Include upcoming feature flag in subtitle (if applicable) --- se-lookup.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/se-lookup.swift b/se-lookup.swift index 0536d52..c6d97d3 100755 --- a/se-lookup.swift +++ b/se-lookup.swift @@ -227,7 +227,14 @@ extension AlfredItem { init(proposal: Proposal) { self.uid = proposal.url.absoluteString self.title = "\(proposal.id): \(proposal.title)" - self.subtitle = "\(proposal.status.description)" + var subtitle = proposal.status.description + if let upcomingFeatureFlag = proposal.upcomingFeatureFlag { + subtitle.append(" ยท Feature flag: \(upcomingFeatureFlag.flag)") + if let languageMode = upcomingFeatureFlag.enabledInLanguageMode { + subtitle.append(" (enabled in Swift \(languageMode) language version)") + } + } + self.subtitle = subtitle self.arg = proposal.url.absoluteString self.autocomplete = proposal.id self.quicklookurl = proposal.url.absoluteString