Would be useful to have a feature to follow the editor's cursor, since in many cases (meetings, f.e.) there is a primary editor / note-taker. This feature can work like in Hangouts. It could automatically follow whoever is typing, but stops once the user clicks in the document (i.e. sets their own cursor somewhere, signifying they might want to type). The feature can be enabled again by taping some command (from the menu or toolbar, etc).
Can be useful for meeting like ESC for instance. Moving to NEW.
How is it supposed to work if multiple people are typing at the same time? It might not be a normal situation, but better not do crazy things even in that case.
This information about who is typing and then automatically start following him in loleaflet needs to be fetched from core, so needs some work there, I think. I see no sensible way of accomplishing this in online. But yeah, as Aron mentioned, if two people are typing at the same time, getting this information correctly is important. Maybe make only the user who is typing faster (use no. of characters typing per second etc.) the editor of the document and send this information to all clients. If they are typing such that their typing rates switches each second, insert some kind of constant there which precludes making the other person editor unless his typing rate is faster for greater than 'constant' seconds ? The other part of the bug (i.e follow the user-specific editor) can be done completely in loleaflet and is rather easy to do than the first part.
Yep - doing the "explicit mark this one as the session chair" first sounds great to me; that would already be a huge win, and seems much easier than the automatic switching. Wrt. the automatic switching - I think easiest would be that when there is a lag in typing [2-5 seconds maybe?], consider that a switch time, and then whoever starts typing first after that lag, he/she is the chair until the next lag :-)
(In reply to Jan Holesovsky from comment #4) > Wrt. the automatic switching - I think easiest would be that when there is a > lag in typing [2-5 seconds maybe?], consider that a switch time, and then > whoever starts typing first after that lag, he/she is the chair until the > next lag :-) And do you mean handling this in online.git only ? I am not sure about its reliability if we handle this in online.git only. For example, a user hitting an arrow key repeatedly to navigate into the document can become an editor unless we handle all of such cases in loolwsd to distinguish between printable and non-printable keys. But at the same time, taking it to core.git might be making the LOK API unnecessarily complex - I imagine some callbacks to notify the LOK clients and then some code to detect that user typed something.
Hi, I have added a patch for this feature at https://gerrit.libreoffice.org/#/c/38855/ it's a wip, but the basic functionality works as of now. There is no automatic switching of editors, but rather each user has to manually select the editor. This is how it currently works users selects - view > follow editor a list of all the users currently viewing the document pops up and then the user can select the other user(editor) he wants to follow.
(In reply to Aditya Dewan from comment #6) > Hi, > > I have added a patch for this feature at > https://gerrit.libreoffice.org/#/c/38855/ > it's a wip, but the basic functionality works as of now. There is no > automatic switching of editors, but rather each user has to manually select > the editor. > > This is how it currently works > users selects - view > follow editor > a list of all the users currently viewing the document pops up and then the > user can select the other user(editor) he wants to follow. I think better if we integrate this somehow with the userlist in the bottom toolbar rather than having a separate userlist to choose the 'follow editor' thing from. Can we do that please ?
Actually for now, for the automatic switching, lets do it in online.git only, as a first iteration. We don't want to create unnecessary callbacks and APIs in the core.git for this feature and complicate things there. Just monitor the key events there in wsd to make one the editor as mentioned in previous comments. We can iterate further here in future and see if anything else needs to be changed.
Aditya Dewan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/online/commit/?id=49032d1dab93c74ae57bd92c2a72d019a9340cf6 tdf#108341 Follow any user from the userlist
Aditya Dewan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/online/commit/?id=3a43f691167c6ad08ffc5670384ca3ab8cadcbe2 tdf#108341 automatic editor switch and follow added
Turning off follow-mode on user click was annoying, I have turned it off for now here - https://gerrit.libreoffice.org/gitweb?p=online.git;a=commit;h=a20afc1ceb398df934df4736771ffc2e91cd27a9 Closing this, lets file new bugs for additional reports. Thanks Aditya for working on this, this is a very useful feature.