From 715c6fd32fadf8b14f4755cc31bacfb21c7f7dac Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 15 Sep 2023 13:36:27 -0700 Subject: source: show file being edited in window title bar --- commands.lua | 1 + source.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.lua b/commands.lua index 4e891ef..4a0d24a 100644 --- a/commands.lua +++ b/commands.lua @@ -130,6 +130,7 @@ end function navigate_to_file(s) move_candidate_to_front(s) source.switch_to_file(s..'.lua') + love.window.setTitle('lines.love - source - '..Editor_state.filename) reset_file_navigator() end diff --git a/source.lua b/source.lua index e8dd7cc..dafb1a7 100644 --- a/source.lua +++ b/source.lua @@ -74,7 +74,7 @@ function source.initialize() -- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708 - love.window.setTitle('lines.love - source') + love.window.setTitle('lines.love - source - '..Editor_state.filename) -- cgit 1.4.1-2-gfad0