Giter VIP home page Giter VIP logo

Comments (10)

xiota avatar xiota commented on June 26, 2024

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.

ralf3u avatar ralf3u commented on June 26, 2024

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.

ralf3u avatar ralf3u commented on June 26, 2024

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.

xiota avatar xiota commented on June 26, 2024

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.

ralf3u avatar ralf3u commented on June 26, 2024

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.

ralf3u avatar ralf3u commented on June 26, 2024

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.

xiota avatar xiota commented on June 26, 2024

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.

ralf3u avatar ralf3u commented on June 26, 2024

@xiota

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.

xiota avatar xiota commented on June 26, 2024

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.

xiota avatar xiota commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.