Skip to content

on commit with no files selected add an option to use file under the cursor #5915

Description

@c33s

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

i often look on a diff of a specific file and then press c to commit it but by pressing c i just get a dialog "No files staged: You have not staged any files. Commit all files". sometimes i already start typing and trigger the "yes" which is kind of annoying for me.

Describe the solution you'd like

not a change of the default behavior but an option where i can modify the behavior of this to ask if i want to commit the file "filename" under the cursor.
or a select dialog where i can choose between all, all like with git add -u see #1641 or only current file under the cursor (with maybe an option what is preselected)

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions