PsychoLlama / teleport.vim

Navigate faster with frecency. Integrates with z.sh, zoxide, autojump, and z.lua.
MIT License
5 stars 4 forks source link

Add option to automatically set vim working directory #6

Closed PsychoLlama closed 4 years ago

PsychoLlama commented 4 years ago

Say I have two projects:

I'm working in project-a/ and then jump :Z project-b. Vim's current working directory :pwd is still pointing to project-a/. Fuzzy finders, path resolvers, and sometimes linters will try to execute relative to the old project-a/ repo even though I'm working in a completely different context.

I'd like an option that, if enabled, changes the local working directory after navigating via :Z. It should be opt-in.

PsychoLlama commented 4 years ago

Added in v0.5.0 :metal:

let teleport#update_cwd = v:true