Comments (10)
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.
from geany-preview.
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:
"Unable to process type: ..."
The text could disturb a user in a long-term. So, what about the idea to offer more options, like in auto-sidebar, where the user can add the formats? Personally something like that would be my settings:
empty_preview_txt=true
empty_preview_js=true
empty_preview_css=true
empty_preview_lua=true
empty_preview_conf=true
from geany-preview.
I just recognized that the problem "Unable to process type: ..."
mentioned in my last comment could be solved easily by css: If the values color und the background have the same color, then the text is invisble. But it is not a clean solution. And for long txt-documents, even when the preview is then invisible, it can be that scrollbars appears on the right and on the bottom, what looks quite strange.
from geany-preview.
That's too many options to keep track of. The difference with txt is sometimes emails are saved with txt
extension. In that case, it might be worth showing them in the preview with basic formatting. (But not if people will expect every single format to have an on/off option).
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".
from geany-preview.
That's too many options to keep track of.
OK, I just changed the title of this issue. So, the title of this issue is again like it was at the beginning.
The difference with txt is sometimes emails are saved with txt extension. In that case, it might be worth showing them in the preview with basic formatting.
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"?
from geany-preview.
Remark
In the new version of Geany Preview there is now an empty preview for txt-documents. And for long txt-documents there are no scrollbars in the preview, as it should be. But I don't see a possibility in preview.conf to turn this feature off.
from geany-preview.
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 preview-headers.css
/preview.css
file.)
from geany-preview.
Before the mess with the preview-headers.css/preview.css file.
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.
from geany-preview.
The mess wasn't the name change, but that it wasn't working properly. Now that it's working, better to leave it alone.
from geany-preview.
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.
from geany-preview.
Related Issues (20)
- preview should not execute html-code of txt-documents HOT 9
- the content of preview might change its position when tab-browsing in the editor with snippet false HOT 4
- a blinking vertical line in the Preview only for visible text as option for html HOT 5
- no re-rendering of a visited document when tab-browsing HOT 2
- pre-rendering of all opened documents after a restart of Geany as option
- txt-document: a colon plus space in the very first line after the first expression shows different background color HOT 3
- XHTML-document does not appear in the preview HOT 3
- the tab-title "Preview" disappears if all other tabs of the sidebar are disabled HOT 4
- a name of a shortcut is too long HOT 4
- Gecko for rendering webpages as option HOT 1
- add the shortcut "Toggle sidebar" to the plugin HOT 7
- add the shortcut "Toggle editor" to the plugin HOT 12
- add crisscross feature to the shortcut "Toggle focus between the editor and preview" HOT 1
- add the shortcut "Toggle between editor and sidebar" to the plugin HOT 18
- HTML: the content of the preview is shaking one time when typing in the editor HOT 1
- Fountain-text in the Preview all in white as default
- when zooming: don't show scrollbars when not needed HOT 1
- no reset of the zoom and no change of the position when editing HOT 1
- add zoom shortcuts to the Preview HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geany-preview.