mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
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
This commit is contained in:
parent
e887a2eb3c
commit
24a4302c52
42 changed files with 533 additions and 213 deletions
|
@ -1178,14 +1178,6 @@
|
|||
},
|
||||
"main": {
|
||||
"properties": {
|
||||
"toggleDragSelect": {
|
||||
"type": "string",
|
||||
"default": "v"
|
||||
},
|
||||
"toggleDragSelect-alt": {
|
||||
"type": "string",
|
||||
"default": "V"
|
||||
},
|
||||
"toggleSelectHunk": {
|
||||
"type": "string",
|
||||
"default": "a"
|
||||
|
@ -1523,4 +1515,4 @@
|
|||
},
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue