Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
bbf5dc0
Merge tag '0.21.0' into develop
intitni Aug 9, 2023
3a34444
Make OverrideChatGPTConfiguration non-generic
intitni Aug 11, 2023
930177e
Add function calling fallback when the bot is calling a function not …
intitni Aug 11, 2023
e1360a2
Merge branch 'feature/function-calling-fallback' into develop
intitni Aug 11, 2023
e7834c6
Add settings key suggestionDisplayCompactMode
intitni Aug 11, 2023
63737ca
Support hiding buttons in suggestion panel
intitni Aug 11, 2023
ae454a1
Merge branch 'feature/compact-suggestion' into develop
intitni Aug 11, 2023
63e25a2
Fix padding
intitni Aug 11, 2023
626622b
Support opening web page in new tab
intitni Aug 11, 2023
ba1c738
Fix command+w to close tab
intitni Aug 11, 2023
e587cda
Support opening new tab from chat tab
intitni Aug 11, 2023
93734f3
Merge branch 'feature/handle-blank-link-browser-tab' into develop
intitni Aug 11, 2023
f6177b7
Bump highlight.js version
intitni Aug 11, 2023
f10bdae
Remove Splash
intitni Aug 11, 2023
d43798c
Merge branch 'feature/bump-highlightjs-version' into develop
intitni Aug 11, 2023
106417c
Merge tag '0.21.1' into develop
intitni Aug 13, 2023
ba53c27
Allow generating restorable tab data
intitni Aug 11, 2023
ac3f944
Migrate chat tab to a more maintainable structure
intitni Aug 12, 2023
dc32492
Fix menu not updating
intitni Aug 12, 2023
f2674dc
Adjust restore to return builder
intitni Aug 12, 2023
72e81ac
Add CoreData
intitni Aug 13, 2023
a965b79
Connect GUI to ChatTabPersistent
intitni Aug 13, 2023
7efe060
Adjust implementation of restore
intitni Aug 13, 2023
ff94f17
Fix typo
intitni Aug 13, 2023
b539596
Support restoring chat tabs
intitni Aug 13, 2023
e9fe64d
Make ChatGPTChatTab persistable
intitni Aug 13, 2023
98b464f
Make store loading async
intitni Aug 14, 2023
6a24743
Merge branch 'feature/persisted-chat' into develop
intitni Aug 14, 2023
fe04f9d
Use I instead of the user when talking to the bot
intitni Aug 14, 2023
efd5c7b
Merge tag 'allow-disabling-function-calling' into develop
intitni Aug 14, 2023
4219f3c
Merge tag '0.21.2' into develop
intitni Aug 14, 2023
b29247e
Add Tool/Workspace
intitni Aug 14, 2023
d9e230c
Update
intitni Aug 16, 2023
19d0608
Adjust Tool/Workspace
intitni Aug 16, 2023
dee703a
Replace the Workspace with the one from Tool
intitni Aug 16, 2023
824ad01
Add Service singleton to handle all other singletons in Service target
intitni Aug 16, 2023
29afe7e
Update tests
intitni Aug 16, 2023
e837f9d
Remove PresentInCommentSuggestionPresenter
intitni Aug 16, 2023
3a25e7a
Merge branch 'feature/move-workspace-to-tool' into develop
intitni Aug 16, 2023
360f3b8
Adjust Workspace
intitni Aug 16, 2023
1e8b157
Move CGEventObserver to Tool
intitni Aug 16, 2023
44ecf40
Support accepting suggestion with tab
intitni Aug 16, 2023
f0634b9
Adjust interface of Service
intitni Aug 16, 2023
ad167e7
Adjust API of ActiveApplicationMonitor
intitni Aug 16, 2023
1016380
Update
intitni Aug 16, 2023
46b817c
Move DependencyUpdater().update() to start
intitni Aug 16, 2023
4a1b47e
Add tab to accept suggestion settings
intitni Aug 17, 2023
8a562a4
Update
intitni Aug 17, 2023
947c9a6
Fix WithFeatureEnabled
intitni Aug 17, 2023
4098389
Update README.md
intitni Aug 17, 2023
58e90f0
Merge branch 'feature/tab-to-accept-suggestion' into develop
intitni Aug 17, 2023
2051e64
Display widget animation when it's hidden
intitni Aug 17, 2023
07f0064
Adjust animation
intitni Aug 17, 2023
b21001a
Make widget smaller
intitni Aug 17, 2023
3cfc193
Adjust padding
intitni Aug 17, 2023
6a75f10
Merge branch 'feature/circular-widget-animation-when-hidden' into dev…
intitni Aug 17, 2023
418fdd8
Tweak widget transition
intitni Aug 17, 2023
64728cd
Support processing text in shadow dom
intitni Aug 17, 2023
32bfe94
Bump version to 0.22.0
intitni Aug 17, 2023
993963b
Update
intitni Aug 17, 2023
0fe6bd8
Update README.md
intitni Aug 17, 2023
011596d
Update
intitni Aug 18, 2023
f37bc13
Add current time to system prompt
intitni Aug 18, 2023
e6ec55a
Fix
intitni Aug 18, 2023
6a3d377
Update appcast.xml
intitni Aug 18, 2023
9da3656
Add advanced settings for debug
intitni Aug 18, 2023
5cf302b
Update appcast.xml
intitni Aug 18, 2023
a31256a
Merge tag '0.22.0' into develop
intitni Aug 18, 2023
44f5614
Merge branch 'release/0.22.0'
intitni Aug 18, 2023
071fa16
Fix that browser tabs cancelling observations of other browser tabs
intitni Aug 18, 2023
c305d78
Bump version to 0.22.1
intitni Aug 18, 2023
0469045
Update appcast.xml
intitni Aug 18, 2023
4d19c55
Merge branch 'release/0.22.1'
intitni Aug 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tab to accept suggestion settings
  • Loading branch information
