lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Add status line info to the submodule list view

Open nicklundin08 opened this issue 1 year ago • 1 comments

Add status line info to the submodule list view

Adds a QOL status line to the git submodules feature, inspired by the default power level 10k status line. This is a pretty basic first pass that only includes 3 values snagged from running git status --porcelain but I think it could be extended to include all of the values in the table (potentially). See the list view on the left in the submodules pane for the changes

  • Please check if the PR fulfills these requirements
  • [x] Cheatsheets are up-to-date (run go generate ./...)
  • [x] Code has been formatted (see here)
  • [ ] Tests have been added/updated (see here for the integration test guide)
  • [ ] Text is internationalised (see here)
  • [ ] If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • [ ] Docs have been updated if necessary
  • [x] You've read through your own file changes for silly mistakes etc

lazygitscreenshot

nicklundin08 avatar Sep 24 '24 22:09 nicklundin08

I'm getting this error intermittently. New to go but unsure what is causing this. Maybe something with my environment? Im using WSL

--- FAIL: TestIntegration/bisect/from_other_branch (0.46s) go_test.go:51: Error Trace: /home/nick/clones/lazygit/go_test.go:51 Error: Received unexpected error: POTENTIAL DEADLOCK: Recursive locking: current goroutine 2 lock 0xc0000149e0

nicklundin08 avatar Sep 24 '24 22:09 nicklundin08