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

space + F show entire workspace files #3651

Closed
noor-tg opened this issue Sep 2, 2022 · 3 comments
Closed

space + F show entire workspace files #3651

noor-tg opened this issue Sep 2, 2022 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@noor-tg
Copy link

noor-tg commented Sep 2, 2022

Summary

when I click space+F the filepicker show the workspace directory (git project). not only current working directory files.
and when I try to check the CWD from commands even when I opened file in sub directories. it shows the workspace directory (project root with git repo).

Reproduction Steps

I tried this:

  1. hx in project with git repo
  2. I opened file in plans/subproject/file.md
  3. when I tried to list CWD files subproject directory by click space+F

I expected to see only files in the subproject directory.

Instead, I saw all the root project files.

Platform

Linux

Terminal Emulator

kitty

Helix Version

helix 22.08.1 (66276ce)

@noor-tg noor-tg added the C-bug Category: This is a bug label Sep 2, 2022
@the-mikedavis
Copy link
Member

This is the expected behavior: hx in the root of the repo sets the CWD to the root of the repo. You can check the CWD with :pwd and use hx plans/subproject or :cd plans/subproject to change the CWD to some other directory.

Opening a document doesn't automatically change the CWD. #2056 covers that behavior.

@noor-tg
Copy link
Author

noor-tg commented Sep 2, 2022

This is the expected behavior: hx in the root of the repo sets the CWD to the root of the repo. You can check the CWD with :pwd and use hx plans/subproject or :cd plans/subproject to change the CWD to some other directory.

Opening a document doesn't automatically change the CWD. #2056 covers that behavior.

yes . using :cd plans/sub worked. but is there any way to change cwdbased on current active buffer ?

@the-mikedavis
Copy link
Member

but is there any way to change cwd based on current active buffer ?

That's what #2056 covers

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants