GNU GLOBAL interface of ivy.
- 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
counsel-gtags is not registered MELPA yet.
Move to definition
Move command push current position to stack. counsel-gtags-pop
command pops point stack and jump back to previous point.
Move to references
Move to symbol references
Find file from tagged files
Move to previous point on stack
Create GNU GLOBAL tag
Update tags.
Find name by context.
- Jump to tag definition if cursor is on tag reference
- Jump to tag reference if cursor is on tag definition
(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-pop-stack))