Cursor position in file panes after Ctrl+U

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

Cursor position in file panes after Ctrl+U

Post by *browny »

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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Cursor position in file panes after Ctrl+U

Post by *ghisler(Author) »

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
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Cursor position in file panes after Ctrl+U

Post by *browny »

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: 14740
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Cursor position in file panes after Ctrl+U

Post by *petermad »

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 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Cursor position in file panes after Ctrl+U

Post by *Horst.Epp »

I support to swap the cursor position and also View and Sort order
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Cursor position in file panes after Ctrl+U

Post by *browny »

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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Cursor position in file panes after Ctrl+U

Post by *ghisler(Author) »

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
https://www.ghisler.com
Post Reply