Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Sep 26, 2024

Alongside adding another argument, uses the following code to do so:

if let Some(filename) = self.file.as_ref().and_then(|path| path.file_name().and_then(|filename| filename.to_str())) {
    if self.window_title_filename {
        window_title = Some(filename.to_string());
    }
}

The displayed filename is the base name of the file entered with the FILE argument.

Repository owner closed this by deleting the head repository Jan 6, 2025
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.

2 participants