summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers.go
AgeCommit message (Collapse)Author
2023-08-02Remove file watcher codeJesse Duffield
Now that we refresh upon focus, we can scrap this file watching code. Stefan says few git UIs use file watching, and I understand why: the reason this code was problematic in the first place is that watching files is expensive and if you have too many open file handles that can cause problems. Importantly: this code that's being removed was _already_ dead.
2023-07-30Remove worktree version guardsJesse Duffield
Our min required git version is 2.20 so there's no need to add guards for worktrees because they were added in 2.5
2023-07-30Hide worktree functionality on old git versionsJesse Duffield
2023-07-30Show base ref suggestions when creating worktreeJesse Duffield
2023-07-30Checkout worktree when creating from worktree viewJesse Duffield
2023-07-30Support creating worktrees from refsJesse Duffield
2023-07-30Prompt to switch to worktree when branch is checked out by other worktreeJesse Duffield
2023-07-30Update status to differentiate the main vs linked worktreesJoel Baranick
2023-07-30Initial addition of support for worktreesJoel Baranick
2023-07-22Better tag creation UXJesse Duffield
Previously we used a single-line prompt for a tag annotation. Now we're using the commit message prompt. I've had to update other uses of that prompt to allow the summary and description labels to be passed in
2023-07-03Introduce filtered list view modelJesse Duffield
We're going to start supporting filtering of list views
2023-04-30Split commit message panel into commit summary and commit description panelSean
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting. By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel, and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel and then 'enter' to submit the message. We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept, so we just push both contexts one after the other, and likewise remove both contexts when we escape.
2023-04-30ensure initial context is set when entering submoduleJesse Duffield
2023-04-30move side window actions to controllers packageJesse Duffield
2023-04-30move more actions into controllerJesse Duffield
2023-04-30move window arrangement helperJesse Duffield
2023-04-30lots of changesJesse Duffield
2023-04-30standardise controller helper methodsJesse Duffield
2023-04-30standardise helper argsJesse Duffield
2023-04-30split context common from helper commonJesse Duffield
2023-04-30refactor cherry pick code to move state access out of helperJesse Duffield
2023-04-30lots more refactoringJesse Duffield
2023-04-30Begin refactoring guiJesse Duffield
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-01Extract amendHead function into new AmendHelperStefan Haller
2023-03-24Merge pull request #2377 from shinhs0506/clear-staging-after-commitJesse Duffield
2023-03-20refresh the staging panel on successful commitJohn Shin
apply formatting
2023-02-27feat(subcommits): load unlimited sub-commitsRyooooooga
2022-12-30integrate snake game into lazygitJesse Duffield
2022-12-20fix(#2309): fix diff scrollRyooooooga
2022-12-01workingtree controller fixed with new references for commit in staged menuArnaud PERALTA
2022-08-07move merge conflicts code into controllerJesse Duffield
2022-08-06rename merging context to mergeConflictsJesse Duffield
2022-08-06refactor to only have one context per viewJesse Duffield
2022-07-31add optimistic rendering for staging and unstaging filesJesse Duffield
2022-04-11Add option to (un)set upstream for a local branchLuka Markušić
2022-03-27remove controllers structJesse Duffield
2022-03-26support viewing commits of reflog entry and show better view titleJesse Duffield
2022-03-26better wording againJesse Duffield
2022-03-26refactor to make code clearerJesse Duffield
2022-03-26add basic commits controller for handling actions that apply to all commit ↵Jesse Duffield
contexts
2022-03-17add host helperJesse Duffield
2022-03-17fix click handlingJesse Duffield
2022-03-17move workspace reset menu into controllerJesse Duffield