Giter Site home page Giter Site logo

Comments (5)

skanehira avatar skanehira commented on August 28, 2024 1

I see, I’ll implement :)
Thank you for the idea

from tson.

skanehira avatar skanehira commented on August 28, 2024

Right now, LEFT and RIGHT arrow keys only go UP and DOWN, but would you consider having LEFT and RIGHT jump directly to the adjacent parent/child node in that direction?

what it mean like following?

{object}
├──like <-- cursor in there
│  ├──dog
│  └──cat
├──name
│  └──gorilla
└──age
   └──27

using C-j jump to next key as following.

{object}
├──like
│  ├──dog
│  └──cat
├──name <-- cursor in there
│  └──gorilla
└──age
   └──27

using C-k jump to previous key.

{object}
├──like <-- cursor in there
│  ├──dog
│  └──cat
├──name
│  └──gorilla
└──age
   └──27

Also, the key bindings are really unintuitive for non-vim users. Could we consider using SPACEBAR and SHIFT-* (etc.) for certain actions like expanding/collapsing current node, jumping up or down a page or element, etc? I don't have anything too concrete in mind, but it's a little tricky to use right out of the box.

How about using space to expanding/collapsing, c-j and c-k to move next next or previous key?

I have to keep referencing the table in the readme, but I feel like I should just be able to figure it out with my arrow keys and spacebar and ctrl/shift keys.

I added help panel so you can use ? to display it :)

from tson.

mholt avatar mholt commented on August 28, 2024

what it mean like following?

Yep! I think so anyway 😅

How about using space to expanding/collapsing, c-j and c-k to move next next or previous key?

Sure, space is great.

I added help panel so you can use ? to display it :)

Cool, thanks!

from tson.

skanehira avatar skanehira commented on August 28, 2024

@mholt Hi, I implemented following, please update tson and try it :)

  • use space to expand/collapse node
  • use c-j to move next parent node, c-k to move previous parent node.

If you find some bug let me know :)

from tson.

mholt avatar mholt commented on August 28, 2024

Great! Nice improvements, thanks :)

from tson.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.