Skip to content

Conversation

@Builder14122
Copy link

Summary

This PR adds the ability to rename tabs with custom titles through double-clicking or using the context menu. Users can now personalize their tabs with custom names, making it easier to organize and identify tabs when working with many open pages.

Features Added

  • Double-click to rename: Double-click on any tab title to enter edit mode
  • Context menu option: Right-click on a tab and select "Rename Tab" to enter edit mode
  • Persistent custom titles: Custom tab names are saved and persist across sessions
  • Smart title display: Shows custom title when set, falls back to page title otherwise
  • Keyboard shortcuts: Press Enter to save, Escape to cancel editing

Implementation Details

  • Added customTitle property to Tab model for storing user-defined names
  • Created EditableTabTitle component with inline editing capability
  • Added displayTitle computed property that prioritizes custom title over page title
  • Updated all tab title references throughout the app to use displayTitle
  • Added saveChanges method to TabManager for persistence
  • Improved focus handling and visual feedback during editing

Testing

  • ✅ Double-click on tab title to rename
  • ✅ Right-click → "Rename Tab" menu option
  • ✅ Enter key saves the custom title
  • ✅ Escape key cancels editing
  • ✅ Custom titles persist after closing/reopening tabs
  • ✅ Empty input or same as original title clears custom title

Screenshots

The rename functionality is accessible via:

  1. Double-clicking directly on the tab title
  2. Right-clicking and selecting "Rename Tab" from the context menu

AI Disclosure

This code was developed with assistance from Claude 4.1 Opus (AI-assisted development).


Label: Opus 4.1 driven code (AI disclosure)

J2025 added 3 commits September 10, 2025 08:25
- Enhanced Folder model to support tabs with order property
- Added folder relationship to Tab model for organizing tabs into folders
- Implemented folder management methods in TabManager (create, rename, delete, move tabs)
- Created FolderView component for displaying folders in sidebar with expand/collapse functionality
- Added CreateFolderSheet for folder creation dialog
- Updated ContainerView with right-click context menu for creating folders
- Enhanced TabItem context menu with folder management options
- Implemented drag-and-drop support for moving tabs into folders

This feature allows users to right-click in the sidebar to create folders
for better tab organization. Users can drag tabs into folders, expand/collapse
folders, rename them, and move tabs between folders.
- Added customTitle property to Tab model for user-defined tab names
- Created EditableTabTitle component with inline editing capability
- Updated TabItem to use the new editable title component
- Added displayTitle computed property that prioritizes custom title
- Updated all tab title references to use displayTitle
- Added saveChanges method to TabManager for persistence
- Double-click on any tab title to rename it
- Press Enter to save or Escape to cancel editing

This feature allows users to personalize their tabs with custom names,
making it easier to organize and identify tabs when working with many
open pages.

AI Disclosure: This code was developed with assistance from Claude 4.1 Opus
…interaction

- Added 'Rename Tab' option at the top of the context menu with pencil icon
- Fixed EditableTabTitle to work with external trigger from context menu
- Improved focus handling for text field to ensure proper keyboard input
- Added visual feedback with subtle background for editing mode
- Both double-click and right-click -> Rename Tab now work properly

The rename functionality is now accessible via both:
1. Double-clicking directly on the tab title
2. Right-clicking on the tab and selecting 'Rename Tab' from the context menu
@kenenisa
Copy link
Contributor

This PR has stuff from #72. Either make it all into one PR(#72) or keep it focused to adding rename functionality.

@Builder14122 Builder14122 deleted the feature/double-click-rename-tabs branch September 10, 2025 10:14
@Builder14122
Copy link
Author

Due to force-push complications, I've created a new clean PR #75 with only the rename functionality as requested. The folder management features remain in PR #72.

Closing this in favor of #75.

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