Code Monkey home page Code Monkey logo

Comments (6)

DomHudson avatar DomHudson commented on May 21, 2024 1

One option would be to have the left key close the directory if your cursor is currently on a directory, otherwise go back to the parent folder. This way pressing left once will jump to the parent, pressing again would close it and repeat. You could keep pressing left and it would iteratively jump higher and close the directories.

from dive.

wagoodman avatar wagoodman commented on May 21, 2024

Thanks! I agree with your idea for the right arrow, after #43 was merged (v0.0.8) I was thinking the same thing. Essentially the right key should traverse deeper into the file tree, expanding when necessary.

Though I feel like the left key should leave directories expanded as they are and simply navigate back up to the parent directory.

from dive.

akshaychhajed avatar akshaychhajed commented on May 21, 2024

Just to maintain symmetry 😉, I will try.

from dive.

TJM avatar TJM commented on May 21, 2024

I was thinking something like "shift+left-arrow" if you want to navigate left, but leave it expanded?

from dive.

wagoodman avatar wagoodman commented on May 21, 2024

@DomHudson , your suggestion is tempting, but I feel that a file explorer expanding a dir on navigation makes sense, but closing on navigation is an extra mental leap. That is, usually the user is trying to see more content more quickly, not hide it more quickly.

However, I agree that there is room for improvement to make the file explorer more intuitive and in general add more user-friendly features (such as a simple search to jump a user to a matching file/path).

from dive.

DomHudson avatar DomHudson commented on May 21, 2024

Thank you very much for the quick turnaround!

from dive.

Related Issues (20)

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.