198ead7c14
Extract a ListRenderer struct
...
I'm doing this not so much because it's a great abstraction, but just because it
will make it much easier to write tests for it.
2023-08-28 14:21:06 +02:00
061bfce835
Change length parameter of getDisplayStrings to endIdx
...
It's more natural to work with this way, as we will see later in this branch.
2023-08-28 14:21:06 +02:00
f5c9764dd2
Don't show branch heads in reflog subcommits
...
It's tricky to get this right for reflog commits wrt what's the current branch
for each one; so just disable it entirely here, it's probably not something
anybody needs here.
2023-07-31 08:34:01 +02:00
ec839e9e96
Associate branches with worktrees even when mid-rebase
2023-07-30 18:35:22 +10:00
a9e2c8129f
Introduce filtered list view model
...
We're going to start supporting filtering of list views
2023-07-03 12:54:13 +10:00
a4db44bc3d
show commits against branches
2023-06-01 19:21:24 +10:00
43251e7275
split context common from helper common
2023-04-30 13:19:53 +10:00
1b2fb34ffd
start moving getDisplayStrings funcs into contexts
2023-04-30 13:19:53 +10:00
0e5a4c7a36
move getModel functions into contexts
2023-04-30 13:19:53 +10:00
47b91f1ef5
move views into contexts
2023-04-30 13:19:53 +10:00
e2db6a1732
remove context callback opts
2023-04-30 13:19:53 +10:00
8edad826ca
Begin refactoring gui
...
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the
gui package purely for the sake of better encapsulation
2023-04-30 13:19:52 +10:00
524bf83a4a
refactor to only have one context per view
2022-08-06 13:49:11 +10:00
2eb866fc62
fix: fix a crash when pressing enter in empty commits, reflog, or stash panel
2022-05-05 21:41:44 +09:00
4835fc00b8
introduce Ref interface
2022-04-02 17:04:42 +11:00
ad7703df65
show namesake for child views
2022-03-26 18:00:46 +11:00
d93fef4c61
use generics to DRY up context code
2022-03-19 12:12:57 +11:00
722410aded
refactor controllers
2022-03-17 19:13:40 +11:00
b93b8cc00a
controller for viewing sub commits
2022-03-17 19:13:40 +11:00
d82f175e79
refactor contexts
2022-03-17 19:13:40 +11:00