diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2024-01-07 19:44:19 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2024-01-19 10:47:21 +1100 |
commit | 24a4302c528e3a11b30855c006669de1adf9e1d4 (patch) | |
tree | 4b8053168746c2978c2b47968bae1576d3718bcf /docs/Config.md | |
parent | e887a2eb3c0ece1d2be78b869ff936a0703a3940 (diff) |
Add range selection ability on list contexts
This adds range select ability in two ways:
1) Sticky: like what we already have with the staging view i.e. press v then use arrow keys
2) Non-sticky: where you just use shift+up/down to expand the range
The state machine works like this:
(no range, press 'v') -> sticky range
(no range, press arrow) -> no range
(no range, press shift+arrow) -> nonsticky range
(sticky range, press 'v') -> no range
(sticky range, press arrow) -> sticky range
(sticky range, press shift+arrow) -> nonsticky range
(nonsticky range, press 'v') -> no range
(nonsticky range, press arrow) -> no range
(nonsticky range, press shift+arrow) -> nonsticky range
Diffstat (limited to 'docs/Config.md')
-rw-r--r-- | docs/Config.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/Config.md b/docs/Config.md index 8b37c6aaa..8b8b62c11 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -201,6 +201,9 @@ keybinding: toggleWhitespaceInDiffView: '<c-w>' increaseContextInDiffView: '}' decreaseContextInDiffView: '{' + toggleRangeSelect: 'v' + rangeSelectUp: '<s-up>' + rangeSelectDown: '<s-down>' status: checkForUpdate: 'u' recentRepos: '<enter>' @@ -263,8 +266,6 @@ keybinding: commitFiles: checkoutCommitFile: 'c' main: - toggleDragSelect: 'v' - toggleDragSelect-alt: 'V' toggleSelectHunk: 'a' pickBothHunks: 'b' submodules: |