jakob / jakob/Postico

Preserve layout of SQL editor between connections

Open
#791 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
486
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Would it be possible to preserve the position of the horizontal divider in the query editor between connections? I always drag the divider to show more of the query text, rather than the results, but every time I close the window for a connection (or restart Postico), the query editor re-opens with the default layout, and I have to re-drag the divider every time.

![image](https://user-images.githubusercontent.com/1566363/140414370-a2e9d64d-5ec3-48bc-a628-f538b6702634.png)

Repro:

1. Open a connection to any database from the initial favorites menu
2. ⌘⇧T to open query editor
3. Drag the horizontal divider between the upper query text and the lower query results
4. ⌘w to close the current connection (or restart Postico)
5. Open the same connection again
6. ⌘⇧T to open query editor
7. The horizontal divider has reset to default

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the query editor opened by ⌘⇧T and reproduce the divider reset using the listed connection and restart steps. Trace where the editor layout is initialized and connection state is restored; done means the horizontal divider position persists when the connection is closed and reopened or Postico restarts.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.