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

show a visible change in the visible area of the Preview-tab #20

Open
ralf3u opened this issue Nov 21, 2021 · 0 comments
Open

show a visible change in the visible area of the Preview-tab #20

ralf3u opened this issue Nov 21, 2021 · 0 comments

Comments

@ralf3u
Copy link

ralf3u commented Nov 21, 2021

Conditions
1: In preview.conf: snippet_html=false
2: A very long html-document where on need to scroll in the Preview-tab and where there is in the editor a lot of text within one single p-tag.

Steps to reproduce
1: scroll with the scrollbars of the sidebar to the bottom of the web-page
2: add in the editor one letter at the beginning of the p-tag

Result:
The change is not in the visible area of the Preview-tab. To see the change one need to scroll in the Preview-tab to the top.

Possible solution
Geany Preview should do something like this: If the visible change is not in the visible area of the Preview-tab, then put the visible change in the visible area of the Preview-tab, if possible at the same level like the highlighted line.

Remark
What I mean with "show a visible change": Not all changes of the editor should be shown in the visible area of the Preview-tab, but changes in the Preview-tab that can be recognized by a person. So, for example if there is a long html-document and the user is adding at the very end of the document an empty div-tag, then Geany Preview should not execute "show a visible change in the visible area of the Preview-tab". Same for div-tags with visibility: hidden or display: none. If this is not possible to realize, then "show a change" is the alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant