| File data/vim/doc/app/vifm-lua.txt changed (mode: 100644) (index df1d77adb..bc3582181) |
| 1 |
|
*vifm-lua.txt* For Vifm version 1.0 Last change: 2026 May 9 |
|
|
1 |
|
*vifm-lua.txt* For Vifm version 1.0 Last change: 2026 June 3 |
| 2 |
2 |
|
|
| 3 |
3 |
Email for bugs and suggestions: <xaizek@posteo.net> |
Email for bugs and suggestions: <xaizek@posteo.net> |
| 4 |
4 |
|
|
| |
| ... |
... |
The following standard libraries are enabled: |
| 170 |
170 |
* string manipulation (`string` table) |
* string manipulation (`string` table) |
| 171 |
171 |
* input and output (`io` table) |
* input and output (`io` table) |
| 172 |
172 |
* mathematical functions (`math` table) |
* mathematical functions (`math` table) |
| 173 |
|
* time subset of OS facilities (`clock`, `date`, `difftime` and `time` |
|
| 174 |
|
elements) and `tmpname` of `os` table |
|
|
173 |
|
* subset of OS facilities (`os` table): |
|
174 |
|
- all time-related members (`clock`, `date`, `difftime` and `time`) |
|
175 |
|
- two file-system related members: `remove` and `tmpname` |
| 175 |
176 |
|
|
| 176 |
177 |
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
| 177 |
178 |
*vifm-plugins* |
*vifm-plugins* |
| File src/lua/vlua.c changed (mode: 100644) (index 3722dbe4b..ddc85729b) |
| ... |
... |
patch_env(lua_State *lua) |
| 106 |
106 |
lua_setglobal(lua, "print"); |
lua_setglobal(lua, "print"); |
| 107 |
107 |
|
|
| 108 |
108 |
lua_getglobal(lua, "os"); |
lua_getglobal(lua, "os"); |
| 109 |
|
lua_createtable(lua, /*narr=*/0, /*nrec=*/6); |
|
|
109 |
|
lua_createtable(lua, /*narr=*/0, /*nrec=*/7); |
| 110 |
110 |
lua_getfield(lua, -2, "clock"); |
lua_getfield(lua, -2, "clock"); |
| 111 |
111 |
lua_setfield(lua, -2, "clock"); |
lua_setfield(lua, -2, "clock"); |
| 112 |
112 |
lua_getfield(lua, -2, "date"); |
lua_getfield(lua, -2, "date"); |
| |
| ... |
... |
patch_env(lua_State *lua) |
| 115 |
115 |
lua_setfield(lua, -2, "difftime"); |
lua_setfield(lua, -2, "difftime"); |
| 116 |
116 |
lua_pushcfunction(lua, VLUA_REF(os_getenv)); |
lua_pushcfunction(lua, VLUA_REF(os_getenv)); |
| 117 |
117 |
lua_setfield(lua, -2, "getenv"); |
lua_setfield(lua, -2, "getenv"); |
|
118 |
|
lua_getfield(lua, -2, "remove"); |
|
119 |
|
lua_setfield(lua, -2, "remove"); |
| 118 |
120 |
lua_getfield(lua, -2, "time"); |
lua_getfield(lua, -2, "time"); |
| 119 |
121 |
lua_setfield(lua, -2, "time"); |
lua_setfield(lua, -2, "time"); |
| 120 |
122 |
lua_getfield(lua, -2, "tmpname"); |
lua_getfield(lua, -2, "tmpname"); |