~martanne/devel

document changing the displayed file of a window via lua v1 APPLIED

Florian Fischer: 1
 document changing the displayed file of a window via lua

 1 files changed, 2 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~martanne/devel/patches/55623/mbox | git am -3
Learn more about email & git

[PATCH] document changing the displayed file of a window via lua Export this patch

Since 352ee0761 it is possible to change the file displayed in a window
by changing the value of window.file to the a file path.
---
 vis-lua.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vis-lua.c b/vis-lua.c
index 676bcb4e..f3eebc4b 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -1807,6 +1807,8 @@ static const struct luaL_Reg registers_funcs[] = {
 */
/***
 * The file being displayed in this window.
 * Changing the value to a file path will replace the current file with a new
 * one for the specified path.
 * @tfield File file
 */
/***
-- 
2.47.0
Florian Fischer <florian.fischer@muhq.space> wrote: