Skip to content
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

Move cursor more wisely after removing node(s) #134

Open
lambdalisue opened this issue Aug 3, 2020 · 0 comments
Open

Move cursor more wisely after removing node(s) #134

lambdalisue opened this issue Aug 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lambdalisue
Copy link
Owner

lambdalisue commented Aug 3, 2020

Currently, the cursor moves on the root node after users remove node(s).

But it would be nice if the cursor position follows the cases below

Case 1

  |- Hello
* |- Darkness
  |- My         <-- CURSOR
* |- Old
  |- Friend
  |- Hello
  |- My         <-- CURSOR
  |- Friend

Case 2

  |- Hello
* |- Darkness
  |- My
* |- Old        <-- CURSOR
  |- Friend
  |- Hello
  |- My         <-- CURSOR
  |- Friend

Case 3

  |- Hello
* |- Darkness   <-- CURSOR
  |- My
* |- Old
  |- Friend
  |- Hello      <-- CURSOR
  |- My
  |- Friend

Case 4

  |- Hello
* |- Darkness 
* |- My
* |- Old        <-- CURSOR
  |- Friend
  |- Hello      <-- CURSOR
  |- Friend

Ref. https://vim-jp.slack.com/archives/CLKR04BEF/p1596425718256400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant