Skip to content

fix: tab bar bug fixes and improvements#2250

Merged
abose merged 13 commits intomainfrom
pluto/tb-fix
May 21, 2025
Merged

fix: tab bar bug fixes and improvements#2250
abose merged 13 commits intomainfrom
pluto/tb-fix

Conversation

@devvaannsh
Copy link
Member

@devvaannsh devvaannsh commented May 14, 2025

  1. Reserve space for dirty icon always to prevent tabs shift when a file is modified/saved.

Before
https://github.com/user-attachments/assets/50ff6184-081f-4bfe-82b1-facbb1c83ade

After
https://github.com/user-attachments/assets/5ed7b0c4-bd4a-4eae-b53c-7c15ec2d9e74

  1. Add option to rename, delete file and show in file tree in the tab context menu
    Screenshot 2025-05-15 021424

  2. Made drag-drop scroll smoother

  3. Currently active tab is always shown on the tab bar even if user manually sets a number in the numberOfTabs preference option

  4. Fix: Now, we show the display path when a tab is hovered instead of the tauri path

  5. We also show the git change markers in the tab to visually identify the tab that is added/modified

Screenshot 2025-05-18 203412
Screenshot 2025-05-18 203417

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3 Security Hotspots

See analysis details on SonarQube Cloud

// Current active pane (used to determine whether to add the blue underline)
const currentActivePane = MainViewManager.getActivePaneId();
const isPaneActive = (paneId === currentActivePane);
const isPaneActive = paneId === currentActivePane;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const isPaneActive = (paneId === currentActivePane); this with explicit braces is preferred over implicit to be more readable and prevent operator precedence confusions. i think this came as part of a whole file beautify. Just FYI, no need to update this pr.

${isActive ? 'active' : ''}
${isDirty ? 'dirty' : ''}
${isPlaceholder ? 'placeholder' : ''}"
${isActive ? "active" : ""}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using full file beautify as part of pull requests as it create too many non related changes to review that is hard to review.

function handleFileRename(filePath) {
if (filePath) {
// First ensure the sidebar is visible so users can see the rename action
CommandManager.execute(Commands.SHOW_SIDEBAR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good check, i guess this can be moved to the core itself as part of the underlying command.

@abose abose merged commit f1ddabb into main May 21, 2025
15 of 18 checks passed
@abose abose deleted the pluto/tb-fix branch May 21, 2025 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants