mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54:32 +00:00
Merge branch 'main' of https://github.com/Ebullioscopic/Atoll into feature/lunar-support
conflict resolution needed
This commit is contained in:
commit
9396a5a8ff
4 changed files with 78 additions and 16 deletions
|
|
@ -158,9 +158,13 @@ struct NotchNotesView: View {
|
|||
return
|
||||
}
|
||||
|
||||
// Fallback to text if not editing and clipboard has text
|
||||
if !isEditingNewNote && selectedNoteId == nil {
|
||||
if let text = pasteboard.string(forType: .string) {
|
||||
// Handle text paste
|
||||
if let text = pasteboard.string(forType: .string) {
|
||||
if isEditingNewNote || selectedNoteId != nil {
|
||||
// In editor: insert text at the end of content since we intercepted the shortcut
|
||||
editorContent.append(text)
|
||||
} else {
|
||||
// Not in editor: create a new note with the pasted text
|
||||
createNoteWithContent(text)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,6 +203,25 @@ struct ChatMessagesView: View {
|
|||
.foregroundColor(.primary)
|
||||
|
||||
Spacer()
|
||||
|
||||
Button(action: {
|
||||
screenAssistantManager.resetConversationContext()
|
||||
}) {
|
||||
HStack(spacing: 6) {
|
||||
Image(systemName: "arrow.counterclockwise")
|
||||
.font(.caption)
|
||||
Text("Reset Context")
|
||||
.font(.caption)
|
||||
}
|
||||
.foregroundColor(.secondary)
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 5)
|
||||
.background(Color.gray.opacity(0.12))
|
||||
.cornerRadius(8)
|
||||
}
|
||||
.disabled(screenAssistantManager.isLoading)
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
.help("Clear conversation and attachments")
|
||||
|
||||
Button(action: {
|
||||
screenAssistantManager.closePanels()
|
||||
|
|
|
|||
|
|
@ -6558,27 +6558,27 @@ struct ClipboardSettings: View {
|
|||
HStack {
|
||||
Text("Display Mode")
|
||||
Spacer()
|
||||
Picker("Display Mode", selection: $clipboardDisplayMode) {
|
||||
Picker("", selection: $clipboardDisplayMode) {
|
||||
ForEach(ClipboardDisplayMode.allCases, id: \.self) { mode in
|
||||
Text(mode.displayName).tag(mode)
|
||||
}
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
.frame(width: 100)
|
||||
.frame(minWidth: 100)
|
||||
}
|
||||
.settingsHighlight(id: highlightID("Display Mode"))
|
||||
|
||||
HStack {
|
||||
Text("History Size")
|
||||
Spacer()
|
||||
Picker("History Size", selection: $clipboardHistorySize) {
|
||||
Picker("", selection: $clipboardHistorySize) {
|
||||
Text("3 items").tag(3)
|
||||
Text("5 items").tag(5)
|
||||
Text("7 items").tag(7)
|
||||
Text("10 items").tag(10)
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
.frame(width: 100)
|
||||
.frame(minWidth: 100)
|
||||
}
|
||||
.settingsHighlight(id: highlightID("History Size"))
|
||||
|
||||
|
|
@ -6769,16 +6769,16 @@ struct ScreenAssistantSettings: View {
|
|||
HStack {
|
||||
Text("Display Mode")
|
||||
Spacer()
|
||||
Picker("Display Mode", selection: $screenAssistantDisplayMode) {
|
||||
Picker("", selection: $screenAssistantDisplayMode) {
|
||||
ForEach(ScreenAssistantDisplayMode.allCases, id: \.self) { mode in
|
||||
Text(mode.displayName).tag(mode)
|
||||
}
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
.frame(width: 100)
|
||||
.frame(minWidth: 100)
|
||||
}
|
||||
.settingsHighlight(id: highlightID("Display Mode"))
|
||||
|
||||
|
||||
HStack {
|
||||
Text("Attached Files")
|
||||
Spacer()
|
||||
|
|
@ -6896,27 +6896,27 @@ struct ColorPickerSettings: View {
|
|||
HStack {
|
||||
Text("Display Mode")
|
||||
Spacer()
|
||||
Picker("Display Mode", selection: $colorPickerDisplayMode) {
|
||||
Picker("", selection: $colorPickerDisplayMode) {
|
||||
ForEach(ColorPickerDisplayMode.allCases, id: \.self) { mode in
|
||||
Text(mode.displayName).tag(mode)
|
||||
}
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
.frame(width: 100)
|
||||
.frame(minWidth: 100)
|
||||
}
|
||||
.settingsHighlight(id: highlightID("Display Mode"))
|
||||
|
||||
|
||||
HStack {
|
||||
Text("History Size")
|
||||
Spacer()
|
||||
Picker("History Size", selection: $colorHistorySize) {
|
||||
Picker("", selection: $colorHistorySize) {
|
||||
Text("5 colors").tag(5)
|
||||
Text("10 colors").tag(10)
|
||||
Text("15 colors").tag(15)
|
||||
Text("20 colors").tag(20)
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
.frame(width: 100)
|
||||
.frame(minWidth: 100)
|
||||
}
|
||||
.settingsHighlight(id: highlightID("History Size"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue