summaryrefslogtreecommitdiffstats
path: root/pkg/gui/quitting.go
AgeCommit message (Collapse)Author
2022-03-30pkg/gui: Rename IPopupHandler::Ask() to Confirm()Moritz Haase
Follow the JavaScript naming scheme for user interaction (alert, prompt, confirm) as discussed in #1832.
2022-03-17rename OSCommand field to osJesse 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-03-17Only read env once when recording dirsDavid Roman
2022-03-17Record current directory on switchDavid Roman
2022-01-04align Gui struct with GitCommandJesse Duffield
2021-07-01:truck: move whitespace toggle out of quitting.goDavyd McColl
2021-07-01:art: alternative syntaxDavyd McColl
2021-07-01:sparkles: implement feedback when toggling whitespaceDavyd McColl
2021-07-01:sparkles: facilitate toggling whitespace in the diff view with a hotkey ↵Davyd McColl
(c-w by default)
2021-04-06only re-use repo state when jumping in and out of submodulesJesse Duffield
2021-04-06switching repos without restarting the guiJesse Duffield
2021-04-06get rid of these positively ghastly method signaturesJesse Duffield
2020-11-28Start on supporting auto-suggestions when checking out a branchJesse Duffield
switch to other fuzzy package with no dependencies
2020-10-10type i18nJesse Duffield
2020-10-10remove viperJesse Duffield
WIP
2020-09-29format codeJesse Duffield
2020-09-29allow entering and returning from submoduleJesse Duffield
2020-08-23Return whether the context has a parent or not along with that parentJesse Duffield
There has got to be a better way around this but if we're returning a Context from a function (Context is an interface, not a concrete type), even if we return nil, on the calling end it won't be equal to nil because an interface value is a tuple of the type and the value meaning it's never itself nil, unless both values in the tuple are nil. So we're explicitly returning whether or not the underlying concrete type is nil.
2020-08-23use context to return to the correct viewJesse Duffield
2020-08-23more standardising modesJesse Duffield
2020-08-23better handling of our different modes and also cherry pickingJesse Duffield
2020-08-23escape patch building mode on hitting escape at the top levelJesse Duffield
2020-08-23allowing commit files to be viewed in reflog as wellJesse Duffield
2020-08-15more removing of gJesse Duffield
2020-08-15renameJesse Duffield
2020-08-15clean up interface for popup panelsJesse Duffield
2020-08-12immediately quit when pressing q in diff or filter modeJesse Duffield
2020-07-18Decouple escaping from quittingv0.20.10Jesse Duffield
When a user is not entering text into a prompt, the 'q' key should immediately quit the application. On the other hand, the 'esc' key should cancel/close/go-back to the previous context. If we're at the surface level (nothing to cancel/close) and the user hits the escape key, the default behaviour is to close the app, however we now have a `quitOnTopLevelReturn` config key to override this. I actually think from the beginning we should have made this config option default to false rather than true which is the default this PR gives it, but I don't want to anger too many people familiar with the existing behaviour.
2020-03-29add new diff modeJesse Duffield
WIP WIP WIP WIP WIP WIP WIP
2019-11-11allow for changing the current directory on exitJesse Duffield
For this to work you'll need to put this in your ~/.zshrc (or equivalent rc file): lg() { export LAZYGIT_NEW_DIR_FILE=/Users/jesseduffieldduffield/Library/Application\ Support/jesseduffield/lazygit/.lastd lazygit "$@" if [ -f $LAZYGIT_NEW_DIR_FILE ]; then cd "$(cat $LAZYGIT_NEW_DIR_FILE)" rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null fi }