mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 00:09:54 +00: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()',
|
(ngModelChange)='config.save()',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title(translate) Copy with formatting
|
||||||
|
toggle(
|
||||||
|
[(ngModel)]='config.store.terminal.copyAsHTML',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
)
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title(translate) Bracketed paste (requires shell support)
|
.title(translate) Bracketed paste (requires shell support)
|
||||||
|
@ -24,6 +24,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
rightClick: 'menu',
|
rightClick: 'menu',
|
||||||
pasteOnMiddleClick: true,
|
pasteOnMiddleClick: true,
|
||||||
copyOnSelect: false,
|
copyOnSelect: false,
|
||||||
|
copyAsHTML: true,
|
||||||
scrollOnInput: true,
|
scrollOnInput: true,
|
||||||
altIsMeta: false,
|
altIsMeta: false,
|
||||||
wordSeparator: ' ()[]{}\'"',
|
wordSeparator: ' ()[]{}\'"',
|
||||||
|
@ -217,7 +217,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
if (!text.trim().length) {
|
if (!text.trim().length) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (text.length < 1024 * 32) {
|
if (text.length < 1024 * 32 && this.configService.store.terminal.copyAsHTML) {
|
||||||
this.platformService.setClipboard({
|
this.platformService.setClipboard({
|
||||||
text: this.getSelection(),
|
text: this.getSelection(),
|
||||||
html: this.getSelectionAsHTML(),
|
html: this.getSelectionAsHTML(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user