nikita-rudenko / back-n-forth

VSCode extension that adds Go Back/Forward buttons ↔️
https://marketplace.visualstudio.com/items?itemName=nick-rudenko.back-n-forth
MIT License
17 stars 1 forks source link

is it possible to ignore closed files from the navigation ? #13

Closed ctf0 closed 3 years ago

ctf0 commented 3 years ago

atm going back/forth will open closed files, so can we exclude the closed files from the navigation loop ?

nikita-rudenko commented 3 years ago

Sorry for the late reply.

This extension is just a UI representation of the default VSCode commands (workbench.action.navigateBack and workbench.action.navigateForward) and has a dead-simple implementation. However, I researched the Extensions API a bit and seems like access to the workbench history is not supported. Reference: https://github.com/microsoft/vscode/issues/64223

The closest command for your request is workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup which works quite different by showing a list of opened tabs. You may try using it instead. It's ⌃Tab / ⌃⇧Tab on MacOS and Ctrl + Tab / Ctrl + Shift + Tab on Windows or Linux.

ctf0 commented 3 years ago

The closest command for your request is workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup which works quite different by showing a list of opened tabs. You may try using it instead. It's ⌃Tab / ⌃⇧Tab on MacOS and Ctrl + Tab / Ctrl + Shift + Tab on Windows or Linux.

that would give a totally different results 😢 , still thanks for the headsup.