Add buffile env var for getting the buffer filename
This commit is contained in:
parent
aceee75ed9
commit
c49e79c9e8
|
@ -64,6 +64,10 @@ void register_env_vars()
|
||||||
"bufname",
|
"bufname",
|
||||||
[](const String& name, const Context& context)
|
[](const String& name, const Context& context)
|
||||||
{ return context.buffer().display_name(); }
|
{ return context.buffer().display_name(); }
|
||||||
|
}, {
|
||||||
|
"buffile",
|
||||||
|
[](const String& name, const Context& context)
|
||||||
|
{ return context.buffer().name(); }
|
||||||
}, {
|
}, {
|
||||||
"timestamp",
|
"timestamp",
|
||||||
[](const String& name, const Context& context)
|
[](const String& name, const Context& context)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user