codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
75 stars 15 forks source link

remove CursorNode, fix pod center-on-selection #461

Closed lihebi closed 1 year ago

lihebi commented 1 year ago

Two changes:

lihebi commented 1 year ago

Merging, FYI @senwang86

senwang86 commented 1 year ago

jump_bugs

lihebi commented 1 year ago

4. Esc should go back to ScopeA, but it went back to ScopeB

Why Esc goes to parent? Do you mean shift+up?

lihebi commented 1 year ago

There shouldn’t be selection order problems, as there is only one pod being selected in the entire process.

senwang86 commented 1 year ago
  1. Esc should go back to ScopeA, but it went back to ScopeB

Why Esc goes to parent? Do you mean shift+up?

Oh, my bad, forget that we don't use Esc during jump.

senwang86 commented 1 year ago

There shouldn’t be selection order problems, as there is only one pod being selected in the entire process.

What would happen if you use keyboard to jump after you multi-select pods?

lihebi commented 1 year ago

It’s straight forward to determine the target pod by proximity. Then a jump should first reset the selection, then select the target pod.