psprint / fzf-ctags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fzf-ctags

A tool that allows to:

  • browse ctags-generated index of symbols in the sources,
  • open an editor (via $EDITOR) on the selected symbol.

Also, a preview window is available, showing the selected symbol's line in a center of the screen, with syntax highlighting (supporting pygments and GNU Source-Highlight).

Screenshots

pygments:

screen1

pygments:

screen2

GNU Source Highlight. screen3

Installation

After downloading the repo issue make install to have the main script binary fzf-ctags copied to your $PATH. Or, if using Zsh (not required, fzf-ctags is written in Bash), you could use Zinit plugin manager and issue:

zinit as"null" sbin'bin/*~*lib' for psprint/fzf-ctags

Then, to open the interface, run fzf-ctags.

Generating Ctags index

The index used is Emacs-style, TAGS file. To generate this kind of index use -e option with ctags binary. The recommended ctags to use is universal-ctags/ctags. Example command to generate for C project could be:

ctags -e -R --languages=C --langmap=C:.h.c --c-kinds=+px --extras=+r --extras=-{anonymous}

About

License:MIT License


Languages

Language:Shell 87.1%Language:Makefile 12.9%