Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make UI more informative and save to opened file #6

Open
TsukiGva2 opened this issue May 29, 2024 · 0 comments
Open

Make UI more informative and save to opened file #6

TsukiGva2 opened this issue May 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@TsukiGva2
Copy link
Collaborator

Tabs are just placeholders atm, changing "Label" property should work

Captura de tela_2024-05-29_14-56-28

Also, "Save File" button should keep saving to the same opened file name

at notebook.lua

Change the "label" property to include the file name somehow
(suggestion: create a "file" property in the TextEditor instance)

local tab_label = Gtk.Label({ visible = true, label = "Tab"})
	local close_button = Gtk.Button({
		visible = true,
		relief = Gtk.ReliefStyle.NONE,
		Gtk.Image({ visible = true, icon_name = "window-close-symbolic"})
	})
})

at text_editor.lua

suggested changes:

+    function TextEditor.new(content, file_name)
	local self = {}

	self.content = content or ""
+       self.file_name = file_name
...
@TsukiGva2 TsukiGva2 added bug Something isn't working enhancement New feature or request labels May 29, 2024
@TsukiGva2 TsukiGva2 self-assigned this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant