Atom 在相同(或不同)选项卡中随机打开文件

Atom randomly opening files in the same (or different) tab

我在 Atom 中打开了一个项目,当我点击一个文件打开它时,它不再总是在不同的选项卡中打开它(直到现在它一直在做),现在它随机地在一个新的选项卡中打开它选项卡或现有选项卡中。由于此行为,它正在关闭我仍想打开的文件。

有人有解决这个问题的办法吗?

我正在使用 Atom 1.6.0。在 Mac OS X 10.11.3

我知道发生了什么:

如果您在文件中单击一次,Atom 将像在 "preview" 选项卡中一样打开它,您可以知道这一点,因为选项卡中的文件名是斜体。如果您现在单击另一个文件,它将替换预览选项卡中的当前文件,但如果您再次单击同一文件,它将打开 'for real',并且您打开的下一个文件不会替换同一个选项卡。

此功能称为待定窗格项目,您可以从 settings/preferences

禁用它

如果启用,有一种简单的方法可以在预览面板中粘贴文件

从树视图中单击文件,然后双击该文件,您会注意到选项卡中的文件名将从斜体更改,完成:)

更多请参考这里https://github.com/atom/atom/issues/11243

此功能已在 Atom 1.6.0 中引入。

基本上,如果您单击打开文件,您无需在专用选项卡中打开文件即可查看文件内容。当在窗格中打开另一个项目时,它将替换挂起的选项卡。

只要双击文件或选项卡,选项卡就会自动永久保存。

参见:Major Changes in 1.6.0 Stable - Pending Pane Items

Pending Pane Items

When you single-click a file from the tree view or the find-and-replace search results, the file in question opens as a pending pane item. When another item is opened in a pane, it replaces the pending tab in that pane instead of being appended to the list of tabs. This allows you to quickly click through several files quickly without opening each of them in a dedicated tab. In the default UI configuration, the tab’s title is italicized if the pane item is pending. If you want the tab to stick around permanently, simply double-click the file or the tab; in addition, when you edit text within a text editor that lives in a pending tab, the tab is automagically made permanent for you. You can disable this functionality by unchecking Allow Pending Pane Items in the Core Settings section of the editor settings.