Skip to content

Fall back to project folder when no file is open#4

Open
espen wants to merge 1 commit intoKELiON:masterfrom
espen:folderfix
Open

Fall back to project folder when no file is open#4
espen wants to merge 1 commit intoKELiON:masterfrom
espen:folderfix

Conversation

@espen
Copy link

@espen espen commented Mar 17, 2026

The folder fallback was inside the AttributeError handler, so it only triggered when there was no active view at all. When a view existed but had no file (e.g. untitled tab), file_name() returned None instead of raising, skipping the fallback entirely.

Fixes #3

The folder fallback was inside the AttributeError handler, so it
only triggered when there was no active view at all. When a view
existed but had no file (e.g. untitled tab), file_name() returned
None instead of raising, skipping the fallback entirely.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get current path from project

1 participant