A lightweight wrapper for ag and ripgrep that generates shell aliases to instantly jump to search matches in your editor.
tag is a lightweight command-line wrapper for ag (The Silver Searcher) and ripgrep that generates shell aliases from search matches. It solves the problem of manually typing verbose commands to open files at specific search results, enabling instant navigation to matches in your preferred editor.
Developers who frequently use ag or ripgrep for code search from the terminal and want a faster way to open and edit matching files, especially those working outside of Vim or in Neovim terminals.
tag offers a near-zero performance overhead solution that integrates seamlessly with existing search tools, providing immediate productivity gains through automated alias generation without altering the core search behavior.
Instantly jump to your ag or ripgrep matches.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates shell aliases like e42 that open files at exact line and column matches from search results, drastically reducing manual command typing for quick editing.
Configurable via TAG_SEARCH_PROG environment variable to use either ag or ripgrep, allowing users to maintain their preferred search tool without altering behavior.
Built in Go and processes output via pipes, with benchmarks showing near-identical speed to raw ag, ensuring no slowdown in search performance.
Integrates easily with bash, zsh, and fish through simple configuration snippets in shell files, making it adaptable to various terminal environments.
Only supports ag and ripgrep, with the README explicitly stating no plans to add ack or grep, which may exclude users of other search tools.
Requires users to edit shell configuration files (e.g., bashrc) and set environment variables, which can be error-prone and complex for those unfamiliar with shell setup.
Default alias format is vim-specific; users must modify TAG_CMD_FMT_STRING to work with other editors like VS Code or Sublime, adding setup steps.