723504a290
Keep side context in context stack when pushing a main context
...
This fixes accordion mode for the commit files panel. When entering a file, the
commit files panel should stay expanded.
2023-03-04 15:07:48 +01:00
524bf83a4a
refactor to only have one context per view
2022-08-06 13:49:11 +10:00
c1c6e2fac2
make exception for searching from menu
2022-08-02 09:16:01 +10:00
fab2e14b55
fix issue caused by opening a menu over a prompt
2022-08-01 21:38:57 +10:00
1f482e585e
Fix github linter errors
2022-07-30 08:10:29 +02:00
3bf0c9ef44
more documentation
2022-05-07 16:02:04 +10:00
b838b74801
do not highlight line if there are no items to display
2022-04-16 15:19:32 +10:00
102c33433b
remove dead code
2022-03-26 18:00:46 +11:00
fe87114074
don't hide transient views upon losing focus
2022-03-26 18:00:46 +11:00
ad7703df65
show namesake for child views
2022-03-26 18:00:46 +11:00
13b90ac37f
support viewing commits of reflog entry and show better view title
2022-03-26 18:00:46 +11:00
e392b9f86a
no more filterThenMap
2022-03-24 20:14:41 +11:00
67a76523fb
rename
2022-03-24 20:14:41 +11:00
94a53484a1
would you believe that I'm adding even more generics
2022-03-24 20:14:41 +11:00
1b75ed3740
many more generics
2022-03-24 20:14:41 +11:00
bf4f06ab4e
more generics
2022-03-24 20:14:41 +11:00
d59c0e2725
remove dead code
2022-03-17 19:13:40 +11:00
371b8d638b
more consistent naming
2022-03-17 19:13:40 +11:00
55af07a1bb
fix CI
2022-03-17 19:13:40 +11:00
94d66b267d
defend against view not yet having a context defined against it
2022-03-17 19:13:40 +11:00
41527270ed
appease linter
2022-03-17 19:13:40 +11:00
d82f175e79
refactor contexts
2022-03-17 19:13:40 +11:00
145c69d9ae
working again
2022-03-17 19:13:40 +11:00
482bdc4f1e
more refactoring
2022-03-17 19:13:40 +11:00
0a8cff6ab6
some more refactoring
2022-03-17 19:13:40 +11:00
e363606fb6
move context keys into context package
2022-03-17 19:13:40 +11:00
1dd7307fde
start moving commit panel handlers into controller
...
more
and more
move rebase commit refreshing into existing abstraction
and more
and more
WIP
and more
handling clicks
properly fix merge conflicts
update cheatsheet
lots more preparation to start moving things into controllers
WIP
better typing
expand on remotes controller
moving more code into controllers
2022-03-17 19:13:40 +11:00
cdcfeb396f
stop refreshing the screen so much
2022-01-15 14:15:41 +11:00
1996eddd91
more efficient context diff size changing
2021-12-06 22:37:28 +11:00
3e3151f86a
Fix: Don't access a view if it's nil
...
The way the `if` expression in `deactivateContext` was composed,
it was possible to have it to evaluate to `true` even though the
`view` variable was `nil`.
As far as I can tell, this seems to be only possible during tests.
Nonetheless, I think the expression looks more "correct" this way.
2021-12-06 22:37:28 +11:00
37be9dbea1
support scrolling left and right
2021-11-05 07:58:21 +11:00
2fc1498517
some refactoring in anticipation of the graph feature
2021-11-01 10:03:49 +11:00
652c97d239
honour options menu press
2021-09-27 19:41:38 +10:00
393ce05860
allow focusing on command log view
2021-04-11 17:07:49 +10:00
cf78b86cb5
more support for command log and more code reuse for contexts
2021-04-11 17:07:49 +10:00
8c93289a72
reduce chance of deadlock by using a RW mutex on the context stack
2021-04-06 19:34:32 +10:00
fbab5bd444
do not refresh patch panel unless commit files panel is the current side panel
2021-04-06 19:34:32 +10:00
f4e552f982
prevent deadlocks.
...
Hard to choose between the lock with a defer unlock in an anonymous function
vs just having an explicit unlock at the end with additional unlocks before
any early returns. The former is less error prone, but the former is much more
readable, especially if the anonymous function would have needed to return
an error value.
2021-04-06 19:34:32 +10:00
5e094c8a7c
marginally better logic for searching
2021-04-06 19:34:32 +10:00
02f45b679f
do not double-append contexts to the stack
2021-04-06 19:34:32 +10:00
b6ec667de0
add comment
2021-04-06 19:34:32 +10:00
4d14af5d4b
more lint fixes
2021-04-06 19:34:32 +10:00
d627b3bfc8
more refactoring
2021-04-06 19:34:32 +10:00
952c62df37
fix bug where searching through view got stuck if you went over the upper bound
2021-04-06 19:34:32 +10:00
b6cc1c9492
small refactor
2021-04-06 19:34:32 +10:00
4fe512ff3a
test
...
type safe view access
2021-04-06 19:34:32 +10:00
0898a7bb57
refactor
2021-04-06 19:34:32 +10:00
fafd5234bd
refactor to get view tab context map into gui state
2021-04-06 19:34:32 +10:00
f1d7f59e49
switching repos without restarting the gui
2021-04-06 19:34:32 +10:00
bc9a99387f
refactor of contexts and filtering
2021-04-06 19:34:32 +10:00