kingToolbox / kingToolbox/WindTerm

Import sessions from Superputty

Open
#533 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,
I managed to export all my sessions from Superputty. This is how I did it. Hope it can help.

- Export your sessions from Superputty (xml document),
- open the putty export in notepad++ and keep only the sessions,
- String:
``
- Pattern:
`.*SessionId="(.*)/(.*)" SessionName="(.*)" ImageKey="(.*)" Host="(.*)" Port="22" Proto="SSH" PuttySession="(.*)" Username="(.*)" ExtraArgs.*`
- Replace:
` \t{\n\t\t"session.group" : "$1",\n\t\t"session.label" : "$3",\n\t\t"session.port" : 22,\n\t\t"session.protocol" : "SSH",\n\t\t"session.target" : "$7@$5",\n\t\t"session.uuid" : "%UUID%",\n\t\t"window.mouseWheelScrollLines" : 1,\n\t\t"window.timestampFormat" : "HH:mm:ss"\n\t}`,
- Save the file (windterm-sessions.txt)
- Search and count the %UUID% (139 in my case)
- execute the Linux command (WSL in my case) to generate the UUID for each terminal session:
`for i in $(seq 1 139); do uuidgen -t >> windterm-uuid.txt; done`
- replace the %UUID% tag with the ones in the generated file:
`:~$ for ID in $(cat windterm-uuid.txt) ; do sed -i '0,/%UUID%/s//'$ID'/' windterm-sessions.txt ; done`
- Import the output in your user.sessions file. Restart Windterm

I am sure it could be improved but i did not stop to think much about it. I hope it can help someone. And for the dev, you're doing an awesome job really. I am using Windterm for a few days now (discoverd it on Korben). And if I use it day-to-day professionally, I will definitively want to "pay you a coffee" or something. I saw nothing about contribution, hope you'll put it somewhere.

Thank you for your work,
Lodhar

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the user.sessions format and the SuperPuTTY XML/session fields shown in the issue. Determine the expected scope of native importing and define completion around importing these sessions without the manual conversion, then verify the result in WindTerm after restart.

Written by the indexing model from the issue text.

Assessment

Domain
desktop-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.