Add back removed `ignore-last-opened` functionality (actually the last opened functionality is missing entirely)