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 down one level #79

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-downward command, then my cursor will move to the first child object node. If there is no child 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>
  );
};