1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-27 12:32:37 +02:00
lazygit/pkg/gui/controllers
Jesse Duffield 24a4302c52 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
2024-01-19 10:47:21 +11:00
..
2024-01-14 17:45:35 +01:00
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:52 +10:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2023-06-28 18:54:21 +06:00
2023-07-30 18:35:23 +10:00
2023-09-20 08:35:41 +03:00
2023-04-30 13:19:53 +10:00
2023-04-30 13:19:53 +10:00
2022-04-02 17:04:42 +11:00
2023-04-30 13:19:53 +10:00