Skip to content

feat: Add alternative key for return#5334

Open
likelikeslike wants to merge 2 commits intojesseduffield:masterfrom
likelikeslike:add-return-alt-key
Open

feat: Add alternative key for return#5334
likelikeslike wants to merge 2 commits intojesseduffield:masterfrom
likelikeslike:add-return-alt-key

Conversation

@likelikeslike
Copy link

@likelikeslike likelikeslike commented Mar 3, 2026

PR Description

This PR added an optional alternative key (return-alt) for return, similar to quit-alt1.

The motivation of doing this is that personally I prefer use l for enter and h for back, which works fine if i set return to h in the config. But in some input window such as commit, h will be failed. So by adding this alternative key, I can have both Esc and h for return.

Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant