Skip to content

Commit

Permalink
webapp: Preserve cursor position on toggling word wrap
Browse files Browse the repository at this point in the history
The selection and the viewport are still reset
  • Loading branch information
ilyagr committed Mar 14, 2024
1 parent af9053e commit d525ff2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 26 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,12 @@ Harder: separate save buttons per file and maybe an overall save button.
## Shorter-term TODOs and known bugs

### If the file is deleted on the right side, the tool will write an empty file in its place when saving. It should not do that.

### Toggling options like line-wrapping, collapse of similar regions, or the right pane loses the CodeMirror viewport and selection

This is because the editor needs to be recreated to avoid CodeMirror5 bugs. The
cursor position is preserved.

### A "focused single-file" view would be nice.

It would increase the editor height to the entire window.
Loading

0 comments on commit d525ff2

Please sign in to comment.