Skip to content

Commit 96fede2

Browse files
committed
removed references to hybrid
1 parent 1905771 commit 96fede2

File tree

4 files changed

+6
-29
lines changed

4 files changed

+6
-29
lines changed

Flitro/ContextManager/ContextManager.swift

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,13 @@ struct TerminalSession: Identifiable, Codable, Equatable, Hashable {
172172
enum SwitchingMode: String, CaseIterable {
173173
case replaceAll = "Replace All"
174174
case additive = "Additive"
175-
case hybrid = "Smart Replace"
176175

177176
var description: String {
178177
switch self {
179178
case .replaceAll:
180179
return "Close current context apps and open new ones"
181180
case .additive:
182181
return "Keep current apps and add new context apps"
183-
case .hybrid:
184-
return "Close non-essential apps, keep productivity apps"
185182
}
186183
}
187184
}
@@ -247,18 +244,14 @@ class ContextManager: ObservableObject {
247244
// MARK: - Context Switching
248245

249246
func switchToContext(_ context: Context, switchingMode: SwitchingMode) {
250-
switch switchingMode {
251-
case .replaceAll:
247+
if switchingMode == .replaceAll {
252248
if let currentContext = activeContext {
253249
closeContext(currentContext)
254250
}
255251
activeContext = context
256-
openContextItems(context)
257-
saveContexts()
258-
case .additive, .hybrid:
259-
openContextItems(context)
260-
saveContexts()
261252
}
253+
openContextItems(context)
254+
saveContexts()
262255
}
263256

264257
/// Determine the bundle identifier for a ContextItem

Flitro/Editor/ContextDetailsView.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,6 @@ struct ContextDetailsView: View {
269269
.font(.system(size: 16, weight: .medium))
270270
.padding(.horizontal, 10)
271271
.padding(.vertical, 6)
272-
.background(
273-
Capsule().fill(colorForSwitchingMode(.additive))
274-
)
275272
.foregroundColor(.white)
276273
}
277274
.buttonStyle(.plain)
@@ -327,8 +324,6 @@ struct ContextDetailsView: View {
327324
return "arrow.triangle.2.circlepath"
328325
case .additive:
329326
return "plus.circle"
330-
case .hybrid:
331-
return "brain.head.profile"
332327
}
333328
}
334329

@@ -338,17 +333,6 @@ struct ContextDetailsView: View {
338333
}
339334
return "Context"
340335
}
341-
342-
private func colorForSwitchingMode(_ mode: SwitchingMode) -> Color {
343-
switch mode {
344-
case .replaceAll:
345-
return Color.blue
346-
case .additive:
347-
return Color.green
348-
case .hybrid:
349-
return Color.purple
350-
}
351-
}
352336
}
353337

354338
struct TopRoundedRectangle: Shape {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Flitro is a powerful macOS productivity app designed to help you seamlessly swit
77
## Key Features
88

99
- **Instant Context Switching:** Instantly switch your workspace to a saved context, opening and closing the right apps, documents, browser tabs, and terminals for your task.
10-
- **Flexible Switching Modes:** Choose between Replace All, Additive, or Hybrid modes to tailor how your workspace changes.
10+
- **Flexible Switching Modes:** Choose between Replace All, or Additive modes to tailor how your workspace changes.
1111
- **Easy Context Management:** Create, edit, and delete named contexts to match your workflows.
1212
- **Menu Bar Access:** Quickly access and switch contexts from the macOS menu bar, without interrupting your flow.
1313
- **Unified Window Experience:** The main window is always available from the menu bar or via keyboard shortcut, never duplicated, and hides when closed for a clutter-free desktop.

web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ <h3>Modern UI</h3>
515515
<div class="feature-card">
516516
<div class="feature-icon">🔄</div>
517517
<h3>Multiple Switch Modes</h3>
518-
<p>Choose between Replace All, Additive, and Hybrid modes to suit your workflow preferences.</p>
518+
<p>Choose between Replace All and Additive modes to suit your workflow preferences.</p>
519519
</div>
520520
</div>
521521
</div>
@@ -535,7 +535,7 @@ <h3>Configure Contexts</h3>
535535
<div class="step">
536536
<div class="step-number">2</div>
537537
<h3>Choose Switch Mode</h3>
538-
<p>Select your preferred switching mode: Replace All for complete context switching, Additive to add to current setup, or Hybrid for smart switching.</p>
538+
<p>Select your preferred switching mode: Replace All for complete context switching, Additive to add to current setup.</p>
539539
</div>
540540
<div class="step">
541541
<div class="step-number">3</div>

0 commit comments

Comments
 (0)