#685 Block reflow of text

closed-rejected
nobody
General (289)
5
2012-09-11
2011-04-26
vilhelmp
No

Ubuntu 10.10 64bit
Geany 0.20 "Disra"

When using "Line reflow" with Ctrl+J it breaks words that it shouldn't, especially irritating when writing LaTex documents.

For example, first it reflows
H$_{2}^{18}$O
to,
H$_{2}^{18}$
O

and when adding text and reflowing again, when it jumps back into the same line it becomes H$_{2}^{18}$ O, i.e. adding a space between $ and O which is visible in the compiled document, which has to be manually corrected (the same with e.g. T=170\,K to T=170\, K)

Magnus

Discussion

  • Lex Trotman
    Lex Trotman
    2012-09-11

    • status: open --> closed-rejected
     
  • Lex Trotman
    Lex Trotman
    2012-09-11

    The scintilla bug was rejected. Reflow is mostly for text where it breaks at word boundaries (space or tab) but also breaks at style boundaries to make some allowance for code. Reflow should not be used on anything whitespace sensitive.

     
  • vilhelmp
    vilhelmp
    2012-09-11

    OK, too bad, but big thanks for the help. I guess I have to start looking at alternatives, but Geany has A LOT of nice features and it is relatively light-weight. In addition it is nice to have just one code editor for Python and Latex (which are the ones I use), instead of separate programs.

     
  • I think this may be an issue the GeanyLatex plugin could address, either by providing an extra keybinding for "latex reflow" or maybe it could even modify the behavior of the current feature for LaTeX files. @frlan, do you think this might be something you'd like to see/would work on?

     
  • Matthew Brush
    Matthew Brush
    2012-09-12

    I would've thought one of the "wordchars" (filetypes.latex) or "whitespace_chars" (filetypes.common) settings would account for this but I never used this feature.