Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

BUG: Cannot see dotfiles #9

Open
dbarenholz opened this issue Aug 14, 2022 · 1 comment
Open

BUG: Cannot see dotfiles #9

dbarenholz opened this issue Aug 14, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@dbarenholz
Copy link
Owner

Thanks to Vinadon#0410: it is currently impossible to edit dotfiles.

Expected: typing gitignore in the extensions field shows the .gitignore file that is present.

Actual: The file is not shown.

@dbarenholz dbarenholz added bug Something isn't working help wanted Extra attention is needed labels Aug 14, 2022
@holroy
Copy link

holroy commented Nov 17, 2022

Usually that could be a little tricky depending on how you read your directory, since these files don't have a main file name, just the extension, so to speak.

I've not looked at your code, but adding support for dotfiles, usually means some conceptual changes, as you would need to allow specific file patterns to be scanned for. One way of handling this would be to add a specific option in your settings which would trigger a flag, so that when you're scanning the directories you also scan for those starting with a leading dot, and allow that into the file name pattern otherwise used.

Some care need to be taken related to directories vs files, which I'm assuming you're already handling somehow, and some care need to be taken since dotfiles usually are text files, but they could really be binary files as well, so you do not want to open them with any kind of auto-save enabled, as that might risk destroying the file entirely.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants