Code Monkey home page Code Monkey logo

vim-tagquery's Introduction

vim-tagquery

A vim plugin that enables improved querying of tags.

Currently, this depends on fzf.vim, but there are plans for a command that does not require it.

Usage

This finds all locations with the tags foo and bar, but not bazz. It will put the results in a filterable fzf buffer with a preview of the file:

:FzfTagQuery foo & bar & !bazz

An example binding:

noremap <C-t> :FzfTagQuery

Installation

Using vim-plug:

Plug 'matt-snider/vim-tagquery', { 'do': 'bash install.sh' }

Configuration

Path to the vimwiki ctags file:

let g:tagquery_ctags_file = '~/vimwiki/.vimwiki_tags'

vim-tagquery's People

Contributors

matt-snider avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sysid

vim-tagquery's Issues

file not found when executing ctags-query on Linux

Hi,
great tool, just what I need for my vimwiki workflow!
I know this hasn't been updated in a while, but in case you're interested or in case some other random user stumbles across this problem:

after installing following the instructions, executing :FzfTagQuery gives me the result file not found: /home/hans/.vim/plugged/vim-tagquery/bin/ctags-query. The file preview window shows zsh: file not found.

I'm on Linux/Ubuntu using zsh.

The error is a bit confusing, but I find indications on the web that when zsh says it can't find a binary that's there, it can have something to do with Nix.

Workaround

When I download the source for [ctags-query](https://github.com/matt-snider/ctags-query] and build the binary, using that binary (target/x86_64-unknown-linux-gnu/releases/ctags-query) produces a working :FzfTagQuery command in Vim.

Maybe something has changed in your build process to produce a non-portable binary? In any case, for those with Rust installed the workaround is fairly simple.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.