intitni committed Aug 17, 2023
commit 4a1b47e29b26cfad9096893faa8df61bba4717cd
20 changes: 17 additions & 3 deletions Core/Sources/HostApp/FeatureSettings/SuggestionSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Preferences
import SwiftUI

#if canImport(ProHostApp)
import ProHostApp
#endif

struct SuggestionSettingsView: View {
final class Settings: ObservableObject {
@AppStorage(\.realtimeSuggestionToggle)
Expand All @@ -21,6 +25,8 @@ struct SuggestionSettingsView: View {
var suggestionFeatureProvider
@AppStorage(\.suggestionDisplayCompactMode)
var suggestionDisplayCompactMode
@AppStorage(\.acceptSuggestionWithTab)
var acceptSuggestionWithTab
init() {}
}

Expand Down Expand Up @@ -58,8 +64,16 @@ struct SuggestionSettingsView: View {
}

Toggle(isOn: $settings.realtimeSuggestionToggle) {
Text("Real-time suggestion")
Text("Real-time Suggestion")
}

#if canImport(ProHostApp)
WithFeatureEnabled(\.tabToAcceptSuggestion) {
Toggle(isOn: $settings.acceptSuggestionWithTab) {
Text("Accept Suggestion with Tab")
}
}
#endif

HStack {
Toggle(isOn: $settings.disableSuggestionFeatureGlobally) {
Expand All @@ -74,7 +88,7 @@ struct SuggestionSettingsView: View {
isOpen: $isSuggestionFeatureEnabledListPickerOpen
)
}

HStack {
Button("Disabled Language List") {
isSuggestionFeatureDisabledLanguageListViewOpen = true
Expand Down Expand Up @@ -110,7 +124,7 @@ struct SuggestionSettingsView: View {
Toggle(isOn: $settings.suggestionDisplayCompactMode) {
Text("Hide Buttons")
}

Toggle(isOn: $settings.hideCommonPrecedingSpacesInSuggestion) {
Text("Hide Common Preceding Spaces")
}
Expand Down
2 changes: 1 addition & 1 deletion Pro
Submodule Pro updated from 045076 to 002308
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public final class ActiveApplicationMonitor {
.init { continuation in
let id = UUID()
Task { @MainActor in
// not sure why,
// but we need to wrap the addContinuation in this task to make it not crash
continuation.onTermination = { _ in
self.removeContinuation(id: id)
}
Expand Down
4 changes: 4 additions & 0 deletions Tool/Sources/Preferences/Keys.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ public extension UserDefaultPreferenceKeys {
var realtimeSuggestionDebounce: PreferenceKey<Double> {
.init(defaultValue: 0, key: "RealtimeSuggestionDebounce")
}

var acceptSuggestionWithTab: PreferenceKey<Bool> {
.init(defaultValue: false, key: "AcceptSuggestionWithTab")
}
}

// MARK: - Chat
Expand Down