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

Make it easier to select a directory when using fish #41

Closed
j-f1 opened this issue Mar 22, 2021 · 2 comments
Closed

Make it easier to select a directory when using fish #41

j-f1 opened this issue Mar 22, 2021 · 2 comments

Comments

@j-f1
Copy link

j-f1 commented Mar 22, 2021

Is your feature request related to a problem? Please describe.
Fish allows you to change directories by “executing” a directory (i.e. you can run src/ to do the same thing as cd src/). However, the path autocomplete provided by Fig does not allow for this possibility (you have to hit esc to close the panel before hitting enter to cd.

Describe the solution you'd like
Add a “run” shortcut like the one produced by cd’s autocompletion.

Describe alternatives you've considered
Not sure there is one

Additional context

Screen.Recording.2021-03-22.at.17.25.12.mov
@mschrage
Copy link
Member

Didn't know that was possible with fish - I learned something new today. :)

I think this should be a pretty easy fix on our end. Thanks for reporting.

@mschrage
Copy link
Member

mschrage commented Apr 2, 2021

Hey Jed! You can update this behavior by editing the ~/.fig/autocomplete/dotslash.js.

Just add the "folders" option to the list of templates, and the red insert option will appear for folders as well as files.

        template: ["filepaths", "folders"]

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

No branches or pull requests

2 participants