summaryrefslogtreecommitdiffstats
path: root/pkg/gui/rebase_options_panel.go
AgeCommit message (Collapse)Author
2022-03-17some more refactoringJesse Duffield
2022-03-17refactor contexts codeJesse Duffield
2022-03-17start moving commit panel handlers into controllerJesse Duffield
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-17start refactoring guiJesse Duffield
2022-01-09add some more lintersJesse Duffield
2022-01-09shorten nameJesse Duffield
2022-01-09trim down gitcommand struct some moreJesse Duffield
2022-01-09start breaking up git structJesse Duffield
2022-01-07refactorJesse Duffield
2022-01-07simplify how we log commandsJesse Duffield
2022-01-04more refactoringJesse Duffield
2022-01-04updating specsJesse Duffield
2022-01-04better typing for rebase modeJesse Duffield
2022-01-04WIPJesse Duffield
2022-01-04align Gui struct with GitCommandJesse Duffield
2022-01-04WIPJesse Duffield
2021-11-01support aborting a merge or rebase with escJesse Duffield
2021-10-22simplify pull logicJesse Duffield
2021-04-11full coverage for logging commandsJesse Duffield
2021-04-11start adding support for logging of commandsJesse Duffield
2021-04-10fix commit amendJesse Duffield
2021-04-06refactorJesse Duffield
2021-04-06refactor of contexts and filteringJesse Duffield
2021-04-06use suspense rather than close the gui when switching to a subprocessJesse Duffield
2020-11-28Start on supporting auto-suggestions when checking out a branchJesse Duffield
switch to other fuzzy package with no dependencies
2020-11-18fix lint errorsJesse Duffield
2020-10-10type i18nJesse Duffield
2020-10-10remove viperJesse Duffield
WIP
2020-09-29factor out code from git.goJesse Duffield
2020-08-23fix focus change on merge popup returnJesse Duffield
2020-08-23use context to return to the correct viewJesse Duffield
2020-08-15more removing of gJesse Duffield
2020-08-15renameJesse Duffield
2020-08-15clean up interface for popup panelsJesse Duffield
2020-03-28fix up some things with the patch handling stuffJesse Duffield
2020-03-28move working tree state function into git.goJesse Duffield
2020-03-28better error handlingJesse Duffield
2020-03-28more centralised handling of refreshingJesse Duffield
2020-03-09big golangci-lint cleanupJesse Duffield
2020-02-25do not close over variables in a functionv0.15.3Jesse Duffield
2020-02-15remove old createMenu functionJesse Duffield
2020-02-15refactor rebase menu panelJesse Duffield
2019-11-10add mouse supportJesse Duffield
2019-11-05do not return focus to commitsFiles view after selecting to start a new patchJesse Duffield
2019-11-05handle empty commit in rebaseJesse Duffield
2019-03-23Rely on model rather than view to focus a pointJesse Duffield
Currently when we want to focus a point on a view (i.e. highlight a line and ensure it's within the bounds of a view's box, we use the LinesHeight method on the view to work out how many lines in total there are. This is bad because for example if we come back from editing a file, the view will have no contents so LinesHeight == 0, but we might be trying to select line 10 because there are actual ten things we expect to be rendered already. This causes a crash when e.g. 10 is greater than the height of the view. So we need to pass in to our FocusPoint method the actual number of items we want to render, rather than having the method rely on the LinesHeight, so that the method knows to scroll a bit before setting the cursor's y position. Unfortunately this makes for some awkward code with our current setup. We don't have a good interface type on these state objects so we now need to explicitly obtain the len() of whatever array we're rendering. In the case of the menu panel this is even more awkward because the items list is just an interface{} and it's not easy to get the list of that, so now when we instantiate a menu we need to pass in the count of items as well. The better solution would be to define an interface with a getItems and getLength method and have all these item arrays become structs implementing the interface, but I am too lazy to do this right now :)
2019-03-02add another match on the error message to tell us we've encountered merge ↵Jesse Duffield
conflicts
2019-02-16fix golangci errorsJesse Duffield
2019-02-16more work on rebasing featureJesse Duffield
2019-02-16consider whether the view has focus when rendering the contents of a viewJesse Duffield