-
Notifications
You must be signed in to change notification settings - Fork 0
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
empty preview for txt-documents as option #29
Comments
I've gone back and forth between making plain text show or not in the preview pane. So I guess it is time to turn it into an option. |
When I opened this issue, I had myself also some doubts, but I was not able to explain why. Today I know the reason. The reason is because once you offer this option, then one should be consequent by offering the option for all other formats, because it would make sense also for css, js, conf and lua. At the moment for those formats there is this text in the preview: |
I just recognized that the problem |
That's too many options to keep track of. The difference with txt is sometimes emails are saved with A blank preview can make it look like the preview isn't working. (Is it supposed to be blank, or is it broken?) Instead of "Unable to process type", it should probably say "unsupported type". |
OK, I just changed the title of this issue. So, the title of this issue is again like it was at the beginning.
I don't understand so much. If the option would be realized, then there are two possibilities: Either the txt-document is shown in the preview or there is an empty preview with no scrollbars. And what has that to do now with "it might be worth showing them in the preview with basic formatting"? |
Remark |
The preview is not shown for text documents unless it is detected as a supported type. There's no option because the preview would be identical to what's already in the editor, and I don't want to go down the path where every file format has an option. You can force the preview to show by adding "Format: plain" to the beginning of the document. This can also be used to change the format, "Format: markdown". This isn't currently documented anywhere, but it's been part of the plugin for a while. (Before the mess with the |
You can change it again from preview.css to preview-headers.css, so that there is no mess any more. I didn't know to that time (where I made the suggestion to short the name) that the name preview-headers.css has to do something with emails. |
The mess wasn't the name change, but that it wasn't working properly. Now that it's working, better to leave it alone. |
Somewhat related to this issue. Just added an option to set the default file type for newly created documents. Haven't updated the PPA yet because not using Ubuntu anymore. Need to set up a container to run the commands. |
The preview of txt-documents shows nearly the same content like the content of the editor. One option is the auto-sidebar to hide the preview of txt-documents (mentioned in issue number 1). But maybe some users will not like that the vertical line between editor and preview appears and disappears while tab-browsing. So, another option could be to show a completely empty preview, with something like
empty_preview_for_txt=false
as default setting in preview.conf. The settingempty_preview_for_txt=true
would then show a completely empty preview. Personally, I think that I would use it sometimes as variation.The text was updated successfully, but these errors were encountered: