mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #300] Preview text file #156
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vnghia on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/300
Specific Demand
Sometimes I want to have a way to view my configuration files (
yml) without downloading it into my machine first.Implement Suggestion
We've already had an edit panel inside dufs. I think we could just add an
eyeicon and when that button is clicked, we open the editor without allowing editing.Thank you for a wonderful software and I can send a PR if you think this make sense.
@sigoden commented on GitHub (Nov 27, 2023):
Putting configuration
config.yamlunder the dufs's serve path is dangerous. Strongly recommend users not to do this.@vnghia commented on GitHub (Nov 27, 2023):
Ah no, not the
config.yamlofdufs. I usedufsto browsing the content of several docker named volumes cause I don't want to go with the terminal. And of course, it is only accessible with a VPN.Edit: For more context, I use some kind of Infra-as-Code to generate pretty much every configuration files in my docker stack. Sometime, thing does not work out as expected and I want to view what is wrong with my configuration file on some docker named volumes. I know I can click on edit button and not edit it. But I guess a view only button seems more reassuring.
@sigoden commented on GitHub (Nov 28, 2023):
I misunderstood.
You can directly view the text file by clicking it's link.
@sigoden commented on GitHub (Nov 28, 2023):
@vnghia commented on GitHub (Nov 28, 2023):
I guess it is browser specified. Because when I tried to do the same thing with firefox, it will download that file instead of showing previewing. It does show a preview for
xmlandjsonbut notyaml@sigoden commented on GitHub (Nov 28, 2023):
#301 supports this feature.
@vnghia commented on GitHub (Nov 28, 2023):
Thank you so much for this awesome software 🚀