Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt-Enter in file picker does nothing #12392

Closed
jose-elias-alvarez opened this issue Jan 3, 2025 · 0 comments
Closed

Alt-Enter in file picker does nothing #12392

jose-elias-alvarez opened this issue Jan 3, 2025 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@jose-elias-alvarez
Copy link

jose-elias-alvarez commented Jan 3, 2025

Summary

The Alt-Enter picker keybinding added in #4435 does not work for me on macOS, independent of which terminal emulator I'm using. (I'm unsure if the issue is macOS-specific, but other reports seem to indicate that it works on other platforms.) Instead of opening the selected file in the background, the keybinding does nothing.

This issue differs from #2280 / other macOS Alt-related issues I've found in that I can confirm that I've properly configured my terminal emulator to treat the Option key as Alt. I've tested Helix on Terminal.app, iTerm, WezTerm, Kitty, Ghostty, and Warp and have seen the same behavior across all of them. I can also confirm that the terminal is receiving the correct keys:

image

image

All other Alt key bindings do work in Helix, and if I manually set up an A-ret keybinding for normal or insert mode in my Helix config, it also works, indicating that Helix is receiving the correct keys outside of the picker (I've also tested the same in Neovim).

Finally, I also tried building Helix using brew install --HEAD helix and still saw the issue.

Reproduction Steps

I tried this:

  1. hx
  2. Open file picker with <Space>f
  3. Select a file and press Alt-Enter

I expected this to happen:

The selected file is opened in the background, as per #4435.

Instead, this happened:

Nothing happens.

Helix log

There's nothing relevant in the log, but here it is (I cleared it before running the reproduction steps above):

~/.cache/helix/helix.log
2025-01-03T13:56:10.319 helix_lsp::transport [ERROR] bash-language-server err <- "(node:78283) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\n"
2025-01-03T13:56:10.319 helix_lsp::transport [ERROR] bash-language-server err <- "(Use `node --trace-deprecation ...` to show where the warning was created)\n"

Platform

macOS Sequoia 15.2

Terminal Emulator

iTerm 3.5.11 (but as mentioned I replicated the issue on just about every macOS terminal emulator)

Installation Method

brew

Helix Version

helix 24.7 (079f544)

@jose-elias-alvarez jose-elias-alvarez added the C-bug Category: This is a bug label Jan 3, 2025
@helix-editor helix-editor locked and limited conversation to collaborators Jan 5, 2025
@the-mikedavis the-mikedavis converted this issue into discussion #12413 Jan 5, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant