NeogitOrg / NeogitOrg/neogit

Allow using git flags on sub command

Open
#1,885 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
5.6k
Forks
357
Avg merge
15h 47m
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
The popup window for git sub command to select flags is very helpful. There comes a time I know all the flags I need to invoke a sub command, for example, git log -- [filename], such behavior is not supported when using :Neogit log [flags] in neovim.

Describe the solution you'd like
Ability to support flags when using Neogit sub command. Moreover, support vim global variables in sub command as well. e.g. :Neogit log -- % to open the popup with flags selected to current file.

Describe alternatives you've considered
None

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the :Neogit log subcommand opens its popup and handles arguments. Verify that explicit flags are accepted and that Vim variables such as % are expanded to the current file, with the popup showing the corresponding flags selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua, neovim
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.