I find it quite annoying when sublime opens a file in a new tab even if it was already opened in an existing tab. For example, say I have
main.cpp open in a tab with a bunch of other files, I'm editing another file and go
main RET sublime would open
main.cpp in another tab. There are other commands not just
ctrl+p, for example
f4 after a build to take me to errors, if an error was
main.cpp it would open it in a new tab.
Is there a way to disable that behavior?
Edit: I'm new to Sublime. It seems that this duplication of tabs behavior happens only with certain files. I can't figure out exactly why.