Page 1 of 2

Preventing Move/Focus to New Item

Posted: 20 Dec 2014 08:54
by Enternal
I remember there was a tweak or setting somewhere but I just can't find it. I have 2 folders open and I'm sorting the files on the left into subfolders on the right as well as the root folder itself. The problem is, whenever I dropped item from the left to the right, the list will move and focus on that item. However, what I'm doing is sorting many files so it would be best if the list is locked at a location so that I can easily drop files into subfolders and into the root folder without having to drag the list all the way backup to the subfolders every time I drop a file that goes into the root folder.

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 13:18
by admin
Cannot repro or did not understand. You are talking about dragging between panes?

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 13:34
by aliteralmind
I think he's asking, when moving a file from one pane to another, how can the display (scrolling) in the destination pane *not* change, even if that means the just-dropped item is not viewable.

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 13:40
by admin
Ah, now I understand. Hmm, not sure how to handle it best. A tweak for copying into a list? Or just for cross-pane copying? Or just for drag and drop? A setting for panes in config?

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 13:44
by aliteralmind
How about scroll-lock for each tab? For preventing auto-scrolling, but not manual scrolling.

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 13:53
by aliteralmind
I mean to say, a right-click or key-command option, which must be manually turned on or off for each tab.

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 22:32
by Enternal
Thanks aliteralmind! That's exactly what I mean. I think it's best if it's a option in Customize List through the Tools menu. Although aliteralmind's idea seems very nice too since it allows it per tab rather than a global setting.

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 23:06
by aliteralmind
No problem! Just thrilled to be on the team!!!

Re: Preventing Move/Focus to New Item

Posted: 20 Dec 2014 23:16
by aliteralmind
aliteralmind wrote:I mean to say, a right-click or key-command option, which must be manually turned on or off for each tab.
Enternal wrote:I think it's best if it's a option in Customize List through the Tools menu.
If the "Tools > Customize List" sub-menu was a sub-menu when you right-click on the whitespace in a list, then both ideas would almost be one-and-the-same.

:whistle:

Re: Preventing Move/Focus to New Item

Posted: 21 Dec 2014 10:03
by admin
So you want to make "Select on paste" optional, correct?

There are many toolbar buttons with that context menu (Tools > Customize List), no need tp squeeze it into yet another menu.

Re: Preventing Move/Focus to New Item

Posted: 21 Dec 2014 10:49
by Enternal
Yes pretty much. That includes Drag and Drop I'm assuming?

Re: Preventing Move/Focus to New Item

Posted: 21 Dec 2014 10:50
by admin
Yes, all operations where files or folders are added to a visible list.

On second thoughts it would be enough to skip the scroll-into-view part of select-on-paste. This could be handled by a tweak.

Re: Preventing Move/Focus to New Item

Posted: 21 Dec 2014 22:04
by Enternal
admin wrote:Yes, all operations where files or folders are added to a visible list.

On second thoughts it would be enough to skip the scroll-into-view part of select-on-paste. This could be handled by a tweak.
Awesome! Umm... could I ask one more thing? Since it's simply preventing it from scroll-into-view, could this be someone integrated into a GUI option? The need to switch between the 2 frequently would make it less of a hassle than to Save, open up ini and find ListNoAutoScrollOnPaste, save, and restart XYplorer. And vice-versa when I'm back from working.

Re: Preventing Move/Focus to New Item

Posted: 22 Dec 2014 09:37
by admin
Yep, next version has something usable... (will be part of 14.80).

Code: Select all

    + Added tweak ListNoAutoScrollOnPaste to the tweak() function:
        tweak("ListNoAutoScrollOnPaste", ""); //toggle
        tweak("ListNoAutoScrollOnPaste", 1); //set
        tweak("ListNoAutoScrollOnPaste", 0); //unset
        echo tweak("ListNoAutoScrollOnPaste"); //get

Re: Preventing Move/Focus to New Item

Posted: 22 Dec 2014 10:20
by Enternal
Oh!! There's a tweak SC?! Anyway, awesome! Thanks! Now easy on and easy off without need to restart. :biggrin: