feldroy / feldroy/pad

Auto-open single text file in directory

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When pad is launched in a directory containing exactly one text file, open that file automatically instead of showing an empty editor.

## Implementation notes

- On startup, check if the target directory contains exactly one text file
- Use existing logic for identifying text files (likely based on extension or mime type)
- If condition is met, open that file in the editor
- If directory has 0 or 2+ text files, use current behavior

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.