bash 在 Gedit 中以选项卡形式打开文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26752352/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 11:42:33  来源:igfitidea点击:

Open files as tabs in Gedit

linuxbashubuntuubuntu-14.04gedit

提问by user3564382

There is one thing about gedit that really makes me nervous :@.

gedit 有一件事让我很紧张:@。

If I open some file from the terminal, for exampe

如果我从终端打开一些文件,例如

gedit ~/some_file.txt &

pop up an window with the file, then if I open another one

弹出一个包含文件的窗口,然后如果我打开另一个窗口

gedit ~/some_file2.txt &

it opens the file in the same window (just in a new tab), that is great.

它在同一个窗口中打开文件(只是在一个新选项卡中),这很棒。

The problem comes when I open some 3rd file from the file manager, it opens the file in new window instead of new tab, which makes me very angry.

当我从文件管理器打开一些第三个文件时出现问题,它在新窗口而不是新选项卡中打开文件,这让我很生气。

How to solve this >?

如何解决这个>?

采纳答案by arnaudoff

This is a well-known issue with gedit. It is because of the algorithm it uses to check whether to open the new file in the same instance (as a tab) or in a new one. Fortunately, a solution is available here.

这是 gedit 的一个众所周知的问题。这是因为它用于检查是在同一实例(作为选项卡)还是在新实例中打开新文件的算法。幸运的是,这里提供一个解决方案。

回答by JCCBama

BTW, the gedit I'm using ( 2.30.4) has an option under the "Documents" menu to open a tab in a new window.

顺便说一句,我正在使用的 gedit(2.30.4)在“文档”菜单下有一个选项可以在新窗口中打开一个选项卡。