local: UI to support single "command line" in profiles

This commit is contained in:
Eugene Pankov
2021-07-18 15:22:35 +02:00
parent 66098b5c6d
commit 1eed32f8d8
13 changed files with 106 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
import shellEscape from 'shell-escape'
import shellQuote from 'shell-quote'
import { Injectable } from '@angular/core'
import { CLIHandler, CLIEvent, AppService, HostWindowService } from 'tabby-core'
import { BaseTerminalTabComponent } from './api/baseTerminalTab.component'
@@ -21,7 +21,7 @@ export class TerminalCLIHandler extends CLIHandler {
if (op === 'paste') {
let text = event.argv.text
if (event.argv.escape) {
text = shellEscape([text])
text = shellQuote.quote([text])
}
this.handlePaste(text)
return true