Add current history id to env variables
This commit is contained in:
parent
8cef1932a0
commit
b3ac4d86b6
|
@ -93,6 +93,10 @@ void register_env_vars()
|
|||
"timestamp", false,
|
||||
[](StringView name, const Context& context) -> String
|
||||
{ return to_string(context.buffer().timestamp()); }
|
||||
}, {
|
||||
"curr_history_id", false,
|
||||
[](StringView name, const Context& context) -> String
|
||||
{ return to_string(context.buffer().current_history_id()); }
|
||||
}, {
|
||||
"selection", false,
|
||||
[](StringView name, const Context& context)
|
||||
|
|
Loading…
Reference in New Issue
Block a user