mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-25 19:17:39 +03:00
Add possibility to configure always enabled regex
This commit is contained in:
parent
c9d75d81e4
commit
444d92d393
@ -1,6 +1,7 @@
|
||||
import { Component, Input, Output, EventEmitter } from '@angular/core'
|
||||
import { ToastrService } from 'ngx-toastr'
|
||||
import { Frontend, SearchOptions } from '../frontends/frontend'
|
||||
import {ConfigService} from "terminus-core";
|
||||
|
||||
@Component({
|
||||
selector: 'search-panel',
|
||||
@ -13,12 +14,14 @@ export class SearchPanelComponent {
|
||||
notFound = false
|
||||
options: SearchOptions = {
|
||||
incremental: true,
|
||||
regex: this.config.store.terminal.searchRegexAlwaysEnabled,
|
||||
}
|
||||
|
||||
@Output() close = new EventEmitter()
|
||||
|
||||
constructor (
|
||||
private toastr: ToastrService,
|
||||
public config: ConfigService,
|
||||
) { }
|
||||
|
||||
onQueryChange (): void {
|
||||
|
@ -116,6 +116,14 @@ h3.mb-3 Terminal
|
||||
[(ngModel)]='config.store.terminal.scrollOnInput',
|
||||
(ngModelChange)='config.save()',
|
||||
)
|
||||
|
||||
.form-line
|
||||
.header
|
||||
.title Regex in search always enabled
|
||||
toggle(
|
||||
[(ngModel)]='config.store.terminal.searchRegexAlwaysEnabled',
|
||||
(ngModelChange)='config.save()',
|
||||
)
|
||||
|
||||
.form-line
|
||||
.header
|
||||
|
@ -65,6 +65,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
||||
recoverTabs: true,
|
||||
warnOnMultilinePaste: true,
|
||||
showDefaultProfiles: true,
|
||||
searchRegexAlwaysEnabled: false,
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user