1
1
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:
matishadow 2020-10-08 19:30:57 +02:00
parent c9d75d81e4
commit 444d92d393
3 changed files with 12 additions and 0 deletions

View File

@ -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 {

View File

@ -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

View File

@ -65,6 +65,7 @@ export class TerminalConfigProvider extends ConfigProvider {
recoverTabs: true,
warnOnMultilinePaste: true,
showDefaultProfiles: true,
searchRegexAlwaysEnabled: false,
},
}