For the past few years we have got a lot of people asking us (the gedit team) why we did not provide a way to split a document and visualize it with several GtkTextViews. In this post I will point out the three problems that stop us from doing it.
- The cursor follows the insert mark from the TextBuffer.
- The selection is managed in relation to the insert mark and the selection-bound mark.
- The invisible tags are managed per document.
- Well right now the invisible tags are not a big problem as we don’t support code folding yet, but probably we will do it soon, although in relation to the inser and the selection it is pointless to split a document and use it from several views if you are editing a document and both views are following the cursor no matter if you are in one view or another.
- To manage the insert and selection-bound marks the GtkTextView should a per view-insert and view-selction-bound marks and follow only the ones set by it. The view should also modify the insert and selection-bound marks from the TextBuffer so this ones follow the ones from the view.
- In relation to the invisible tags, I am not totally sure how the best way would be for this. Probably doing something similar as with the marks.




ready for GNOME 3.0.

Thank you guys for the chatting and the beers by the way 