GitXplorerGitXplorer
s

emacs-counsel-gtags

public
62 stars
20 forks
0 issues

Commits

List of commits on branch master.
Unverified
773ac516070e779cb9eb6b801f089f3811b0822d

Update README.md

ssyohex committed 5 years ago
Unverified
220ebb48419ee6891ecbf9ea8fe130b494b17ee2

Merge pull request #18 from fabacino/feature/context-navigation

ssyohex committed 8 years ago
Unverified
e7709f22639446049dc860da0c734ab302f39e55

Add functions to navigate backward and forward in context stack

ffabacino committed 8 years ago
Unverified
4ef27b1cf1075097e11c3bcfee43e0710950dbcb

Merge pull request #16 from fabacino/feature/use-input-at-point

ssyohex committed 8 years ago
Unverified
04a79863a3424c7dd147b72aa417477e0b033dd3

Change default value for `counsel-gtags-use-input-at-point` to `t`

ffabacino committed 8 years ago
Unverified
6f668155f955bf595db739882094afdcf1db91bf

Add option to use input at point

ffabacino committed 8 years ago

README

The README file for this repository.

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 melpa badge melpa stable badge

GNU GLOBAL interface of ivy.

Tasks

  • [X] Basic commands
  • [X] find file command
  • [X] Tag command
  • [ ] Context command(dwim)
  • [X] Find definition and references
  • [ ] include header support
  • [ ] GTAGSLIBPATH support
  • [X] 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))