Skip to content
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

Reflect included files in g:vader_file / add g:vader_current_file #171

Open
blueyed opened this issue Jul 7, 2018 · 2 comments
Open

Reflect included files in g:vader_file / add g:vader_current_file #171

blueyed opened this issue Jul 7, 2018 · 2 comments

Comments

@blueyed
Copy link
Collaborator

blueyed commented Jul 7, 2018

g:vader_file currently contains the main .vader file always, and gets not updated for when Include is used.

I've changed this in #107 (3eb2541), but since this is a breaking change it is probably better to use a new variable for it?!

The doc currently says:

The path of the current .vader file can be accessed via g:vader_file.

@blueyed
Copy link
Collaborator Author

blueyed commented Jul 7, 2018

Without any feedback I will add a new var g:vader_current_file (or similar for it).

I came across this when writing new tests for #107, where it is useful to get the current test's filename.

@blueyed
Copy link
Collaborator Author

blueyed commented Jul 7, 2018

Changed to use g:vader_current_file already for backward compatibility.
Feedback would be still welcome, of course.. :)

@blueyed blueyed changed the title Reflect included files in g:vader_file Reflect included files in g:vader_file / add g:vader_current_file Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant