summaryrefslogtreecommitdiffstats
path: root/pkg/gui/view_helpers.go
AgeCommit message (Collapse)Author
2019-12-08stop the files panel from stealing focus whenever files are refreshedJesse Duffield
2019-11-21add tags panelJesse Duffield
2019-11-21better handling of click events in list viewsJesse Duffield
2019-11-21support viewing a remote branchJesse Duffield
2019-11-21support navigating remotes viewJesse Duffield
2019-11-21extract out some logic for list viewsJesse Duffield
2019-11-21add contexts to viewsJesse Duffield
2019-11-10simplify how the context system worksJesse 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-05Support building and moving patchesJesse Duffield
WIP
2019-11-05support split view in staging panel and staging rangesJesse Duffield
2019-10-27\#480 Close popup panels before switching to a side view0.8.3Giorgio Previtera
Reusing the `onNewPopupPanel` function to close existing popup panels (if any) before switching to a new side view. Alse closing any confirmation prompt.
2019-10-27480 - remove duplication by using a decoratorGiorgio Previtera
Also use a for loop to append the new keybindings
2019-10-27#480 Allow cycling side panels with number keysGiorgio Previtera
2019-04-25Added another resizing stepmjarkk
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-16remove redundant call to refreshCommitFilesViewJesse Duffield
We already call this function inside the refreshCommitsView function. We call it there because it's logical that A) one occurs whenever the other does and B) the commit files only get refreshed after we've updated the commits themselves
2019-03-16allow user to discard old file changes for a given commitJesse Duffield
2019-03-16minor cleanupJesse Duffield
2019-03-16Add feature of display committed file list #383skanehira
2019-03-02mouse supportJesse Duffield 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
2019-02-16introduce panel contexts and more work on rebasingJesse Duffield
2019-02-11Merge branch 'master' into feature/rebasingJesse Duffield
2019-01-18Only reset origin in main view when handling the selection of a new filev0.6Jesse Duffield
2019-01-17Directly send wrap argument rather than the viewJesse Duffield
2018-12-18minor refactor of credentials panel into its own fileJesse Duffield
2018-12-16always hide rather than delete the credentials view, and don't log on error ↵Jesse Duffield
in case there is a user password in the error
2018-12-12Removed the wired error handlingmjarkk
2018-12-12some fixes for issues around the credentials panelJesse Duffield
2018-12-11Make merge panel its own panelJesse Duffield
2018-12-10Removed a lot of duplicated codemjarkk
2018-12-10Changed pushPassUname name to credentialsmjarkk
2018-12-08Merge branch 'master' into https-ask-for-username-passwordMark Kopenga
2018-12-08fetching branches without checking outJesse Duffield
2018-12-08standardising how list panels deal with cursor movementJesse Duffield
2018-12-08making a start on unidirectional data binding to fix these UI bugsJesse Duffield
2018-12-06Merge branch 'master' into https-ask-for-username-passwordMark Kopenga
2018-12-05staging lines and hunksJesse Duffield
2018-12-04initial support for staging individual linesJesse Duffield
2018-11-10Removed getPushPassUnameView functionmjarkk
2018-10-20First good successmjarkk
2018-09-22Merge branch 'hotfix/273-cursor-scrolling' of ↵Jesse Duffield
https://github.com/jesseduffield/lazygit into hotfix/273-cursor-scrolling
2018-09-22use lineheight rather than buffer lengthJesse Duffield
2018-09-19fix issues with commit message panel losing focusJesse Duffield
2018-09-10better handling of cursor and origin positioningsJesse Duffield
2018-09-09Merge branch 'master' into feature/helpDawid Dziurla
conflicts resolved
2018-09-05help -> menuDawid Dziurla