mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 11:29:56 +00:00
fixed #1510
This commit is contained in:
parent
f103e71285
commit
712589eb93
@ -194,6 +194,9 @@ export default class TerminalModule { // eslint-disable-line @typescript-eslint/
|
|||||||
})
|
})
|
||||||
|
|
||||||
hostApp.cliOpenDirectory$.subscribe(async directory => {
|
hostApp.cliOpenDirectory$.subscribe(async directory => {
|
||||||
|
if (directory.length > 1 && (directory.endsWith('/') || directory.endsWith('\\'))) {
|
||||||
|
directory = directory.substring(0, directory.length - 1)
|
||||||
|
}
|
||||||
if (await fs.exists(directory)) {
|
if (await fs.exists(directory)) {
|
||||||
if ((await fs.stat(directory)).isDirectory()) {
|
if ((await fs.stat(directory)).isDirectory()) {
|
||||||
terminal.openTab(undefined, directory)
|
terminal.openTab(undefined, directory)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user