Skip to content

Keyboard shortcut for 'move patch into new commit' doesn't work #1954

@froody

Description

@froody

Describe the bug
In the patch options menu (pressing in patch mode) there's an entry to 'move patch into new commit', and looking at the source code it seems that pressing 'n' should trigger this, but it doesn't.

{
    Label:   "move patch into new commit",
    OnPress: gui.handlePullPatchIntoNewCommit,
    Key:     'n',
},

To Reproduce
Steps to reproduce the behavior:

  1. Run lazygit
  2. Select "Commits" panel (press twice)
  3. Select a commit (press return/enter)
  4. Select a file (press down; enter)
  5. Select a hunk and press space to create an entry in the custom patch
  6. Open the patch options menu (press
  7. Press 'n'

Expected behavior
The patch is moved to a new commit

Actual behavior
Nothing happens

Screenshots

Screen Shot 2022-05-18 at 9 51 50 am

Desktop (please complete the following information):

  • OS: Mac OS X 12.3.1
  • Lazygit Version: Unknown
  • The last commit id if you built project from sources: f31dcd3

Additional context
Lazygit is running on Ubuntu 20.04/x86_64, so I'm accessing it via SSH

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions