Cursor position in file panes after Ctrl+U

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
browny
Member
Member
Posts: 166
Joined: 2007-09-10, 13:19 UTC

Cursor position in file panes after Ctrl+U

Post by *browny » 2018-08-09, 21:04 UTC

Let's say that 3rd file in the left pane, and 8th in the right pane are under cursors.
Now switch sides with Ctrl+U.
It would be natural to see 8th file in the left and 3rd in the right would be under cursors.
However, it would still be 3rd file in the left, and 8th in the right (provided there were at least 8 files on the left initially).

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Cursor position in file panes after Ctrl+U

Post by *ghisler(Author) » 2018-08-10, 08:46 UTC

I don't see this as a bug, but it would be a nice addition. Therefore I'm moving this thread to suggestions.
Author of Total Commander
http://www.ghisler.com

browny
Member
Member
Posts: 166
Joined: 2007-09-10, 13:19 UTC

Re: Cursor position in file panes after Ctrl+U

Post by *browny » 2018-08-11, 12:27 UTC

ghisler(Author) wrote:
2018-08-10, 08:46 UTC
I don't see this as a bug
The current behaviour is as good as random selection of cursor position, hence it is a bug.

It was just noticed that sorting order was not swapped together with file lists; and that could be treated as a suggestion.
Far manager could be seen as an example of a more logical implementation of side swapping: pane attributes, including sorting order and cursor position, are "moved" together with file lists.

User avatar
petermad
Power Member
Power Member
Posts: 8071
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Cursor position in file panes after Ctrl+U

Post by *petermad » 2018-08-12, 15:25 UTC

I support that the cursor position should follow the file when panels are swapped - as browny says, the current behavior is as good as random selection.

But the suggestion of having the sort order follow the swap is more complex. If the view type in the two panels is not the same (for example Full View on one side and Custom Columns View on the other side) then the view type should also be swapped, otherwise there is no guarantee that the same sort order can be applied after the swap.

If this is going to be implied it should certainly be optional, maybe with a new shortcut key like Alt+Ctrl+U (Shift+Ctrl+U is already used). I often swap panels to apply the View and Sort order of the opposite panel to the content of my current panel - that would be broken if View and Sort Order was always swapped together with panel content.
Last edited by petermad on 2018-08-12, 15:42 UTC, edited 1 time in total.
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3135
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Cursor position in file panes after Ctrl+U

Post by *Horst.Epp » 2018-08-12, 15:32 UTC

I support to swap the cursor position and also View and Sort order
Windows 10 Home x64 October 2018 Update
Version 1809 (OS Build 17763.168)
TC 9.21a x64 and x86, Everything 1.4.1.921 (x64)

browny
Member
Member
Posts: 166
Joined: 2007-09-10, 13:19 UTC

Re: Cursor position in file panes after Ctrl+U

Post by *browny » 2018-08-12, 22:18 UTC

petermad wrote:
2018-08-12, 15:25 UTC
But the suggestion of having the sort order follow the swap is more complex.
There is no way to be sure without seeing source code, but if it is possible to reassign objects that are displayed in each panel, then the full swap with all attributes would be almost trivial.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Cursor position in file panes after Ctrl+U

Post by *ghisler(Author) » 2018-08-13, 10:55 UTC

I would add it now if it were so easy, but it's not - for example, you could have different filters (e.g. *.doc on one side and *.* on the other), different sort orders etc., so the file under the cursor may be something different at the new position.
Author of Total Commander
http://www.ghisler.com

Post Reply