mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-06 13:44:36 +08:00
word separator setting (fixes #508)
This commit is contained in:
parent
0ca0996493
commit
56b996e6e4
@ -29,11 +29,11 @@ h3.mb-3 Terminal
|
|||||||
[value]='"audible"'
|
[value]='"audible"'
|
||||||
)
|
)
|
||||||
| Audible
|
| Audible
|
||||||
|
|
||||||
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.bell != "audible" && config.store.terminal.shell.startsWith("wsl")')
|
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.bell != "audible" && config.store.terminal.shell.startsWith("wsl")')
|
||||||
.mr-auto WSL terminal bell can only be muted via Volume Mixer
|
.mr-auto WSL terminal bell can only be muted via Volume Mixer
|
||||||
button.btn.btn-secondary((click)='openWSLVolumeMixer()') Show Mixer
|
button.btn.btn-secondary((click)='openWSLVolumeMixer()') Show Mixer
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title Right click
|
.title Right click
|
||||||
@ -63,11 +63,11 @@ h3.mb-3 Terminal
|
|||||||
value='paste'
|
value='paste'
|
||||||
)
|
)
|
||||||
| Paste
|
| Paste
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title Paste on middle-click
|
.title Paste on middle-click
|
||||||
|
|
||||||
toggle(
|
toggle(
|
||||||
[(ngModel)]='config.store.terminal.pasteOnMiddleClick',
|
[(ngModel)]='config.store.terminal.pasteOnMiddleClick',
|
||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='config.save()',
|
||||||
@ -76,7 +76,7 @@ h3.mb-3 Terminal
|
|||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title Auto-open a terminal on app start
|
.title Auto-open a terminal on app start
|
||||||
|
|
||||||
toggle(
|
toggle(
|
||||||
[(ngModel)]='config.store.terminal.autoOpen',
|
[(ngModel)]='config.store.terminal.autoOpen',
|
||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='config.save()',
|
||||||
@ -85,7 +85,7 @@ h3.mb-3 Terminal
|
|||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title Restore terminal tabs on app start
|
.title Restore terminal tabs on app start
|
||||||
|
|
||||||
toggle(
|
toggle(
|
||||||
[(ngModel)]='config.store.terminal.recoverTabs',
|
[(ngModel)]='config.store.terminal.recoverTabs',
|
||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='config.save()',
|
||||||
@ -116,7 +116,7 @@ h3.mb-3 Terminal
|
|||||||
[(ngModel)]='config.store.terminal.scrollOnInput',
|
[(ngModel)]='config.store.terminal.scrollOnInput',
|
||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='config.save()',
|
||||||
)
|
)
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title Use Alt key as the Meta key
|
.title Use Alt key as the Meta key
|
||||||
@ -125,3 +125,14 @@ h3.mb-3 Terminal
|
|||||||
[(ngModel)]='config.store.terminal.altIsMeta',
|
[(ngModel)]='config.store.terminal.altIsMeta',
|
||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='config.save()',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title Word separators
|
||||||
|
.description Double-click selection will stop at these characters
|
||||||
|
input.form-control(
|
||||||
|
type='text',
|
||||||
|
placeholder=' ()[]{}\'"',
|
||||||
|
[(ngModel)]='config.store.terminal.wordSeparator',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
)
|
||||||
|
@ -31,6 +31,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
workingDirectory: '',
|
workingDirectory: '',
|
||||||
alwaysUseWorkingDirectory: false,
|
alwaysUseWorkingDirectory: false,
|
||||||
altIsMeta: false,
|
altIsMeta: false,
|
||||||
|
wordSeparator: ' ()[]{}\'"',
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
__nonStructural: true,
|
__nonStructural: true,
|
||||||
name: 'Material',
|
name: 'Material',
|
||||||
|
@ -215,6 +215,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
this.xterm.setOption('cursorBlink', config.terminal.cursorBlink)
|
this.xterm.setOption('cursorBlink', config.terminal.cursorBlink)
|
||||||
this.xterm.setOption('macOptionIsMeta', config.terminal.altIsMeta)
|
this.xterm.setOption('macOptionIsMeta', config.terminal.altIsMeta)
|
||||||
this.xterm.setOption('scrollback', 100000)
|
this.xterm.setOption('scrollback', 100000)
|
||||||
|
this.xterm.setOption('wordSeparator', config.terminal.wordSeparator)
|
||||||
this.configuredFontSize = config.terminal.fontSize
|
this.configuredFontSize = config.terminal.fontSize
|
||||||
this.configuredLinePadding = config.terminal.linePadding
|
this.configuredLinePadding = config.terminal.linePadding
|
||||||
this.setFontSize()
|
this.setFontSize()
|
||||||
|
Loading…
Reference in New Issue
Block a user