Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agreed. I've had this `git grep`-based solution in my `~/.gitconfig` for a while now. It's a bit tidier, but not as featureful.

    [alias]
            grepgvim = "!f() { git grep -l \"$@\" | xargs gvim -p; }; f"

It seems "Tag" is a little fancier in that it lets you go to specific matching lines, for the specific match. Tag is a command-line equivalent to `git cola grep <pattern>`, where you can select the matches visually in a GUI (with keyboard shortcuts) and then launch $EDITOR (e.g. gvim) on the matching line.

To the Tag author, maybe users would find this tidier if `tag` let you edit matches directly by invoking e.g. `tag func -e 96` and tag will do the rest?

In such a scheme someone could even set the alias file to `/dev/null` and it'd allow both the current workflow and a new one that didn't rely on aliases.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: