simvx.ide.file_tabs

File tab management – open, save, close, quit with unsaved-change prompting.

Module Contents

Classes

FileTabs

Manages file lifecycle actions for the IDE.

Data

log

API

simvx.ide.file_tabs.log

‘getLogger(…)’

class simvx.ide.file_tabs.FileTabs(ide: simvx.ide.app.Root)[source]

Manages file lifecycle actions for the IDE.

All methods access IDE components through the ide reference passed at construction time, keeping this class decoupled from the node tree.

Initialization

property state[source]
property config[source]
on_file_new()[source]
on_file_open()[source]
open_file(path: str)[source]

Open a file in the editor panel.

on_open_folder()[source]
on_file_save()[source]
on_file_save_as()[source]
on_file_close()[source]
on_tab_close_via_button(path: str)[source]

Handle close-button click on any tab (not just the active one).

on_quit()[source]
get_unsaved_files() list[str][source]

Return list of paths with unsaved modifications.

on_file_deleted(path: str)[source]

Close tab if deleted file was open.

on_file_renamed(old_path: str, new_path: str)[source]

Update tab when file is renamed.