1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
lazygit/pkg/integration/components
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
..
alert_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
assertion_helper.go Remove retry logic in integration tests 2023-07-09 20:57:18 +10:00
commit_description_panel_driver.go Add test demonstrating a bug with preserving the commit message 2024-01-09 14:31:53 +01:00
commit_message_panel_driver.go Remove unused function 2024-01-09 14:31:53 +01:00
common.go Add ability to start an interactive rebase onto an appropriate base 2024-01-13 12:57:49 +11:00
confirmation_driver.go Add demo for amending old commit 2023-08-02 22:32:51 +10:00
file_system.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
git.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
int_matcher.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
matcher.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
menu_driver.go Use ErrorToast instead of error panel when invoking a disabled command 2024-01-14 17:45:35 +01:00
paths.go Rename test/results to test/_results 2023-09-15 18:04:20 +02:00
popup.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
prompt_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
random.go Add commit graph demo 2023-08-12 16:16:03 +10:00
runner.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
search_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
shell.go Add integration test for remote branch sort order 2023-12-22 16:30:20 +09:00
test_driver.go Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
test_test.go Make it mandatory to acknowledge toasts in tests 2024-01-14 17:42:03 +01:00
test.go Make it mandatory to acknowledge toasts in tests 2024-01-14 17:42:03 +01:00
text_matcher.go Add DoesNotContainAnyOf matcher 2023-08-29 08:16:40 +02:00
view_driver.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
views.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00