retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

Editing while preview #185

Closed moshpirit closed 8 years ago

moshpirit commented 8 years ago

Allowing the user editing the file as is already shown the preview would be amazing.

Like: **something** and when I press the last * the word "something" gets automatically bold.

mitya57 commented 8 years ago

Sorry, I don't understand what exactly you mean. It does already get bold (that's a feature of the highlighter), doesn't it?

moshpirit commented 8 years ago

Yes, sorry I explained it really bad.

Right now we have 2 sides: one for typing and another for viewing it. What I mean is having them both mixed in one: the preview side but we could edit the content making it cleaner and simpler.

E.g.: For writing "This is M↓" we would see:

captura de pantalla_2016-01-23_13-37-02 captura de pantalla_2016-01-23_13-37-50 captura de pantalla_2016-01-23_13-38-43

We should have a button to see the "code" highlighting the current line.

mitya57 commented 8 years ago

Right now we have 2 sides: one for typing and another for viewing it. What I mean is having them both mixed in one: the preview side but we could edit the content making it cleaner and simpler.

Sorry, I'm not going to turn ReText into a WYSIWYG. The very idea of ReText is that the source is always visible. (And, also, the behavior you are suggested will be unimplementable in ReText because it doesn't really know anything about Markdown and leaves the actual processing to a third-party library).

I think the live preview suits needs of most people who want to edit text and view the result simultaneously.

moshpirit commented 8 years ago

Oh, OK then, thanks anyway for this great program and for the explanation :)

dessalines commented 6 years ago

Sorry, I'm not going to turn ReText into a WYSIWYG. The very idea of ReText is that the source is always visible.

In all WYSIWYG editors (marktext, typora), there is a source code mode where you can see the source really easily. This is pretty much the one feature preventing me from switching to retext. I think this is possible to do using GTK contentEditable.

mitya57 commented 6 years ago

In all WYSIWYG editors (marktext, typora)

ReText is not a WYSIWYG editor :)

I think this is possible to do using GTK contentEditable.

…and it is not using GTK.