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

Pathcomplete for path stored in variable #14730

Open
jeanlucthumm opened this issue Jan 3, 2025 · 0 comments
Open

Pathcomplete for path stored in variable #14730

jeanlucthumm opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request needs-triage An issue that hasn't had any proper look

Comments

@jeanlucthumm
Copy link

jeanlucthumm commented Jan 3, 2025

Related problem

Inspired from fish behavior, I want path auto complete when hitting <Tab> after a variable storing a path.

Describe the solution you'd like

Example:

$ tree lib
lib
└── random
    └── test.txt
$ let mypath = "./lib"
$ cd $mypath/ # pressing TAB here should autocomplete as if we're doing `cd ./lib`

This is also useful for storing common paths in env vars:

$ $env.I3CONF
/home/<....>/.config/i3
$ vim $env.I3CONF/ # pressing TAB here should autocomplete as if we're doing `vim ~/.config/i3/`

Describe alternatives you've considered

Can't think of anything to replicate this behavior.

Additional context and details

Test the behavior in Fish which has this feature

@jeanlucthumm jeanlucthumm added enhancement New feature or request needs-triage An issue that hasn't had any proper look labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage An issue that hasn't had any proper look
Projects
None yet
Development

No branches or pull requests

1 participant