There is one thing about gedit that really makes me nervous :#.
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 >?
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.
BTW, the gedit I'm using ( 2.30.4) has an option under the "Documents" menu to open a tab in a new window.
Related
When I switch between files (Using ctrl-n for examples) in different editors, intellij always opens the file in the original editor the tab for the file is located. Coming from a vim background this seems counter intuitive for me. Is there a way to force intellij to always open the file in the same editor window?
Please vote for the following related issues:
IDEA-67559 Opening a file when there are multiple file groups may re-open in a different group rather than opening in the current group
IDEA-81628 Navigation within same file mistakenly leaves split editor
When using Ctrl-Shift-N to open the desired file, Shift-Enter to confirm will maintain the focused tab group.
Here is the first way which works perfectly. I can open new file with existing vim through cmdline with command below, that file will, as expected, be opened in a new window.
gvim --remote <filename>
However, problem comes up with the other way. When I open windows explorer, right click a file, and choose 'open with existing vim', that file will be opened in the window where I'm editing another file.
Worse still, I'm using Nerdtree at the moment; the Nerdtree window is always used to display the new file, which is definitely intolerable.
I am navigating the code of a big JavaScript library using Sublime Text 3. So I need to open a lot of tabs and switch between them to capture the code co-reference. However, Sublime closes 'unused' tabs automatically for me.
How to disable it? I googled but cannot find a solution. I find a shortcut ctrl+shift+t to restore the most recent closed file, but that is not enough. I need to disable the automatic closing, and that would be better if someone shows me the short key to "display and select a file from all open files". Thanks.
When you single-click on a file in the sidebar, Sublime displays it in a "temp" view that is overwritten the next time you single-click on a file. To open a file in a "permanent" tab that stays open even when other files are opened, you simply need to double-click on the file in the sidebar.
A more direct solution that I find mildly preferable, at least until I can retrain myself to double-click when I want a tab to stay open:
In the Settings, set preview_on_click to false.
This is not quite what I want since it all it does is disable the behavior to open a preview tab on single click -- thereby forcing the user to always double click. But perhaps by working this way for a week or so I will be able to retrain my ingrained assumptions and can go back to the default behavior.
Double click that file on left sidebar you do not want to close automatically.
Today my Sublime 3083 became corrupted! I don't know why but every time I click on a file it opens on the same tab!
I cannot open two tabs at the same time. Fist file opens in a new tab and another opens in the previous tab and so on!
I did not installed any plugins recently. I just selected "Close Other Tabs" on menu.
What can I do?
Thanks
You must open the file using double click. If you open it using single click then you're using a feature called file preview, and that file will be closed when you preview other file unless the file has changes.
In addition, in the settings file you can set the preview_on_click option to false to disable the preview option; if you do that a click on the file won't do nothing, and a double click will still open the file in a new tab. As far as I know there's no option to open the file with a single click, only you can 'preview' the file (it's similar to open but the file get closed if you preview another file). Example setting:
{
"preview_on_click": false
}
I was facing a similar but little different problem. I was not able to view any tabs I was opening, and it was always opening a new file.
I fixed it by "View" -> "Show Tabs".
Is there a possibility to combine the Project Plugin with Tabs?
If i open a file in my Project Explorer, i want to open it in a new tab ... :)
You have to hack this plugin yourself (I do not think it would be difficult) or email the author and kindly ask him to do it.
I would also suggest NERDTree as a Project replacement (it can open files in tabs).
For open file of project in other tab use
Leader T
\T
I was having the same issue. For now I'vee learned to use buffers.
To expand on the buffers post above, when you open a new file the Project plugin hides the previous file but it is still an active buffer. ':ls' will list the buffers, switch to a buffer with ':b #' where # is the number of the buffer or split the screen and open a buffer with ':sb #'. Not quite as convenient as tabs but it works until a better solution comes up.
If you open a new buffer window, you can click to open in that buffer.
If you have macVim or gVim of some sort, you can open a finder/explorer window at the project's tree and drag and drop files into windows/tabs.
I had this same desire, so I created a portable configuration called Vim.ana.
It doesn't have many opinions that you can't change easily in the .vimrc
Sauce on layout at the project homepage