mirror of
https://github.com/Eugeny/tabby.git
synced 2025-04-18 16:20:27 +08:00
option to force plain-text copying - fixes #5050
This commit is contained in:
parent
8e00761b0c
commit
911e72c398
@ -127,6 +127,14 @@ div.mt-4
|
||||
(ngModelChange)='config.save()',
|
||||
)
|
||||
|
||||
.form-line
|
||||
.header
|
||||
.title(translate) Copy with formatting
|
||||
toggle(
|
||||
[(ngModel)]='config.store.terminal.copyAsHTML',
|
||||
(ngModelChange)='config.save()',
|
||||
)
|
||||
|
||||
.form-line
|
||||
.header
|
||||
.title(translate) Bracketed paste (requires shell support)
|
||||
|
@ -24,6 +24,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
||||
rightClick: 'menu',
|
||||
pasteOnMiddleClick: true,
|
||||
copyOnSelect: false,
|
||||
copyAsHTML: true,
|
||||
scrollOnInput: true,
|
||||
altIsMeta: false,
|
||||
wordSeparator: ' ()[]{}\'"',
|
||||
|
@ -217,7 +217,7 @@ export class XTermFrontend extends Frontend {
|
||||
if (!text.trim().length) {
|
||||
return
|
||||
}
|
||||
if (text.length < 1024 * 32) {
|
||||
if (text.length < 1024 * 32 && this.configService.store.terminal.copyAsHTML) {
|
||||
this.platformService.setClipboard({
|
||||
text: this.getSelection(),
|
||||
html: this.getSelectionAsHTML(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user