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

Add support for listing untracked files too #46

Open
SerialVelocity opened this issue Jun 22, 2017 · 6 comments
Open

Add support for listing untracked files too #46

SerialVelocity opened this issue Jun 22, 2017 · 6 comments

Comments

@SerialVelocity
Copy link

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
@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jun 22, 2017 via email

@thierryvolpiatto
Copy link
Member

capture d ecran_2017-06-22_22-11-35

@SerialVelocity
Copy link
Author

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:

  • mkdir some-non-existent-folder
  • touch some-non-existent-folder/some-file

Now try to find that file.

@SerialVelocity
Copy link
Author

SerialVelocity commented Jun 22, 2017

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)

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jun 23, 2017 via email

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jun 23, 2017 via email

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