[Seek Help] About the deepin-terminal command and session
Tofloor
poster avatar
Erchiusx
deepin
2023-03-12 02:45
Author

I'm trying to start deepin-terminal in sublime-text via a key binding, and I assigned it like this:

{
	"keys": ["ctrl+t", "ctrl+t"],
	"command": "exec",
	"args": {
		"cmd": "deepin-terminal"
	}
}

However, this key binding will always open a new window and start deepin-terminal's default shell in the home directory.

I'll quite appreciate it if anyone can show me how to change these two behaviours. It will be quite helpful if I can open deepin-terminal as a new tab in a pre-existing window, and under the path where the sublime-workspace is.

Reply Favorite View the author
All Replies
青稚
deepin
2023-03-12 04:37
#1

You should send this question to the English forum instead of here. You can use the translator to translate it into Chinese and seek the help of Chinese users.

The translator I use may have different translation and display results

IMG_20230311_203547.jpg

Reply View the author
Erchiusx
deepin
2023-03-15 02:31
#2
青稚

You should send this question to the English forum instead of here. You can use the translator to translate it into Chinese and seek the help of Chinese users.

The translator I use may have different translation and display results

IMG_20230311_203547.jpg

Thank you for your kind suggestion. I'll take a try in the English forum.

Reply View the author
安洛
deepin
2023-04-05 07:36
#3

I don't find an option to open deepin in new tab, the only way to do so seems to through the native shortcut of the deepin-terminal.

However, there is an option to adjust the working directory. Just run deepin-terminal -w path/to/the/directory . I guess emacs have some variable like $pwd allowed to be passed to the command so you can launch deepin-terminal under the path you want.

Reply View the author