careteditor / issues

Caret issues
https://caret.io
326 stars 12 forks source link

Allow wide content to not wrap #883

Open dxps opened 5 years ago

dxps commented 5 years ago

Hi!

Can we consider the option to allow a wide content not to be wrapped? Take for example a docker ps output that you may want to have it included, but in order to have it readable without having to maximize the editor window, lines should not be wrapped.

See a concrete example from the preview of markdown files feature of IntelliJ IDEA. See the horizontal scroll that exists in the lower part. image

What do you think?

Thanks.

astoilkov commented 5 years ago

Hi Marius,

Are you talking about horizontally scrolling the entire content or just code blocks?

dxps commented 5 years ago

Hi Antonio,

Ideally, just the code block. :smile_cat:

borekb commented 5 years ago

BTW, tables are another use case for this.

astoilkov commented 5 years ago

Are you both talking about horizontal scrolling inside the editor (not inside the preview)?

dxps commented 5 years ago

Yes, that would be my wish.

borekb commented 5 years ago

Yes, in the editor.

Screenshot 2019-09-10 at 18 36 20

For tables specifically, there's this issue: #791 and possibly others. I just wanted to mention it in this thread because they might be related.

astoilkov commented 5 years ago

It makes a lot of sense for both code blocks and tables. This is quite an interesting technological and UX challenge. We have some ideas for both as we definitely recognize this as an issue which needs improvement.