-
Notifications
You must be signed in to change notification settings - Fork 0
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
a blinking vertical line in the Preview to show the position of the cursor of the editor #19
Comments
It sounds like you want something like a blinking caret in the preview pane. I don't know how to do that. |
The feature blinking vertical line would be especially interesting for corrections of text. During one issue I was sure that it is impossible to define a background color of an html-document that does not use a background color. But I was wrong. So, for me it seems to be that there is a free space between html-document and the rendering in the Preview-tab. In this free space it seems to be that one can add a document, like extra-media.css. So, if this is possible, then a blinking vertical line could be maybe solved the same way, by adding another css with css animation. Yesterday I found a blinking vertical line on google: css blinking cursor animation. The first result is amitmerchant.com/simple-blinking-cursor-animation-using-css/ where a blinking cursor is created only by css. I don't how to program a software, but maybe the following thoughts could help to find a solution. So, here in slow motion the fire of the blinking vertical line:
If only css can be added that will be respected in the preview, so no other document format, then the blinking vertical line is a good idea, that can not be realized. |
The info about making blinking cursors with css is helpful. Being able to send caret location from the editor to the webview is part of the problem. |
That's right. I forgot that point. So, that are at least three steps:
|
A blinking vertical line in a customizable color would be even better. |
I think this depends on solving the editor/webview sync problem. Right now, I know how to get the cursor position in the editor, but don't know how to translate that to the webview. |
Steps to reproduce
Result
It takes time to know where the highlighted line of the editor is located in the Preview-tab.
Expectation
Options
In preview.conf there should be the possibility
The default settings should be false. So, with the appropriate settings the user has then four options:
So, a user who is using either the second or the third option has then the possibility to disable the eye-catcher for example by using the shortcut toggle editor/sidebar.
Context
The feature could be particularly interesting when there is a lot of text without empty lines and without paragraphs. Then the eye-catcher could be a useful help for orientation.
The text was updated successfully, but these errors were encountered: