jesseduffield / jesseduffield/lazygit

Enable git completion via <Tab> in custom command

Open
#1,391 4 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

**Is your feature request related to a problem? Please describe.**

Lazygit makes it easy to navigate submodules, however, running a complex command in the submodule usually requires `cd /path/to/submodule` first. It would be very handy to have git-completion inside a custom command.

Currently, pressing `` inside a custom command causes the application to change focus to an empty rectangle. I would really like it to use git-completion to save me some typing.

**Describe the solution you'd like**

Pressing `` should finish typing the reference, if it is a partial string match to anything known by git. If there are multiple matches, it should show them to me with ``.

**Describe alternatives you've considered**

A shortcut to open the terminal/command line in the directory of the active Git repository.

**Additional context**

![image](https://user-images.githubusercontent.com/51137853/126496907-c1a0c9bd-8d76-4161-8772-31ad43698faa.png)

`commit=f91adf026bfbddc9505d6d84d3fabc80d49c7ca0, build date=2021-06-05T04:16:14Z, build source=binaryRelease, version=0.28.2, os=linux, arch=amd64`

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.