Age | Commit message (Collapse) | Author |
|
Signed-off-by: hongkuang <liurenhong@outlook.com>
|
|
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.
|
|
This allows to do the equivalent of "git rebase --onto <target> <base>", by
first marking the <base> commit with the new command, and then selecting the
target branch and invoking the usual rebase command there.
|
|
Given that we now persist search/filter states even after a side context loses focus, we need to make it really
clear to the user that the context is currently being searched/filtered
|
|
'white' is great on dark themes, and terrible on light themes.
|
|
|
|
|
|
The tests show that setting a hex color doesn't work; we'll fix that in the next
commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
|
|
Two new settings in the config, which allow the cherry picked
foreground and background to be custom colors.
Issue #856
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIP
|
|
|
|
|
|
WIP
WIP
WIP
WIP
WIP
WIP
WIP
|
|
For now we're just doing side panels, because it will take more work
to support this in the various main panel contexts
|
|
|
|
|
|
Moved most functions to the new theme/theme.go
|
|
|