Skip to content

Allow Ctrl + arrow keys sentence navigation in commit message #147

@mjarkk

Description

@mjarkk

Describe the bug
Can't change the cursor position in a commit message using Ctrl + arrow keys ( )
Currently when doing this the popup changes to:

┌─Clear file panel────────────────────────────────────┐
│Are you sure you want `reset --hard HEAD`? You may lo│
│se changes                                           │
└─────────────────────────────────────────────────────┘

To Reproduce
Steps to reproduce the behavior:

  1. Open lazygit
  2. Under commits Press C
  3. Do: Ctrl + OR Ctrl +
  4. See the popup change

Expected behavior
When the cursor is here in a sentence: some words with| a cursor (| = the cursor)
And pressed Ctrl + the cursor needs to be here: some words |with a cursor

Desktop:

  • OS: Linux (fedora 4.17.12-200.fc28.x86_64)
  • Shell: Bash
  • Lazygit v0.1.59

Additional context
I'm not sure if Ctrl + is possible in Go.
If not it might be a good idea to block the Clear files panel popup

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