jesseduffield / jesseduffield/lazygit

Execute key sequence from command line

Open
#1,256 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

Lazygit's undo feature really helped me out recently (thanks!). Using the reflog is something I'm still not good at in git, but lazygit made it easy to get back to where I wanted.

I thought it'd be useful if I could make a command-line call to that feature in lazygit, so I could make an alias like "git undo". But, I didn't see a way to call into lazygit's features from the command line.

Would it make sense for lazygit to take a command, so that one could create an alias like:

```shell
alias git-undo="lazygit -C 'z'"
alias git-redo="lazygit -C 'ctrl+z'"
```

With that, maybe it'd be possible to script git using lazygit by providing a sequence of commands.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.