Code Monkey home page Code Monkey logo

Comments (5)

wagoodman avatar wagoodman commented on May 17, 2024 1

@TJM I think adding a page up/down feature to the file tree would be great. However, the most intuitive keys would be the PgUp and PgDn keys. Typically the "space" keybinding for an application that pages only allows one direction, where here we should be allowing for two directions (maybe shift+space? but I haven't seen precedence for that).

Though, I just opened up #51 (based on your comment in #41) which would allow you to override any keybinding... which means you'd be able to remap pagination and toggle collapse as you wish (the only thing you wouldn't be able to do is collapse on navigate).

from dive.

akshaychhajed avatar akshaychhajed commented on May 17, 2024

@TJM from what i understand you are suggesting 2 modifications in "Layer Contents" view

  1. Ability to scroll using PgUp and PgDn/Space keys.
  2. Overload Left Arrow to close directory. (Also suggested by @DomHudson in #46 (comment))

I will take a look.

from dive.

TJM avatar TJM commented on May 17, 2024

Actually, I am primarily suggesting using "Space" as a "Page Down" ... which would necessitate "2" above. I don't actually have "physical" page-up or page-down keys on my laptop, but think it would be logical for them to work, if you write the function to handle "space" as page-down, you could also bind the physical page-down key to it.

from dive.

akshaychhajed avatar akshaychhajed commented on May 17, 2024

From what I saw in "less" keybindings, it uses f for PgDn and b for PgUp.
Yes, we could always add more keybindings for the feature.
Let me see if I can get the feature in.
We could always discuss which keys to assign for them.

from dive.

TJM avatar TJM commented on May 17, 2024

The problem is there are soo many tools out there, and it depends on which ones you commonly use as to which shortcut keys are "natural" to you. If the PageUp/PageDn capability exists, mapping space to engage pagedn should be simple, as you have noted. :)

Thanks!
Tommy

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.