Skip to content

Dynamic tab titles based on file content (like Windows Notepad) #1489

@SparklingEagle

Description

@SparklingEagle

Description:
Currently, when creating new tabs in Notepads without saving, all tabs are labeled "Untitled.txt". This makes it difficult to distinguish between multiple unsaved documents.
By contrast, the classic Windows Notepad automatically uses the first line (or first few characters) of the file content as the tab title until the file is saved. This small detail makes it much easier to identify and switch between different unsaved notes.
Feature Request:

  • Allow unsaved tabs in Notepads to display the first line (or first N characters) of the content as the tab title.
  • Once the file is saved, the tab title should update to the saved filename as usual.
    Benefits:
  • Improves usability when working with multiple unsaved notes.
  • Provides quick visual identification of each tab without needing to open them.
  • Aligns with user expectations from the default Windows Notepad behavior.

Here's an image showing the comparison between both to showcase the difference (Top is Notepads and bottom is Windows Notepad):

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions