summaryrefslogtreecommitdiffstats
path: root/pkg/gui/files_panel.go
AgeCommit message (Collapse)Author
2020-01-08improve file watchingJesse Duffield
By default, macs have 256 open files allowed by a given process. This sucks when you end up with over 256 files modified in a repo because after you've watched all of them, lots of other calls to the command line will fail due to violating the limit. Given there's no easy platform agnostic way to see what you've got configured for how many files a process can have open, I'm going to arbitrarily set the max to 200 and when we hit the limit we start unwatching older files to make way for new ones. WIP
2020-01-07allow hard resetting to upstream branchJesse Duffield
2019-12-08stop the files panel from stealing focus whenever files are refreshedJesse Duffield
2019-11-21couple of things to clean up after rebasing onto masterJesse Duffield
2019-11-21better handling of click events in list viewsJesse Duffield
2019-11-21support setting upstreamJesse Duffield
2019-11-21extract out some logic for list viewsJesse Duffield
2019-11-21add contexts to viewsJesse Duffield
2019-11-14add file watching for modified filesJesse Duffield
log createErrorPanel error swallow error when adding file to watcher
2019-11-14allow editing or opening a file while resolving merge conflictsJesse Duffield
2019-11-13prompt to set upstream when pulling on untracked branchJesse Duffield
prompt to set upstream when pulling on untracked branch
2019-11-11specify upstream when pushing a branch for the first timev0.10.4Jesse Duffield
2019-11-10simplify how the context system worksJesse Duffield
2019-11-10add mouse supportJesse Duffield
2019-11-10remove old add patch keybindingJesse Duffield
2019-11-05do not return focus to commitsFiles view after selecting to start a new patchJesse Duffield
2019-11-05support split view in staging panel and staging rangesJesse Duffield
2019-06-06allow stashing staged changesJesse Duffield
reinstate old stash functionality with the 's' keybinding
2019-05-06Prevent crash when opening in small windowJesse Duffield
We were crashing when opening lazygit in a small window because the limit view was the only view that got created, and there were two functions that referenced either the 'current' view or the files view, neither of which existed. Now those functions just return nil if the view does not exist
2019-04-13Add 'w' keybinding in files panel to commit as a WIPJesse Duffield
If your git.skipHookPrefix is set to, say, WIP, in your config, then hitting 'w' in the files panel will bring up the commit message panel with 'WIP' pre-filled, so you just need to hit enter to confirm (or add some more to the message) in order to commit your changes with the --no-verify flag, meaning the pre-commit hook will be skipped
2019-04-07remove subprocess channel stuffJesse Duffield
2019-04-07support custom commandsJesse Duffield
2019-03-23pass length of options to createMenuJesse Duffield
2019-03-23always attempt to discard changes from current fileJesse Duffield
2019-03-23move soft reset keybinding into reset optionsJesse Duffield
2019-03-23add more options for resetting files in the working treeJesse Duffield
2019-03-23support discarding unstaged changesJesse Duffield
2019-03-23retain commit message if precommit hook failsJesse 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-16show some more errors in the gui rather than panickingJesse Duffield
2019-03-16show file remove error in gui rather than panicJesse Duffield
2019-03-03distinguish between inline and non-inline merge conflictsJesse Duffield
2019-03-02mouse supportJesse Duffield Duffield
2019-03-02appease golangciJesse Duffield
2019-02-24Make it easier to run sync/async commands, switch to interactive rebase when ↵Jesse Duffield Duffield
rebasing on branches
2019-02-19work towards more interactive rebase optionsJesse 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-16add loading panelJesse Duffield
2019-02-11post-merge cleanupJesse 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
2018-12-11Make merge panel its own panelJesse Duffield
2018-12-11more work on rebasing including visual indicatorsJesse Duffield
2018-12-10Removed a lot of duplicated codemjarkk
2018-12-10Changed pushPassUname name to credentialsmjarkk
2018-12-09Worked and fixed a view commentsmjarkk
2018-12-08Merge branch 'master' into https-ask-for-username-passwordMark Kopenga
2018-12-08Made code ready to merge to master's latest commitmjarkk
2018-12-08fetching branches without checking outJesse Duffield