summaryrefslogtreecommitdiffstats
path: root/pkg/gui/recent_repos_panel.go
AgeCommit message (Collapse)Author
2022-03-17refactor contexts codeJesse Duffield
2022-03-17avoid deadlockJesse 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-03-17Record current directory on switchDavid Roman
2022-01-15stop refreshing the screen so muchJesse Duffield
2022-01-09shorten nameJesse Duffield
2022-01-09fix testsJesse Duffield
2022-01-09start breaking up git structJesse Duffield
2022-01-04WIPJesse Duffield
2022-01-04refactoring the config structJesse Duffield
2022-01-04align Gui struct with GitCommandJesse Duffield
2022-01-04introduce Common struct for passing around common stuffJesse Duffield
2022-01-04WIPJesse Duffield
2021-10-23use cached git configJesse Duffield
2021-10-16small changesJesse Duffield
2021-10-16Allow having multiple config filesmjarkk
2021-07-30Switch to github.com/gookit/color for terminal colorsmjarkk
2021-04-06only re-use repo state when jumping in and out of submodulesJesse Duffield
2021-04-06testJesse Duffield
type safe view access
2021-04-06WIPJesse Duffield
2021-04-06switching repos without restarting the guiJesse Duffield
2021-04-06refactor of contexts and filteringJesse Duffield
2021-04-01faster startupJesse Duffield
2020-11-28Visualize the commits for all branchesYuki Osaki
2020-10-10type i18nJesse Duffield
2020-09-29allow entering and returning from submoduleJesse Duffield
2020-09-29move git dir env stuff into a centralised packageJesse Duffield
2020-09-29do not include bare repos in recent repos listJesse Duffield
2020-09-29unset GIT_WORK_TREE and GIT_DIR when switching reposJesse Duffield
2020-08-23refactor how we handle different modesJesse Duffield
2020-08-15more removing of gJesse Duffield
2020-03-29reset state on each Run() callJesse Duffield
2020-02-15remove old createMenu functionJesse Duffield
2020-02-15refactor recent repos menu panelJesse 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-02-18rename any commitJesse Duffield
2019-02-16consider whether the view has focus when rendering the contents of a viewJesse Duffield
2019-02-11Merge branch 'master' into feature/rebasingJesse Duffield
2018-12-11Make merge panel its own panelJesse Duffield
2018-12-10Made gobot happymjarkk
2018-12-10Not always git fetchmjarkk
2018-12-10Better name for this functionmjarkk
2018-12-10Fixed loop before error checkmjarkk
2018-12-06Only show private repo popup when opening repo for first timemjarkk
2018-11-30Add full stops to new comments.BlakeMScurr
2018-11-30Add simple comments to uncommented functions.BlakeMScurr
2018-09-19add recent repos menu optionJesse Duffield