feat(ui): attach large text pastes as virtual files
Offer to turn sufficiently large plain-text clipboard pastes into pasted-context-N.txt attachments instead of inserting them into the composer, with ask/attach/inline composer settings. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
co-authored by
Serhii Dziupin
parent
f47110c66f
commit
ef11ab5b14
@@ -338,7 +338,7 @@ const SETTINGS_SEARCH_ITEMS: readonly SettingsSearchItem[] = [
|
||||
id: 'chat.composer',
|
||||
page: 'chat',
|
||||
titleKey: 'settings.openchamber.visual.section.composer',
|
||||
keywords: ['input', 'draft', 'spellcheck'],
|
||||
keywords: ['input', 'draft', 'spellcheck', 'paste'],
|
||||
},
|
||||
{
|
||||
id: 'chat.spellcheck',
|
||||
@@ -347,6 +347,13 @@ const SETTINGS_SEARCH_ITEMS: readonly SettingsSearchItem[] = [
|
||||
keywords: ['spelling', 'input'],
|
||||
isAvailable: (ctx) => !ctx.isMobile,
|
||||
},
|
||||
{
|
||||
id: 'chat.large-text-paste',
|
||||
page: 'chat',
|
||||
titleKey: 'settings.openchamber.visual.field.largeTextPaste',
|
||||
descriptionKey: 'settings.openchamber.visual.field.largeTextPasteHint',
|
||||
keywords: ['paste', 'clipboard', 'attachment', 'large', 'text', 'file'],
|
||||
},
|
||||
{
|
||||
id: 'sessions.default-model',
|
||||
page: 'sessions',
|
||||
|
||||
Reference in New Issue
Block a user