Alternate behaviour for duplicating sessions

Implemented

Alternate behaviour for duplicating sessions

0 vote

avatar

When configuring sessions in Remote Desktop Manager, I typically need to add a bunch of servers with names that contain a number, where the numbers are a consecutive sequence, such as "IQ-PHAPP100", "IQ-PHAPP101", "IQ-PHAPP102", etc.. For each subsequent server, I use the "Duplicate" option to make another session definition similar to the last one added, and I update both the session's Name and Host to the next server's info. But, currently, the standard behaviour of Remote Desktop Manager is to put "- Copy" at the end of the original Name. I then have to delete "- Copy", and I have to manually increment the number in Name and Host separately.

E.g., if I have a session defined for "IQ-PHAPP100", then I'll be wanting to add another session for "IQ-PHAPP101", and I have to edit the "100" to "101" manually in the Name and Host separately, and manually remove "- Copy" from the session name. This is quite tedious, especially when adding a number of servers.

I would love if, when creating new sessions by duplicating an existing session that contains a number embedded in its Name, instead of adding "- Copy", it could seek out the number and increment it automatically. The Host should be automatically updated similarly.

That way, if I right-click on "IQ-PHAPP100" and select "Duplicate", it'll automatically populate the form with "IQ-PHAPP101" in both Name and Host.

If there are people who would not want this, then it could be done as a configurable option. But, given that with the current behaviour, both the Name and the Host need to be manually edited every time, I think having this as a default behaviour shouldn't cause problems; the worst case is that the fields need to be edited manually, which is already the case now. In the best case, this significantly streamlines the process of adding a sequence of sessions with similar names/hosts.

All Comments (10)

avatar

Hello,

That's an interesting idea, I see how useful it would be. I would go with adding an option to achieve something like this. We already have a way to configure the suffix (the "- Copy") of the duplicated connection in the options (see attached image), so it would make sense to have further options to customize the behavior when duplicating entries.

Thanks for the request, I've opened a ticket.

Regards,

Hubert Mireault

avatar

Awesome, thanks :-) One thing I'd add for factoring into the implementation is that sometimes the numbers have leading zeroes, and the width of the number is what needs to be preserved, at least in our case -- so, when duplicating a session whose Name/Host contains "009", the next one should contain "010", when duplicating "098", the next one should be "099", and when duplicating "099", the next one should be "100".

avatar

Hi Jonathan,

I found this feature request quite interesting so I figure why now implement it over the weekend.

First is the new settings, you will need to

  1. In File > Options > Types > Duplicate Entry

    1. Set Method to "Increment number suffix"

    2. Set the "Start at (number format)" to something (examples "001" or "-001")

      1. This is only used if the duplicated session name has no numbers in the name

    3. Enable "Synchronize name & host name"

Now when you duplicate a session the new name will follow this logic.

  1. Find the last number of the name, may not be the last part of the name, examples (below)

    1. No such numbers? Then append the "Start at (number format)" & done

  2. Increment the number to the next available 01 -> 02, but if 02 already exists go to the next

  3. Synchronize the host name, if enabled

Results examples:

IQ-PH01APP => IQ-PH03APP
IQ-PH01APP002 => IQ-PH01APP003
IQ-PH05APP => IQ-PH06APP
IQ-PHXYAPP => IQ-PHXYAPP001
IQ-PH99APP => IQ-PH100APP

So the code is done but it still needs to be approved & merge into the main build.

Let me know what you think.

Best regards,

Stéfane Lavergne

avatar

Stefane, get a life :)

David Hervieux

avatar

That sounds perfect :-) Awesome!

As an aside, this forum uses an icon for "Log In" that my brain interprets as "Exit". It feels kind of weird :-P