简体   繁体   English

在 sublime-text 的终端中取回一个正在运行的终端

[英]Get back a running terminal in sublime-text's terminus

I am using the Sublime text terminus extension.我正在使用Sublime 文本终端扩展。 If I open the terminal in the panel and run a job (Say a python script) and while the script is running if I do ctrl+f to open the find and replace panel, the open terminal disappears because sublime supports only 1 panel.如果我在面板中打开终端并运行一个作业(比如一个 python 脚本),并且在脚本运行时如果我按 ctrl+f 打开查找和替换面板,打开的终端就会消失,因为 sublime 只支持 1 个面板。

But if I open the terminal in panel again, it opens a new terminal, and not the same one where the job was running and I am unable to get the job results.但是如果我再次在面板中打开终端,它会打开一个新终端,而不是运行作业的同一个终端,我无法获得作业结果。

If I set up localhost in the terminus terminal and remove it using ctrl+f, the localhost is kept running which indicates that sublime doesn't terminate the job while closing the terminal.如果我在终端终端中设置 localhost 并使用 ctrl+f 将其删除,本地主机将继续运行,这表明 sublime 在关闭终端时不会终止作业。

Is there a way to get the same terminal back?有没有办法让同一个终端回来?

The list of available panels is available via the Panel Chooser;可用面板列表可通过面板选择器获得; it displays all panels available, which includes those built in and those added by packages:它显示所有可用的面板,包括内置的和包添加的:

面板选择器

If you're on ST3, left click it to open the menu;如果您使用的是 ST3,请左键单击它以打开菜单; on ST~~4~~ right click to get the menu.在ST上~~4~~右击得到菜单。

Note also that the Terminus README includes information related to toggling panels, such as this default key binding that toggles the panel open and closed and will create it if it's not present:另请注意, Terminus README包含与切换面板相关的信息,例如切换面板打开和关闭的默认键绑定,如果面板不存在,则会创建它:

    { 
        "keys": ["alt+`"], "command": "toggle_terminus_panel"
    }

There are also example key bindings for having more than one Terminus panel at a time demonstrated in this tips video for Terminus (I am the author of the video);在此Terminus 提示视频中还演示了一次具有多个 Terminus 面板的示例键绑定(我是该视频的作者); the panel chooser is also demonstrated there.面板选择器也在那里演示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM