vim-taggatron icon indicating copy to clipboard operation
vim-taggatron copied to clipboard

Generating the tagfile in the background?

Open TrafeX opened this issue 12 years ago • 4 comments

Hi,

Is it possible to generate/update the tag files in the background after saving a file? It now blocks vim completely for a few seconds.

Kind Regards, Tim

TrafeX avatar Oct 18 '13 13:10 TrafeX

+1 for this, would be great if you can make it work, may be the simplest way is make some kind of mapping to vim-dispatch

zzantares avatar Oct 08 '15 05:10 zzantares

Funnily enough, I've been working on a vim plugin for running commands asynchronously, vim-do. So with some tweaks, I should be able to hook it into that.

I'll keep you updated! Really sorry @TrafeX for the total lack of reply. I really need a better way of managing GH issues, where it notifies me if I don't respond after a while!

joonty avatar Nov 13 '15 09:11 joonty

Hi everyone, I've just pushed to a branch called dev/run-in-background. This integrates with my aforementioned plugin, vim-do (github, vim.org), which runs commands asynchronously within vim (i.e. not in tmux, like vim-dispatch).

To use this, you'll obviously need to install vim-do, and also set g:taggatron_run_in_background = 1. This should remove the noticeable delay when generating large tag files.

This is very much in beta at the moment, so feedback would be much appreciated :)

Thanks!

joonty avatar Dec 22 '15 12:12 joonty

Hi, I just wanted to try this, but afaict, master is identical to dev/run-in-background. Why is that?

PS: Thanks for your work on this, it's much better than using a cron-job.

jp-hoehmann avatar Aug 22 '16 18:08 jp-hoehmann