sansarip / owlbear

An experimental Visual Studio Code extension that supports paredit-like structural-editing features for HTML, TypeScript, TypeScript-React, JavaScript, and JavaScript-React.
https://sansarip.github.io/owlbear/
MIT License
36 stars 2 forks source link

As a User, I would like to move the cursor up one level #78

Closed sansarip closed 2 years ago

sansarip commented 2 years ago

Description

Given that my cursor is on an object node, when I execute the move-upward command, then my cursor will move to the closest ancestor object node. If there is no ancestor object node present then my cursor will not move.

Definition of Done

Before:

📍 = cursor position

const App = () => {
  const name:string = "World";
  return (
    <React.Fragment>
      📍<h1>Hello</h1>
    </React.Fragment>
  );
};

VS Code raise command

After:

const App = () => {
  const name:string = "World";
  return (
    📍<React.Fragment>
      <h1>Hello</h1>
    </React.Fragment>
  );
};