Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Pressing up when autocomplete modal is showing doesn't go back a command if it is a directory #2214

@DynamicApproach

Description

@DynamicApproach

Checks

  • I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • I have run fig doctor in the affected terminal session
  • I have run fig restart and replicated the issue again

Operating system

macOS 13.1.0 (22C65)

Expected behaviour

Pressing up the arrow on the keyboard should keep going back through commands

Actual behaviour

Pressing the up arrow to use a recent command, a command like "cd $USER/project" can cause issues as the modal opens. Once the modal is open, pressing up does not do anything.

Steps to reproduce

Make /user/project directory and put two directories inside it

  1. type "cd $USER/project", and hit enter
  2. Notice the / missing on the project
  3. type "ls"
  4. press up three times, only 2 will do anything

Environment

fig-details:
  - 2.11.0
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  - cores: 4
  - mem: 16.00 GB
os-info:
  - macOS 13.1.0 (22C65)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/thomas
  - exe-path: /usr/local/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: 708419d1-6cb8-44a7-b012-4f68b02e9f94
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.11.0
    - PATH: /usr/local/bin:/Users/thomas/.composer/vendor/bin:/usr/local/opt/php@8.1/bin:/usr/local/opt/php@8.1/sbin:/usr/local/opt/php@8.1/bin:/Users/thomas/.docker/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/thomas/.fig/bin:/Users/thomas/.local/bin:/Users/thomas/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/Users/thomas/.antigen/bundles/romkatv/powerlevel10k:/Users/thomas/.composer/vendor/bin:/Users/thomas/.antigen/bundles/romkatv/powerlevel10k:/usr/local/opt/php@8.1/sbin:/Users/thomas/.fig/bin:/usr/local/opt/php@8.1/bin:/usr/local/etc/php@8.2/bin:/Users/thomas/.docker/bin:/Users/thomas/.local/bin:/Users/thomas/.antigen/bundles/robbyrussell/oh-my-zsh/lib
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.googlecode.iterm2
    - FIG_PID: 29407
    - FIG_SET_PARENT: 708419d1-6cb8-44a7-b012-4f68b02e9f94

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions