1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 22:24:51 +02:00

Implement suspending the app using ctrl-z

Co-authored-by: Stefan Haller <stefan@haller-berlin.de>
This commit is contained in:
cowboy8625
2025-07-19 07:17:30 -05:00
committed by Stefan Haller
parent af190ad280
commit 0f38d2d61e
12 changed files with 142 additions and 1 deletions

View File

@@ -42,6 +42,14 @@ func (self *guiCommon) RunSubprocess(cmdObj *oscommands.CmdObj) (bool, error) {
return self.gui.runSubprocessWithSuspense(cmdObj)
}
func (self *guiCommon) Suspend() error {
return self.gui.suspend()
}
func (self *guiCommon) Resume() error {
return self.gui.resume()
}
func (self *guiCommon) Context() types.IContextMgr {
return self.gui.State.ContextMgr
}