Skip to content

Commit

Permalink
auto reveal the active tab after deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdc committed Jan 18, 2025
1 parent cf89684 commit 082c04f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/NavigationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export const NavigationContainer = () => {
plugin.registerEvent(
workspace.on("vertical-tabs:deduplicate-tabs", () => {
deduplicateExistingTabs(app);
uncollapseActiveGroup(app);
})
);
plugin.registerEvent(
Expand Down Expand Up @@ -228,7 +229,10 @@ export const NavigationContainer = () => {
plugin.addCommand({
id: "deduplicate-existing-tabs",
name: "Deduplicate all existing tabs",
callback: () => deduplicateExistingTabs(app, true),
callback: () => {
deduplicateExistingTabs(app, true);
uncollapseActiveGroup(app);
},
});
}, []);

Expand Down

0 comments on commit 082c04f

Please sign in to comment.