From 2f8816e47e0797083a667d5cf7e778940dd1f789 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 20 Jun 2024 22:50:03 +0200 Subject: checkpoint --- config/essentials/vis/title.lua | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'config/essentials/vis/title.lua') diff --git a/config/essentials/vis/title.lua b/config/essentials/vis/title.lua index c87088b..d743b63 100644 --- a/config/essentials/vis/title.lua +++ b/config/essentials/vis/title.lua @@ -1,22 +1,16 @@ require('vis') local function set_title(title) - -- print() cannot be used here as it will mess up vis - vis:command(string.format(":!printf '\\033]2;vis %s\\007'", title)) + -- print() cannot be used here as it will mess up vis + vis:command(string.format(":!printf '\\033]2;vis %s\\007'", title)) end -vis.events.subscribe(vis.events.INIT, function() - print('\27[22;2t') -end) +vis.events.subscribe(vis.events.INIT, function() print('\27[22;2t') end) -vis.events.subscribe(vis.events.WIN_OPEN, function(win) - set_title(win.file.name or '[No Name]') -end) +vis.events.subscribe(vis.events.WIN_OPEN, + function(win) set_title(win.file.name or '[No Name]') end) -vis.events.subscribe(vis.events.FILE_SAVE_POST, function(file) - set_title(file.name) -end) +vis.events.subscribe(vis.events.FILE_SAVE_POST, + function(file) set_title(file.name) end) -vis.events.subscribe(vis.events.QUIT, function() - print('\27[23;2t') -end) +vis.events.subscribe(vis.events.QUIT, function() print('\27[23;2t') end) -- cgit v1.2.3