Add buffile env var for getting the buffer filename

This commit is contained in:
Maxime Coste 2014-02-27 06:43:21 +00:00
parent aceee75ed9
commit c49e79c9e8

View File

@ -64,6 +64,10 @@ void register_env_vars()
"bufname",
[](const String& name, const Context& context)
{ return context.buffer().display_name(); }
}, {
"buffile",
[](const String& name, const Context& context)
{ return context.buffer().name(); }
}, {
"timestamp",
[](const String& name, const Context& context)