Closed rageandqq closed 6 years ago
Fine with the proposed copy, except maybe the first one should be "Create session" to keep the keyword of session consistent.
Regarding Disabling - I'm sure there's a way. Will look into it.
Also it's worth noting that some people may not want the Tandem options in the menu bar. If every plugin they have does something like this, it could get quite messy. I will also look into a way of setting this via a setting. Not sure if it will be dynamically possible though (based on a preference value), since the files are statically there and loaded on editor load. But we can see.
Sounds good 👍 Yeah, I wasn't sure what we should call a "tandem session". I think with teletype they're referred to as portals.
Added the following options to both the command palette (the main workflow in sublime, cmd+shift+p) and as a menu bar at the top of the screen:
We can decide on a consistent naming (e.g. Session instead of host) later, I just wanted to have a non console way of setting up Tandem, since most Sublime plugins can and do take advantage of the GUI available.
How the menu bar looks:
How the command palette looks:
Start as Host and Stop connection work as expected with no user input - outputs are sent through message dialogs.
Connecting to a host looks like this:
And the string argument is parsed, e.g.
localhost 12345
becomes host: localhost, ip: 12345This still allows the commands to be used and invoked from the console - and in this case, we won't have GUI outputs but rather print messages to the console, hence the use of the
show_gui
flags to allow for the two different flows.