-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for listing untracked files too #46
Comments
Ben Grabham <[email protected]> writes:
It would be nice to be able to list untracked files in this view as well.
Use case:
* I create a new file in my repo but I haven't added it yet (I do this at the end of my workflow)
* I edit the file a bunch and save it
* I come back to emacs later and try to open it using helm-browse-project and can't find it
Your untracked files should be seen in the status source unless they are
matched in your .gitignore.
For example, if I add foo.el in the helm directory, if I run
helm-browse-project, I can see the file in the status source.
HTH.
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
Ah, sorry. The problem is a bit more complex it turns out. When you have an untracked file in folder that doesn't have any tracked files in it fails. Try:
Now try to find that file. |
Ah, nvm. It isn't related to helm-ls-git. I got it working with: git config --global status.showUntrackedFiles all Is it possible to add something like that to the docs just so it is easier for people to figure out? (It seems to work with both vc-git and magit backends) Also, is this all I need to switch to using the magit back-end: (setq helm-ls-git-status-command 'magit-status-internal) |
Ben Grabham <[email protected]> writes:
Ah, nvm. It isn't related to helm-ls-git.
I got it working with:
git config --global status.showUntrackedFiles all
I forget to mention C-c i which allow you toggling the view of
tracked/untracked files from the ls-git source (doesn't affect status
source).
(setq helm-ls-git-status-command 'magit-status-internal)
IIRC yes.
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
Ben Grabham <[email protected]> writes:
Ah, nvm. It isn't related to helm-ls-git.
I got it working with:
git config --global status.showUntrackedFiles all
You don't need this, from the status buffer you see the top directory
untracked, hitting C-x C-f on this directory give you access to it and
its untracked files if some.
Toggling with C-c i show you the path of files, not only the top dir, so RET
only should give you access to these files.
Is it possible to add something like that to the docs just so it is
easier for people to figure out? (It seems to work with both vc-git
and magit)
C-c i is documented (C-h m to access help).
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
It would be nice to be able to list untracked files in this view as well.
Use case:
helm-browse-project
and can't find itThe text was updated successfully, but these errors were encountered: