Skip to content

Support vi keys for scrolling #748

Closed

Description

@zeenix

Most bearded old geeks are very used to vi keys for scrolling everywhere so kindly add them. They are readily supported by all unix/linux commands that has scrolling: less, git, etc

I'm a bit surprised that I couldn't find any open or closed issue for this. :)

Activity

  1. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    Is this related? #407

  2. zeenix commented on Oct 1, 2019

    @zeenix
    Author

    Is this related? #407

    I saw that but I'm not sure cause it's already merged (I built this morning) and this is about scrolling view (although i'm not sure what editing mode is).

  3. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    Ahh okay. Vi mode isn't on by default, but it may be only for editing and not for scrolling.

  4. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    For scrolling, you don't mean the prompt but the textview (the scrolling text file viewer)?

    If so, that wouldn't be hard to add.

  5. zeenix commented on Oct 1, 2019

    @zeenix
    Author

    Vi mode isn't on by default, but it may be only for editing and not for scrolling.

    I did enable it as per your blog post but it didn't affect scrolling so yeah.

    For scrolling, you don't mean the prompt but the textview (the scrolling text file viewer)?

    Indeed.

    If so, that wouldn't be hard to add.

    Cool. Same here, if you can point to the relevant parts of the code that needs changing and any other hints, you might be able to get a PR. :)

  6. sophiajt commented on Oct 1, 2019

    @sophiajt
    Contributor

    Sure thing :)

    The relevant lines for the scrolling text view are: https://github.com/nushell/nushell/blob/master/src/plugins/textview.rs#L150-L185

    In theory, it should be as simple as adding a few more keys we're looking for there.

  7. sophiajt commented on Oct 3, 2019

    @sophiajt
    Contributor

    This should be fixed with #775

  8. added a commit that references this issue on Feb 7, 2022
  9. added a commit that references this issue on Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions