keep file selected after em_command

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

keep file selected after em_command

Post by *nsp »

I have em_command(s) which change file size and date, i'm using date sorting. If i select my files and click on a button launching em_xxx, the file are processed but not selected anymore.
How to keep file selected after processing, I'm looking for an option/toggle working with all my command without changing them.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: keep file selected after em_command

Post by *ghisler(Author) »

You can use a combination of commands:
cm_saveselection,em_command,cm_restoreselection
Author of Total Commander
https://www.ghisler.com
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: keep file selected after em_command

Post by *nsp »

@ghisler
ghisler(Author) wrote: 2024-12-04, 11:45 UTC You can use a combination of commands:
cm_saveselection,em_command,cm_restoreselection
Yes i know about save/restore commands but i do not want to alter menu and bars to have save the selection before any click.
I could have a cm_restoreselection but i miss an automatic save selection flag.
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: keep file selected after em_command

Post by *sa16 »

nsp wrote:i do not want to alter menu and bars
Rename the existing command to em_command_old. Create a new one with the same name (em_command), which consists of the combination:
cm_saveselection,em_command_old,cm_restoreselection.
Post Reply