-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow viewer to specify the file to apply the highlight in #34
Comments
May want to prevent some files from being included. May want to exclude secret files, or files that people might troll on. What would happen if someone tried to mark a line in a image? Could this be pulled from .gitignore or .twichignore or some other file? |
Heard on |
From @parithon on stream today: "Should it only be able to target files in open tabs?" |
From @Spatacoli on stream today: re: bringing focus to the specific file used for the highlight command "wouldn't that be annoying? you are typing code and all of a sudden you are typing in another file?" I agree with this as it also could serve as a potential security risk if the file contains something sensitive such as API keys or passwords. Not automatically bringing the focus to the highlight in the other, not currently in focus files, will help prevent this from happening. |
You could have a general blacklist of files that we know commonly have secrets, then as suggested by @paulkling could optionally have an ignore file. Could also only have the highlight show up in the highlight tree view kind of like the notification suggested by @douglas-mason , maybe a different color if the file is not in the active text editor with a click-thru action that open the file... or even better, add to the context menu to open file so there is another layer protecting the streamer from accidentally opening. Another option if the API allows it, highlight the file in the explorer tree view. Burden will remain with the streamer to not just click and open the file but make sure its a file they want to open. |
This issue should reference existing issue #16 - Certain files should not be allowed for highlighting |
maybe .twichignore is too specific. Maybe more generic name like: .sensitiveignore, .secretsignore, .highlightignore something without a brand in it. |
I'm leaning toward only including files that aren't ignored in gitignore and are in the workspace folder. I believe that would encompass the majority of the scenarios. We could keep track of additional files separate from gitignore but that would require an otherwise useless file in your source or another file that would become stale over time. |
I agree, most things that have secrets in them you wouldn't be pushing to the repo, so I think using the gitignore would work fine. |
No description provided.
The text was updated successfully, but these errors were encountered: