mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
Merge pull request #8331 from Clem-Fern/fix#8297
This commit is contained in:
commit
30b51e45bc
1 changed files with 5 additions and 0 deletions
|
@ -212,6 +212,11 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
|
|||
this.showSearchPanel = true
|
||||
setImmediate(() => {
|
||||
const input = this.element.nativeElement.querySelector('.search-input')
|
||||
const selectedText = (this.frontend?.getSelection() ?? '').trim()
|
||||
if (input && selectedText.length) {
|
||||
input.value = selectedText
|
||||
}
|
||||
|
||||
input?.focus()
|
||||
input?.select()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue