Bug 146733 - Synchronize folders in split view
Summary: Synchronize folders in split view
Status: RESOLVED INTENTIONAL
Alias: None
Product: dolphin
Classification: Applications
Component: split view (show other bugs)
Version: 16.12.2
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-13 12:25 UTC by Peter Penz
Modified: 2020-10-24 20:20 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
sync url from inactive view to active view (3.35 KB, patch)
2020-10-24 15:03 UTC, Mark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Penz 2007-06-13 12:25:26 UTC
Version:           0.9.0 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Reported from Stefan Adolf:
"Synchronising Folder Views
When I'm using Dolphin's split-view (NC-like), I'd like to "sync" the views. Means: I'm viewing my /home/user/ folder on the right pane and my /root/site/a/b/c/d/e/ folder on the left pane. If I want to copy files quickly it would be neat if I only had to press STRG and Arrow Right or sth. so the right pane displays the same path as the left one."
Comment 1 simon 2008-10-28 22:16:52 UTC
*bump*
Comment 2 Dotan Cohen 2008-12-06 00:23:12 UTC
Are you requesting simply that the keyboard shortcut make both panes display root/site/a/b/c/d/e/? What is the relevance of the fact that you want to copy files (as you posted)?

What is the STRG key? What is "sth" (is that 1337 for "something")?
Comment 3 simon 2008-12-06 13:12:06 UTC
STRG is the CTRL key on german keyboards, sth means something and a shortcut would be enough imo.
i also often need to sync the two views (shortcut would do) in order to restart navigating in the tree or copying stuff into subdirectories.

also showing a ".." entry as the first entry in the folder listing would be very convenient to navigate into the parent directory
Comment 4 Dotan Cohen 2008-12-06 14:14:16 UTC
> STRG is the CTRL key on german keyboards, sth means something

Thanks, I never had the opportunity to sit at a German keyboard.

> and a shortcut would be enough imo. i also often need
> to sync the two views (shortcut would do) in order to
> restart navigating in the tree or copying stuff into
> subdirectories.

What do you mean by "sync the two views"? Sync means to copy files from one location to another so that both locations contain the same files. I think that you mean to simply have the same path shown for each pane. Please either confirm that is what you what to do, or try to reword without the word "sync". Thanks.

> also showing a ".." entry as the first entry in the
> folder listing would be very convenient to navigate
> into the parent directory 

That bug is here:
http://bugs.kde.org/show_bug.cgi?id=160650
Comment 5 simon 2008-12-06 14:23:33 UTC
yes, it's just about showing the same path in both panes.
Comment 6 Mark 2010-09-02 01:46:54 UTC
I don't really think this would be handy. And i doubt many people will use it if it's possible.

Besides, copy/paste the url isn't that hard.. and navigating to it is easy as well in dolphin.
Comment 7 Peter Paulsen 2010-09-02 06:33:52 UTC
Would be very handy.

You can achieve the same effect by closing and reopening the split view (which I use often) but that of course loses the history of the closed pane. And yes, I can copy & paste the address but that requires quite some action: switch to editable address bar in pane 1, select address, switch to editable address bar in pane 2, paste address, press enter. Would be more convenient to simply click a "synchronize view" button (@Comment #4: not the same as sync folders!).
Comment 8 Dotan Cohen 2010-09-02 20:06:29 UTC
I agree that this would be handy. As I use split view more and more, I see how useful this would be.
Comment 9 Mark 2010-09-02 20:27:38 UTC
Oke, lets assume "synchronize view" is something desperately needed in dolhin

Is this the way it should work:
- select "some" view
- click synchronize view
- other view gets the URL history from the clicked view

And that's it?

Since if it's that "simple" then it might just be possible (in code) to simply copy the selected view object and replace the other view by the selected view object. Or is that a bit nasty?

As for the key shortcut. I would suggest "Control + S".

Any thought on this (Peter, David)?
Comment 10 Janet 2010-09-04 06:23:30 UTC
@Comment #9: No, not copy the URL history of the other view as this would lose the history of the second view. Each view should keep its own history! Just copy the current URL address of the other view and keep the own history! When I would want to lose the history of the second view I could do as Comment #7 says and close the second view and reopen a new split view as at the beginning the two view addresses are always "in sync".
Comment 11 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:19:36 UTC
Resetting assignee to default as per bug #305719
Comment 12 Jaime Torres 2013-05-22 11:25:20 UTC
Another possible solution to this problem could be:
Add a menu entry in the Go menu with the list of current urls in all the tabs & views. The choosen one will be set as the current url in the currently selected tab & view.
Comment 13 soredake 2020-10-24 12:11:05 UTC
Any progress on this?
Comment 14 Mark 2020-10-24 15:01:17 UTC
Ha, well over 10 years later after my last comment in this thread.
Boy, do i know a _lot_ more about code now these days then i did back then :)

