anyboxhq / everything-okjson

Submit your feature requests or bug reports here.
https://docs.okjson.app
Apache License 2.0
10 stars 0 forks source link

while editing subsection view of json doc, cursor always moves to the end of doc #15

Closed joshorr closed 1 year ago

joshorr commented 1 year ago

Describe the bug

While editing subsection view of json doc, cursor always moves to the end of doc.

To Reproduce

Create doc/window with json that has sub-objects/dict, ie:

{
    "a": {
        "s": {
            "hello": 2
        }
    }
}

On the left side (in the above JSON example) click the > { } s part.

Then on the right start editing the "hello" part of the subview (ie: only a part of the json is visible due to clicking the > { } s part.

The cursor jumps to bottom of document after every time you type a single character.

Expected behavior Cursor stays where it is at so you can continue typing.

Screenshots

Place cursor in middle of "hello":

Screenshot 2023-02-23 at 8 50 50 PM

I typed a capital T and cursor the moved to bottom of document:

Screenshot 2023-02-23 at 8 49 58 PM

Desktop (please complete the following information):

francisfeng commented 1 year ago

It’s a known issue.

I’m planing a new version in which the edition on the right pane will no longer automatically being reflected on the left pane. It should solve the many problems, this one included, resulting from the syncing between both panes.

joshorr commented 1 year ago

I actually like that feature, it's kind of sad your removing it.