Skip to content
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

gum file does not respect esc key binding #626

Closed
marcransome opened this issue Jul 24, 2024 · 1 comment
Closed

gum file does not respect esc key binding #626

marcransome opened this issue Jul 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@marcransome
Copy link

marcransome commented Jul 24, 2024

Describe the bug

The key bindings shown in the help message of the gum file command suggest that the esc key will close the command:

$ gum file
> drwxr-xr-x choose
  drwxr-xr-x completion
  drwxr-xr-x confirm
  drwxr-xr-x cursor
  drwxr-xr-x examples
  drwxr-xr-x file
  drwxr-xr-x filter
  drwxr-xr-x format
  drwxr-xr-x input
  drwxr-xr-x internal

↑ up • ↓ down • esc close • enter submit

However, pressing esc results in the file listing being redrawn with a single entry for the current working directory:

$ gum file
/src










enter submit

To Reproduce

Steps to reproduce the behavior:

  1. Run gum file <path>
  2. Press esc

Expected behavior

Pressing the esc key should result in the gum file command returning the user to the shell.

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.5
  • Version: 0.14.1
@caarlos0
Copy link
Member

charmbracelet/huh#323 this should fix it

@caarlos0 caarlos0 self-assigned this Jul 24, 2024
caarlos0 added a commit to charmbracelet/huh that referenced this issue Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants