wiki_link raises TypeError in an unsaved tab
Claude reports: running wiki_link in a tab that has not been saved raises a TypeError in the console and does nothing.
run in wikilink.py starts with directory = os.path.split(self.view.file_name())[0]. For an untitled tab file_name() is None.
Seen on Sublime Text 4 (build 4215), Python 3.14 host, Windows: installed from Package Control (added the repository). In a new untitled tab containing HomePage with the cursor inside the word, running wiki_link gives:
File ".../wikilink.py", line 6, in run
directory = os.path.split(self.view.file_name())[0]
TypeError: expected str, bytes or os.PathLike object, not NoneType
The same command in a saved .wiki file works (it created the new page tab). Checking for None first and showing a status message, or using the window's first folder, would avoid the exception.
Claude reports: closing this. The package looks unmaintained, and I should not have filed an issue on it. Sorry for the noise.