Duplicate files open directly in a new tab

When duplicating a file, the copy will now open automatically in a new tab.