lazygit/docs
Jesse Duffield f3eb180f75 Standardise display of range selection across views
We're not fully standardising here: different contexts can store their range state however
they like. What we are standardising on is that now the view is always responsible for
highlighting the selected lines, meaning the context/controller needs to tell the view
where the range start is.

Two convenient benefits from this change:
1) we no longer need bespoke code in integration tests for asserting on selected lines because
we can just ask the view
2) line selection in staging/patch-building/merge-conflicts views now look the same as in
list views i.e. the highlight applies to the whole line (including trailing space)

I also noticed a bug with merge conflicts not rendering the selection on focus though I suspect
it wasn't a bug with any real consequences when the view wasn't displaying the selection.

I'm going to scrap the selectedRangeBgColor config and just let it use the single line
background color. Hopefully nobody cares, but there's really no need for an extra config.
2024-01-19 10:47:21 +11:00
..
dev Update codebase guide 2024-01-13 12:57:49 +11:00
keybindings Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
Config.md Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
Custom_Command_Keybindings.md Add more worktree tests 2023-07-30 18:35:23 +10:00
Custom_Pagers.md Fix keybinding for editing config file 2023-09-04 16:52:30 +02:00
Fixup_Commits.md Add command to find base commit for creating a fixup 2024-01-10 09:11:40 +01:00
Range_Select.md Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
README.md Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
Searching.md Add filtering docs 2023-07-03 12:54:14 +10:00
Stacked_Branches.md Update Stacked_Branches.md 2023-10-24 05:32:29 -04:00
Undoing.md Add undo demo 2023-08-12 16:15:50 +10:00