New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
temporary tags file into cache dir #9
Comments
Hey, thanks for using it :) Did you know you can hide both the tag file and the temp/lock file away by setting |
Yep, I discovered this option but stay safe and keep the tag file in the project root but suggest only moving the temp lock file that sometimes ends up in my project root when Vim crashes. By the way, with the former option, you tell Vim about the gutentags cache dir by adding it to the vim tagpath option, that's how it works? |
Thinking about it, There's also a temp folder under Windows, perhaps there's an analog under Unix as well? |
You specify the cache dir just by setting that value in your
But yeah, I could save the lock file by default in the OS' temp directory instead of next to the tag file. I'll look into it. |
Using the |
The temp paths are listed in the default value |
Mmmh |
Hmm, true that these are Vim file patterns. that's why I asked about https://groups.google.com/forum/m/#!topic/vim_use/NXFksN223bc But it's rather meant as inspiration regading the system's default temp folder. It defaults to 'backupskip' 'bsk' string (default: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*") |
I thought about this thing some more and I prefer keeping the temp files next to the tags file. When it goes well, you don't notice anything, and when it goes bad, it makes it a lot easier to cleanup or troubleshoot stuff (finding a specific file in the OS's temp dirs is really painful). Of course, if anybody with more free time than me want to submit a pull request that adds the option, I'll gladly merge it, but in the meantime I'll close this. |
Okay, to achieve that using |
Hey, thanks for the closure that gutentags brought to us Vim taggers.
How about generating the temporary tag files, such as
tags.lock
, into ta$XDG_CACHE_HOME/tags
folder ? (If set up by the user.)While there are good reasons to leave the tag files in the project root, I don't see many for the temporary tag files.
The text was updated successfully, but these errors were encountered: