withfig/fig

Completion for `cd` command does not work

beyondcompute opened this issue · 2 comments

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 14.3.1 (23D60)

Expected behaviour

I type cd and I see a list of subfolders of the current folder to navigate to? Or at least, I type cd my and see mydir being suggested, or at least, I type cd mydir/ and see the list of subdirectories of mydir appearing.

Note

I have searched for the issue and I’ve seen that there were issues with cd completion in the past, but they were addressed. Also I am not claiming that showing subfolders when typing cd is the “correct” or the best possible behavior (why not also show .., -, and sibling folders of the current one, for example?

I hope it is not a duplicate and otherwise hasn’t been raised a number of times and dismissed for whatever reason.

Actual behaviour

Nothing happens. Whatever I do, but if the command is cd, fig just doesn’t appear.
Incidentally, if I type directories without cd, relying on autocd option, for example $ mydir/, here fig suggestions for subfolders do appear. This is a bit puzzling and feels inconsistent.

Steps to reproduce

Type cd, try typing names of existing directories. Even when the cd destination becomes unambiguous, fig suggestions do not appear.

Environment

fig-details:
  - 2.17.1
hardware-info:
  - chip-id: <Apple Silicon>
os-info:
  - macOS 14.3.1 (23D60)
environment:
  - shell: /opt/homebrew/Cellar/bash/5.2.26/bin/bash
  - terminal: terminal
  - cwd: <omitted>
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - SHELL: /opt/homebrew/bin/bash
    - __CFBundleIdentifier: com.apple.Terminal
    - FIG_SET_PARENT_CHECK: 1
    - FIGTERM_SESSION_ID: bd235f09-9171-49b3-a6d0-2930a0eff399
    - FIG_TERM: 2.17.1
    - TERM: xterm-256color
    - FIG_PID: 4678
    - PATH: <omitted>

Hey @beyondcompute, could you record a video of what is happening for you. Also can you check that the desktop app has the necessary permission to read the directory.

Hello! Other commands that accept files work, also autocd as mentioned above works. Do you want me to record me simply working in terminal while nothing happening?