Anyhow.

What is asked is quite easy.
You basically just want your current url of your current - in focus - view to be opened on the other view. And that's basically it.

I still don't think this feature is useful. Perhaps to some use cases it is.
But then again, i'm hardly ever using split view so my opinion might be biased towards not having this.

But.. as i kinda thought this feature to be peanuts to implement... I did :)
But just as a patch for you to apply. I'm not going to submit it for inclusion in Dolphin's codebase. I'm not against it, but i just don't really care for the feature. If you do, feel more then free to take the patch, improve it and submit it for review and inclusion. Note that i'm providing it as-is. If you go to submit it then you do need to carefully consider the shortcut for this, the icon and the wording.

I'll attach the patch in my next post right after this.
And it's posted here: http://p.sc2.nl/CNXWA

I think it took about 30 minutes to write this patch :)
Comment 15 Mark 2020-10-24 15:03:36 UTC
Created attachment 132685 [details]
sync url from inactive view to active view

Syncs the url from the inactive view to the active view. Basically the same like copy/pasting it manually in the location bar. The patch registers "Shift + S" as shortcut. Have fun :)
Comment 16 Nate Graham 2020-10-24 15:58:48 UTC
I agree with Mark; I don't think being able to quickly make the second pane of the split view match the first one is a very useful feature. If the underlying workflow is to verify that two folders have been synchronized, then explicitly supporting that directly makes a lot more sense to me.

That said, now that there's a patch, anyone can feel free to compile Dolphin themselves with it to see if this meets their needs, if they have such needs :)
Comment 17 Erik Quaeghebeur 2020-10-24 19:30:20 UTC
(In reply to Nate Graham from comment #16)
> I agree with Mark; I don't think being able to quickly make the second pane
> of the split view match the first one is a very useful feature. […]
There are, as this bug demonstrates, people that find it very useful, so your argument is invalid. However, perhaps they aren't the target audience of Dolphin, which can be a valid argument.

Krusader has had this feature since a long time and I use it very regularly; it is surprising how often it is convenient. Together, Dolphin and Krusader have almost all the features I need and for me it is a pity that they're two different applications.
Comment 18 Mark 2020-10-24 20:20:47 UTC
(In reply to Erik Quaeghebeur from comment #17)
> (In reply to Nate Graham from comment #16)
> > I agree with Mark; I don't think being able to quickly make the second pane
> > of the split view match the first one is a very useful feature. […]
> There are, as this bug demonstrates, people that find it very useful, so
> your argument is invalid. However, perhaps they aren't the target audience
> of Dolphin, which can be a valid argument.
> 
> Krusader has had this feature since a long time and I use it very regularly;
> it is surprising how often it is convenient. Together, Dolphin and Krusader
> have almost all the features I need and for me it is a pity that they're two
> different applications.

This bug has been here for 13 years.
There are 9 people in the mail for each update (just 9!).
There are no duplicates.
And literally just a handful of comments.

This feature, even if you consider it important, is a micro feature for a very verry verry small percentage of users.

How it works in the FOSS world is that you put in the time to get the stuff in you deem important. Usually that means you need to make the solution too. In this case i already did so (though crude) so you have a starting point.

If you care for the feature then you need to put in the effort of getting it patched in. I don't need it nor care for it so i won't be doing that.

This is a nice starting point to start contributing patches through the proper channel: https://community.kde.org/Infrastructure/GitLab or https://community.kde.org/Get_Involved/development for the more broad information of getting involved.

Note that this is by no means a way for me to redirect you to the review process in hopes that you either give up or that it gets rejected in gitlab when under review. Dolphin also has a feature to copy (and another for moving) the selected files from your active view to your inactive view with a single key combination. A feature i discovered because i made a patch for this feature. That is a feature that's probably also used by a super small percentage of people. So i'm guessing that if you go through the process of getting it reviewed, you have a good change of getting it accepted!