jesseduffield.lazygit/pkg/gui
Stefan Haller e585accd37 Give better feedback when checking out the previous branch
Previously, the feedback you got when pressing "-" was just a "Checking out..."
status in the bottom line. This was both easy to miss if you are used to looking
for an inline status in the branches panel, and it didn't provide information
about which branch was being checked out, which can be annoying in very large
repos where checking out takes a while, and you only see at the end if you are
now on the right branch.

Improve this by trying to figure out which branch was the previously checked out
one, and then checking it out normally so that you get an inline status next to
it (as if you had pressed space on it). There are cases where this fails, e.g.
when the previously checked out ref was a detached head, in which case we fall
back to the previous behavior.
2025-10-02 18:28:17 +02:00
..
context Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
controllers Give better feedback when checking out the previous branch 2025-10-02 18:28:17 +02:00
filetree Move the Ref interface from gui/types to models 2025-07-31 15:21:34 +02:00
keybindings Make LabelFromKey return an empty string for unset keys 2025-07-27 12:25:16 +02:00
mergeconflicts Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
modes Make Commit.Hash a getter for an unexported hash field 2025-04-29 14:57:15 +02:00
patch_exploring Don't use hunk mode for added or deleted files 2025-07-27 12:10:25 +02:00
popup Add convenience function ConfirmIf 2025-07-08 16:41:22 +02:00
presentation Fix right-alignment of divergence from base branch for branch checked out in a worktree 2025-08-14 14:28:11 +02:00
services/custom_commands Change Refresh to not return an error 2025-07-02 16:09:42 +02:00
status Move Loader to presentation package 2025-05-06 09:52:53 +02:00
style Add function to render a hyperlink 2024-08-24 10:36:01 +02:00
types Don't hide keybindings that match the confirmMenu key in the keybindings menu 2025-09-07 12:43:54 +02:00
background.go Change Refresh to not return an error 2025-07-02 16:09:42 +02:00
command_log_panel.go Fix warning QF1004: could use strings.ReplaceAll instead 2025-06-30 18:30:11 +02:00
context.go Hide the cursor when the password prompt is showing 2025-09-20 11:11:46 +02:00
context_config.go Remove some unused code 2025-07-08 15:14:45 +02:00
controllers.go Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
dummies.go Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
editors.go Support Alt+Backspace for word deletion in text areas 2025-07-17 19:13:25 +02:00
extras_panel.go Add pageUp/pageDown/top/bottom keybindings to focused command log panel 2025-04-08 16:11:15 +02:00
global_handlers.go Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
gui.go Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
gui_common.go Implement suspending the app using ctrl-z 2025-08-14 20:41:46 +02:00
gui_driver.go Fix clicking multiple times in an integration test 2024-10-18 10:06:52 +02:00
information_panel.go Rename ModeStatus.Description to InfoLabel 2025-08-14 17:59:38 +02:00
keybindings.go Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
layout.go Bump gocui and adapt lazygit code 2025-06-05 13:20:38 +02:00
main_panels.go Fix race with PTYs in integration tests 2025-03-28 11:16:04 +01:00
menu_panel.go Don't hide keybindings that match the confirmMenu key in the keybindings menu 2025-09-07 12:43:54 +02:00
options_map.go Avoid duplicate key bindings in options map 2025-08-14 17:59:38 +02:00
pty.go Clean up build tags 2025-08-14 20:40:44 +02:00
pty_windows.go Clean up build tags 2025-08-14 20:40:44 +02:00
recent_repos_panel.go Remove unused field gui.IsNewRepo 2024-12-01 10:44:26 +01:00
tasks_adapter.go Close a task's stdout pipe when we are done with it 2025-08-01 10:32:46 +02:00
test_mode.go Don't wait in integration tests when running in headless mode 2024-06-05 14:44:02 +02:00
view_helpers.go Add ContextMgr.NextInStack and use it to access side panel of focused main view 2025-05-22 14:38:40 +02:00
views.go Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00