Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus mode: add the ability to higlight current line where cursor is #1321

Open
marek-lach opened this issue Jan 27, 2023 · 2 comments
Open
Assignees
Labels
editor Component: Editor enhancement Request: New feature or improvement potential feature Request: May be considered later

Comments

@marek-lach
Copy link

marek-lach commented Jan 27, 2023

Should be optional in Settings, under Highlighting, but a subtle highlight of the active line where the cursor is may help some, to focus better.

For illustrative purposes:
Screenshot-from-2023-01-27-16-31-00

@marek-lach marek-lach added the enhancement Request: New feature or improvement label Jan 27, 2023
@marek-lach marek-lach changed the title Focus mode enhancements: add the ability to higlight current line where cursor is Focus mode: add the ability to higlight current line where cursor is Jan 27, 2023
@vkbo
Copy link
Owner

vkbo commented Jan 27, 2023

I can certainly look into it. There is a code example here: https://doc.qt.io/qt-6/qtwidgets-widgets-codeeditor-example.html

In general, manipulating the formatting of individual lines in the editor tends to be computationally costly from the Python side of things, so it may not be doable. I can give it a try though.

Do you mean only for focus mode, or as a general highlighting feature?

@vkbo vkbo self-assigned this Jan 27, 2023
@vkbo vkbo added potential feature Request: May be considered later editor Component: Editor labels Jan 27, 2023
@vkbo vkbo added this to the Release 2.2 Beta 1 milestone Jan 27, 2023
@marek-lach
Copy link
Author

I can certainly look into it. There is a code example here: https://doc.qt.io/qt-6/qtwidgets-widgets-codeeditor-example.html

In general, manipulating the formatting of individual lines in the editor tends to be computationally costly from the Python side of things, so it may not be doable. I can give it a try though.

Do you mean only for focus mode, or as a general highlighting feature?

More as a general feature, not just for the full screen mode. However, if it’d prove too costly, or complicated, then it may not be all that necessary...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Component: Editor enhancement Request: New feature or improvement potential feature Request: May be considered later
Projects
None yet
Development

No branches or pull requests

2 participants