jakob / jakob/Postico

leading indentation disappears in query editor

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

Description

I noticed a while ago the following behaviour: when starting a new line the cursor appears to get stuck on the start of the line if the line contains only spaces. This only happens if indentation is set to spaces. It also only happens for lines that contain between 9 and 19 spaces. You can just hit space on an empty line to see the effect.

In the gif I:
- type the number of the current indentation level
- hit enter
- hit tab
- repeat

![postico indentation issue](https://github.com/jakob/Postico/assets/384993/b0dce1d0-f7ca-4f67-9a76-c264f83099cd)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the query editor and reproduce the issue with spaces-only lines, using indentation set to spaces and testing lines containing 9–19 spaces. Trace what happens after pressing Space, Enter, and Tab; done means the cursor no longer appears stuck at the start of these lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
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.