question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhide files when discarding

See original GitHub issue

Is your feature request related to a problem? Please describe.

I recently discarded a hidden file (.env.backup) and later realized I needed it. I expected it to be in the trash, but when I looked in Finder, it was not shown. After a little panic and digging, I realized it was still in the trash, but just not visible. I was able to go into the terminal and recover it.

Describe the solution you’d like

I would like Github Desktop to rename hidden files when moving them to the trash, so they are not hidden. On a Unix system this would be as simple as removing the leading .. I’m not sure what the procedure would be for Windows.

One drawback would be if you “recovered” the file from your trash you would need to remember to rename it and make it hidden again for your application to behave properly.

Another drawback could be naming collisions, although I believe the trash will rename files that are named the same as an existing file in the trash.

Describe alternatives you’ve considered

Alternative could be to add documentation, so it is apparent to people how to recover hidden files.

Teachability, Documentation, Adoption, Migration Strategy

The UI / behavior of Github Desktop would not change from an end user perspective. We would simply update the scripts to rename hidden files prior to discarding them.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Jun 5, 2018

@vintagesucks cool, I just went to the classic way as I know that’s where the setting is hiding for all Windows going back to at least Win7.

1reaction
iAmWillShepherdcommented, May 31, 2018

Thanks for taking the time to open an issue! 🙇

I don’t think this is something we’d want to do mainly for the following reasons:

  1. One drawback would be if you “recovered” the file from your trash you would need to remember to rename it and make it hidden again for your application to behave properly.

  2. The OS provides a way around this by giving you the option to show hidden files.

Now, there may be some edge case I’ve not thought about. If so, please share and we can work together to come up with a solution that does not require users to remember to re-rename things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to permanently unhide files from disk? - Super User
You can make all hidden files visible for all your storage media by changing a setting in the file browser. Click Start >...
Read more >
Show hidden files - Microsoft Support
Here's how to display hidden files and folders. ... Under Advanced settings, select Show hidden files, folders, and drives, and then select OK....
Read more >
Windows 10 Show Hidden Files Not Working– How To Fix The ...
Type Folder and select Show hidden files and folders from the results. ... You can click Stop anytime to discard the whole process....
Read more >
How to Hide and Unhide Files and Folders in Windows 10 in ...
Windows 10 Hindi Video Tutorials for Beginners.In this video we will see the steps to Hide and Unhide Files and Folders in Windows...
Read more >
How to unhide folders without knowing their names
The for command excludes hidden files/folders by default. You have to alter the command to include them. From within a batch file:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found