Skip to content

Edit multiple files / load multiple files into buffer list for :Git <command>'s #2352

@fab4100

Description

@fab4100

Assume the command in question is :Git send-email --annotate HEAD~2. This will prepare patches for the last two commits pointed to by HEAD and prepare one email message for each which will be sent to the editor for further editing because of the --annotate flag. The default for the option sendemail.multiEdit is true which will start one editor instance with two buffers loaded (one for each email message) when above command is executed from the command line. The user can then jump back and forth between these buffers and further edit the messages. When the editor instance is closed git will send the emails. When sendemail.multiEdit is false the process is sequential, starting a new editor instance for every file that needs editing.

When the above command is executed from within vim (with sendemail.multiEdit = true) only the first file to edit is loaded into the buffer list. When that buffer is removed, the command immediately proceeds to sending the email(s), assuming the remaining email messages do not need editing (these buffers are somehow lost in the process). When sendemail.multiEdit = false, the user gets the chance to edit each message but the process is sequential.

Is it possible for a Git <command> that expects to edit multiple files, to load all these files into the buffer list at once? The command must only proceed when all these buffers are removed using something like :bd /tmp/tmp_folder/*.patch or some other means.

Thanks,
fabs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions