jonnyhyman / jonnyhyman/MakePython

Editor >> Pasting code does not conform into proper indentation format

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted
Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

If pasting code into the editor, since the editor actually uses '\t' characters instead of standard 4 spaces for indentation, the indentation will most likely not match the overall indentation of the document.

The reason to keep '\t' characters as default indentation in the editor is because that is the default of PyQt / Qt's QTextEdit. Subclassing QTextEdit entirely and writing indentation from scratch would be the best fix for this.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by examining the editor's PyQt/Qt QTextEdit behavior for indentation and pasted text. Confirm how tabs are currently used and define the expected indentation after pasting code; done means pasted code conforms to the surrounding document's indentation without disrupting existing text.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.