Query Tool: Modified mark (*) appears after the filename in the tab instead of before it

Open Beginner friendly
#10,426 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
postgresql, python
Domain
frontend

Research direction

Start in the Query Tool tab-title handling and reproduce the modified-file flow described in the issue. Verify that the tab displays the asterisk before the filename, including after opening or creating a query file and making an unsaved change.

Written by the indexing model from the issue text.

Description

Feature

In the Query Tool, when a query file is modified (unsaved changes), the modified indicator (asterisk *) is shown after the filename in the tab title.
It should appear before the filename (standard behavior in most editors/IDEs).

Current behavior
filename.sql *

Expected behavior
* filename.sql
Having the modified mark before the filename is the conventional UI pattern and improves readability of the tab titles.

To Reproduce
Open the Query Tool.
Open or create a query file.
Make any change so the file becomes modified.
Observe the tab title — the * is placed after the filename.

Desktop: Windows 11
pgAdmin version: 9.16

Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
3d 10h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pgadmin-org/pgadmin4

All issues in pgadmin-org/pgadmin4

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.