This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Kate: vertical split view + synchronised scrolling

Tags: kate kate kate
(comma "," separated)
User avatar
philipw
Registered Member
Posts
19
Karma
0
OS
On Kate, is there a way to synchronise the scroll bar when doing a vertical split for 2 documents?

So when you scroll in one side, the automatically scrolls on the other?

Last edited by philipw on Sat Jun 23, 2018 12:48 pm, edited 1 time in total.


linux newbie - looking for linux buddies (please teach me!)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
I don't think so. What would be the use-case for that? Is the idea of split-view not exactly to have two *different* views on the same document?


I'm working on the KDevelop IDE.
User avatar
philipw
Registered Member
Posts
19
Karma
0
OS
Language learning - source language on left, translation on right.


linux newbie - looking for linux buddies (please teach me!)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Aah, you want it for two different documents. Ok. If they are line-by-line the same, you may be able to achieve your goal by putting them into the same file (instead of using split view), e.g. by using block mode:

Copy the whole document on the right to the clipboard (Ctrl+A, Ctrl+C).
Go to the left document.
Select Edit -> Block Selection Mode.
Place the cursor in the first line as far to the right as you want the right text to be.
Paste the text (Ctrl+V).

Hope this works for your use case.

Best,
Sven


I'm working on the KDevelop IDE.
User avatar
philipw
Registered Member
Posts
19
Karma
0
OS
Although it's not the ideal case, it's an awesome workaround!

If anyone knows a way to actually sync scrolling, that would be great because I want to keep the documents separate.


linux newbie - looking for linux buddies (please teach me!)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
I'm 99% sure this feature does not exist, sorry. It should be relatively easy to implement, but it is questionable whether there are enough people who need it to make it worth.


I'm working on the KDevelop IDE.
Oliverity
Registered Member
Posts
3
Karma
0
scummos wrote:I don't think so. What would be the use-case for that?


Subtitles translation. Actually almost any translation at all. It is a common practice to return to already translated parts of the text to polish them, and it is handy to have the original text of the fragment at hand.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Oliverity wrote:
scummos wrote:I don't think so. What would be the use-case for that?


Subtitles translation. Actually almost any translation at all. It is a common practice to return to already translated parts of the text to polish them, and it is handy to have the original text of the fragment at hand.

Don't people typically use tools like QtLinguist for that?


I'm working on the KDevelop IDE.
aseques
Registered Member
Posts
63
Karma
0
I came here looking for exactly this feature too, can we fill a feature request somewhere so we could vote to get some tracking?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
You can file one on bugs.kde.org if you feel like it, though typically tiny-audience requests like this one without code attached tend to just get lost and auto-closed after a year.


I'm working on the KDevelop IDE.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Since you use Plasma, why not try Lokalize? Qt Linguist is of course another option.
Lokalize supports XLDIFF, Gettext, Linguist and OpenOffice files and has a Translation Memory.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
Kresimir
Registered Member
Posts
18
Karma
0
OS
I'd be a very nice feature to have, I second this.


Currently running Plasma 5.26.3 on Arch Linux (as of November 2022, the signature could be outdated by now).


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]