jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Autowrap and old questions


John E. Davis wrote:
V01D <phreakuencies@xxxxxxxxx> wrote:

is jed capable of wrapping text without actually touching the file (ie: inserting a \n)? Most editors (vi for example) show the text that gets past the last column below the current line, but this doesn't modify the text, it is just a visualization.


Currently, jed's display routines do not support the wrapping of
lines.  For the next development series, I plan to revisit the display
routines and add support for multiple (overlapping) windows.  That
will provide a good opportunity to consider wrapping support.


Also, (independently of having this kind of autowrap, or the autowrap that jed seems to have) is there a way to make the last column number (where text should wrap) be detected automatically? It is kinda annoying


I do not know what you mean.  Where "text should wrap" is context
sensitive.  For example, as I recall, code written for FORTRAN 77
should wrap at column 72.

What I meant was that I thought it would be possible to make jed wrap a line when the last column is reached. It seems that the concept of "last column" actually is a statically defined number. It would be great if I were writing in text mode, c++ mode, perl mode, and have the line wrap when I type after the last column visible on my terminal. Now, because on x terminals I can resize the window, this "last column number" should be updated every time I resize the window. This updated value can be retrieved (on the shell, at least) by reading $COLUMNS.

to have to specify a number manually, which will be invalidated if I resize the terminal (something like gettin the env var "$COLUMNS").


The size of the terminal is given by the SCREEN_WIDTH and
SCREEN_HEIGHT variables.

In my sheel it works with $ROWS and $COLUMNS, $SCREEN_* don't seem to work. But I don't know if you were referring to jed variables or shell variables.


Thanks,
--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


Matt.


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]