nushell/crates/nu-explore/src
Antoine Stevan 3d73287ea4
add support for Vim motions in explore (#9966)
related to
- https://github.com/nushell/nushell/issues/7819

# Description
this PR does not quite address
https://github.com/nushell/nushell/issues/7819 because it does not
implement configurable keybindings for `explore` but rather only adds
support for Vim-like motions *out of the box*.

# User-Facing Changes
in *view* and *cursor* modes,
- `h`, `j`, `k` and `l` give standard Qwerty-based Vim motions
- `g` and `G` go to the top and the end respectively
- `u` and `d` scroll up and down

> **Note**
> the bindings do not support the use of modifiers for now, so it's not
`c-u` and `c-d` which scroll pages but rather `u` and `d`

# Tests + Formatting

# After Submitting
2023-08-26 07:48:37 -05:00
..
commands Create Record type (#10103) 2023-08-25 07:50:29 +12:00
nu_common Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
pager add support for Vim motions in explore (#9966) 2023-08-26 07:48:37 -05:00
registry revert: move to ahash (#9464) 2023-06-18 15:27:57 +12:00
views add support for Vim motions in explore (#9966) 2023-08-26 07:48:37 -05:00
default_context.rs Move explore command out of nu-command deps (#9421) 2023-06-14 01:18:36 +02:00
explore.rs Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
lib.rs Move explore command out of nu-command deps (#9421) 2023-06-14 01:18:36 +02:00