1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-05 00:59:19 +02:00
Commit Graph

547 Commits

Author SHA1 Message Date
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
046b0d9daa Show warning about deprecated edit configs
We print this to the terminal after lazygit quits rather than showing it in a
panel at startup, so as to not annoy people too much. Hopefully it will still be
prominent enough this way.
2023-04-13 13:14:00 +02:00
4780953cef Merge pull request #2377 from shinhs0506/clear-staging-after-commit 2023-03-24 19:13:00 +11:00
8121a0cc74 remove old integration test recording code 2023-03-24 18:42:11 +11:00
b7c61aa883 Push initial context instead of just putting it in the context array
This makes sure activateContext gets called on it.
2023-03-20 20:14:13 +11:00
a624e0457f feat(subcommits): load unlimited sub-commits 2023-02-27 15:29:00 +09:00
a11e91e651 replaced 'screenMode' to 'windowSize' in config 2023-01-16 20:07:21 +05:30
f4ccb68464 Added screenMode configuration to gui configuration 2023-01-11 16:51:46 +05:30
cd9111837e feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
41222f07ed chore(gui): remove unused gitConfig 2022-12-30 20:01:14 +09:00
af5b3be286 integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
fa97b0c76e move background code into its own file 2022-12-24 19:14:52 +11:00
dde70486a1 apply user config changes in sandbox mode 2022-12-20 23:07:43 +11:00
ed98b60078 use thread safe map 2022-10-02 20:57:44 -07:00
17df42e517 fix: scan to buffer to empty character input in stdin 2022-09-23 23:42:45 -07:00
b8900baf1a remove deprecated calls 2022-09-17 15:10:41 -07:00
7af7af27c6 various changes to improve integration tests 2022-09-16 08:42:39 -07:00
ba96baee32 move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
d890238c7b move input and assert into integration tests package 2022-08-13 13:52:13 +10:00
77881a9c7d add new integration test pattern 2022-08-11 21:24:15 +10:00
755ae0ef84 add deadlock mutex package
write to deadlock stderr after closing gocui

more deadlock checking
2022-08-07 11:16:14 +10:00
7410acd1aa move merge conflicts code into controller 2022-08-07 11:16:03 +10:00
445a625b56 rename merging context to mergeConflicts 2022-08-06 18:05:00 +10:00
54fb73080a use ptmx map so that we can have multiple ptmx's stored for resizing 2022-08-06 13:49:11 +10:00
524bf83a4a refactor to only have one context per view 2022-08-06 13:49:11 +10:00
debc58b6c5 fix popup focus issue 2022-08-01 22:09:48 +10:00
7077ea428f add optimistic rendering for staging and unstaging files 2022-07-31 14:34:57 +10:00
b1e4968d0b allow opening lazygit to a specific panel 2022-06-11 11:23:56 +10:00
bfefef92a6 chore(i18n): move InitialViewTabContextMap to gui package 2022-05-18 21:09:48 +09:00
5275161a88 chore(i18n): localize panel titles 2022-05-18 20:55:42 +09:00
f257740ea7 add tooltip view for showing menu item descriptions 2022-05-08 13:24:36 +10:00
517e9445df refactor view definitions 2022-05-08 11:41:13 +10:00
cb13fe7f46 feat(gui): show commit icons 2022-04-23 12:25:41 +09:00
b07aeda5a6 feat(gui): show file icons 2022-04-23 12:25:40 +09:00
e68093fe99 add scrollbars 2022-04-16 17:29:17 +10:00
b838b74801 do not highlight line if there are no items to display 2022-04-16 15:19:32 +10:00
86c259623c feat: fix permission problem of temp dirs 2022-04-02 08:48:38 +11:00
e35ab3c5fe pkg/gui: Use 'alert' popups instead of 'confirm' popups where appropriate
Invocations of 'IPopupHandler::Confirm()' that use neither 'HandleConfirm' nor
'HandleClose' can be replaced by 'Alert()'.
2022-03-30 20:13:43 +11:00
8fb2acc224 pkg/gui: Rename IPopupHandler::Ask() to Confirm()
Follow the JavaScript naming scheme for user interaction (alert, prompt,
confirm) as discussed in #1832.
2022-03-30 20:13:43 +11:00
0dfb7c08b7 remove controllers struct 2022-03-27 18:16:16 +11:00
4abd80e2c4 pkg/gui: Fix crash if auto-fetch interval is non-positive
Check whether the auto-fetch interval configured is actually positive before
starting the background fetcher. If it is not, an error is logged. Also improve
the config option documentation a bit to make it easier to understand how to
disable auto-fetch.
2022-03-27 10:14:33 +11:00
240483953f config: Add option 'git.autoRefresh' to en-/disable auto-refresh
Adds a new 'autoRefresh' option to the 'git' config section that allows user to
disable auto-refresh (defaults to on). If auto-refresh is enabled, the
refreshInterval is now checked before starting the timer to prevent crashes when
it is non-positive.

Fixes #1417
2022-03-27 10:14:33 +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
a34bdf1a04 update linters 2022-03-19 12:12:57 +11:00
8fd6338527 move workspace reset menu into controller 2022-03-17 19:13:40 +11:00
ee1337b931 add remote branches controller 2022-03-17 19:13:40 +11:00
675510ba53 fix integration test 2022-03-17 19:13:40 +11:00
ef7c4c9ca9 refactor custom commands
more custom command refactoring
2022-03-17 19:13:40 +11:00
952a4f3f23 prevent interrupting confirmation panel 2022-03-17 19:13:40 +11:00