-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import&export of hosts and port forwards using Gson #1089
base: main
Are you sure you want to change the base?
Conversation
Any news? |
+1 |
PLEASE somebody review this! This is such a useful feature. |
Thanks for this enhancement. But I found some other potential issues with this change. I have some scripts in postLogin. I can export it to clipboard. But import always fails. Here is the log for example I set "postLogin":"ssh test" 08-21 11:02:03.311 12318 12318 E MessageQueue-JNI: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unexpected value at line 1 column 117 path $[0].host.postLogin |
Hello! Is there anything that I as humble user can do to support this update getting implemented? |
Fixes #527 and #922.
The hosts and port forwards are exported to the clipboard in json format. This does not include any keys.
The class
HostExport
is a crude workaround. Currently there is no Object-Oriented data structure that maps port forwards to hosts. If someone is willing to refactor the existing code, this class could be removed. This workaround was the simplest way I found to serialize all hosts with their respective port forwards.