

GitHub - syohex/emacs-counsel-gtags: GNU Global with ivy completion
source link: https://github.com/syohex/emacs-counsel-gtags
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This package is no longer maintained. If you have an issue or pull request, please send it to https://github.com/FelipeLema/emacs-counsel-gtags
counsel-gtags.el
GNU GLOBAL interface of ivy.
Tasks
- Basic commands
- find file command
- Tag command
- Context command(dwim)
- Find definition and references
- include header support
-
GTAGSLIBPATH
support - Basic History command
- History navigate command
- Tramp support
- Windows support
Requirements
- Emacs 24.3 or higher versions
- counsel
- GNU global 6.2.3 or higher versions
Installation
counsel-gtags
is available on MELPA and MELPA stable
You can install counsel-gtags
with the following command.
M-x package-install [RET] counsel-gtags [RET]
Basic Usage
You can search for tags or files in the database. Every time you jump to a
definition, reference or symbol the current position is pushed to the context
stack. You can navigate backward and forward within this stack with
counsel-gtags-go-backward
and counsel-gtags-go-forward
.
counsel-gtags-find-definition
Search for definition.
counsel-gtags-find-reference
Search for references.
counsel-gtags-find-symbol
Search for symbol references.
counsel-gtags-find-file
Search for file among tagged files.
counsel-gtags-go-backward
Go to previous position in context stack.
counsel-gtags-go-forward
Go to next position in context stack.
counsel-gtags-create-tags
Create GNU GLOBAL tags.
counsel-gtags-update-tags
Update tags.
counsel-gtags-dwim
Find name by context.
- Jump to tag definition if cursor is on tag reference
- Jump to tag reference if cursor is on tag definition
Sample Configuration
(add-hook 'c-mode-hook 'counsel-gtags-mode)
(add-hook 'c++-mode-hook 'counsel-gtags-mode)
(with-eval-after-load 'counsel-gtags
(define-key counsel-gtags-mode-map (kbd "M-t") 'counsel-gtags-find-definition)
(define-key counsel-gtags-mode-map (kbd "M-r") 'counsel-gtags-find-reference)
(define-key counsel-gtags-mode-map (kbd "M-s") 'counsel-gtags-find-symbol)
(define-key counsel-gtags-mode-map (kbd "M-,") 'counsel-gtags-go-backward))
Recommend
-
162
emamux.el Interact with tmux from Emacs. Screenshot Introduction emamux.el let emacs interact with tmux. emamux.el is inspired by
-
167
dired-k.el dired-k.el highlights dired buffer like k. (This may works only default dired setting) screenshot k.zsh style
-
182
Jedi.el - Python auto-completion for Emacs What is it? Jedi.el is a Python auto-completion package for Emacs. It aims at helping your Python coding in a non-destructive way. It also helps you to find information about Python ob...
-
157
helm-ag.el Introduction helm-ag.el provides interfaces of The Silver Searcher with helm. Features Support multiple sea...
-
116
README.md helm-gtags.el
-
97
README.md terraform-mode.el
-
75
README.md go-eldoc.el
-
71
README.md anzu.el
-
50
README.md gtags.vim
-
57
README.md cpp-auto-include.el
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK