Rudolf Adamkovič <[email protected]> writes:

> Maybe we could do this in some other way?
>
> If the window is 80 characters wide, we show only the first 80
> characters of the table.  When the cursor comes close to the edge, we
> "scroll" the table horizontally within the 80-character area.
>
> We could perhaps even use the existing mechanism behind <N>?

It is another option yes. But I feel that anything we try here will be
fragile once the user tries to toggle truncate-lines value or change the
window widths. And what if there are multiple windows showing the same
Org buffer - all with different widths?

A more practical approach, following the spirit of your idea, could be
introducing folding for tables. We can fold table cells similar to how
it is done in Pandas and the users can then use TAB to switch folding
states of a table. This way, folded tables will generally fit the window
width (or maybe fill-column). May still be problematic on extremely
narrow windows with line folding though.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to