Tig: Feature request: Delete untracked files from status view

Created on 20 Mar 2015  Â·  3Comments  Â·  Source: jonas/tig

In git cola I can easily delete an untracked file (or add it to .gitignore which is less important to me). It would be great to have that feature in tig, too.

Most helpful comment

True, @ means run in the background. You can combine the flags:

bind status D ?@rm %(file)

All 3 comments

You can add something like the following to your ~/.tigrc if you want to
delete a file:

bind status D @rm %(file)

This will ask for confirmation before running rm. If you don't want that
change the @ to !.

To ignore you can do:

bind status D !sh -c "echo %(file) >> .gitignore"

On Mar 20, 2015 5:54 AM, "Tobias Bengfort" [email protected] wrote:

In git cola
https://git-cola.readthedocs.org/en/latest/git-cola.html#delete-file-s
I can easily delete an untracked file (or add it to .gitignore which is
less important to me). It would be great to have that feature in tig, too.

—
Reply to this email directly or view it on GitHub
https://github.com/jonas/tig/issues/393.

Works well. Just one thing: @ does not ask for confirmation. ? does that, but that will execute in foreground.

True, @ means run in the background. You can combine the flags:

bind status D ?@rm %(file)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

larrylv picture larrylv  Â·  7Comments

hSATAC picture hSATAC  Â·  8Comments

kiryph picture kiryph  Â·  6Comments

Anrock picture Anrock  Â·  8Comments

djromero picture djromero  Â·  8Comments