-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
File picker should have an option to display ignored files #280
Comments
Seemed to work for me, is your |
yeah just helix-bin from AUR. My vimrc has content. Again, it opens when I manually type it out like |
I can reproduce this on master. Seems like an issue with expanding |
You need to add a trailing slash: |
Weird, is your home directory a symlink maybe? |
It's an absolute path |
And |
The file picker follows helix/helix-term/src/ui/mod.rs Lines 76 to 129 in 51162ae
|
Oh yeah that's definitely it, my home directory is a git repo with I would never have guessed that "git project" is the default behavior for helix and it strictly obeys gitignore like that :) |
@archseer Yeah, another person like me which use @valignatev One suggestion I can say is used another directory for git. But yeah, that's a temporary solution for just helix. That's also good because it can hide my prompt. Now I just alias alias home 'git --work-tree=/home/ivan --git-dir=/home/ivan/.home' |
haha, no thanks, there is no benefit for me to introduce this complexity just to make some text editor work :) But yeah, probably @pickfire's suggestion to not blindly obey gitignore is a good idea. Generally, even aside from dotfiles case, there are lots of cases when people want to comfortably browse their gitignored files - I browse node_modules, or zig_cache, or rust's cache all the time when I do my development, and those directories are almost always gitignored. |
I almost never do this unless I just press "goto declaration" or sort. We could maybe add a flag in file picker to allow browsing through hidden files. |
Specifically in the case of the home dir, the recommendation is to use something like rcm (https://github.com/thoughtbot/rcm) or homesick. You'll definitely have issues with more than just Helix otherwise. https://askubuntu.com/questions/1316229/is-it-bad-practice-to-git-init-in-the-home-directory-to-keep-track-of-dot-files But yes, Helix should have an option to run a filepicker without the ignore flags. |
I'm using this approach to manage my home directory for many years already and this is the first time something ever conflicted with it. I've used rcm and bare git repositories in the past, but all other solutions had some problems I didn't want to deal with, so I switched to this current setup that proved to be the best over the years. I'm definitely not the only one who does the same thing, here's another example: https://drewdevault.com/2019/12/30/dotfiles.html that I can recall off the top of my head. Regardless, I think that discussions about best practices in managing dotfiles might be slightly offtopic for the issue since it seems to be related not only to the home directory, but generally to the topic of browsing ignored files. |
I believe someone else recently had this issue on Matrix. |
Helix can't open files that are in the home directory and in some other directories.
![image](https://user-images.githubusercontent.com/7038954/122245221-36a06c00-cece-11eb-9da3-1df0e3d720d7.png)
Can't quite tell the pattern, but in some directories helix just doesn't open any existing files. As in it doesn't show suggestions. It opens the file if I type its name manually with the relative path, but it can't open the file if I type its path like
~/.vimrc
, e.g. with leading tilde. It says "NOR" and a path to the fileEnvironment
Log file is empty
The text was updated successfully, but these errors were encountered: