You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's often useful to scroll to another part of the document to check on something without losing the cursor position. Right now this isn't possible with FixedWidthEditor and FixedWidthViewer.
I think the implementation would be something like this:
Add a new function to FixedFontViewer for actions to change the view, e.g., move up or down by n lines.
The getCursor return probably needs to be made Maybe (Int,Int) to disable its display.
In the implementation of Document:
Add a Maybe (Preview c b) field, where data Preview is just a line zipper containing the whole doc.
If the preview exists, use that for visible lines, and don't show the cursor.
If edits happen or if the cursor is moved (to include width resizing), set the preview to Nothing.
The text was updated successfully, but these errors were encountered:
It's often useful to scroll to another part of the document to check on something without losing the cursor position. Right now this isn't possible with
FixedWidthEditor
andFixedWidthViewer
.I think the implementation would be something like this:
FixedFontViewer
for actions to change the view, e.g., move up or down byn
lines.getCursor
return probably needs to be madeMaybe (Int,Int)
to disable its display.Document
:Maybe (Preview c b)
field, wheredata Preview
is just a line zipper containing the whole doc.Nothing
.The text was updated successfully, but these errors were encountered: