Skip to content
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

Nesting of session folders #91

Closed
karagi4 opened this issue Apr 27, 2021 · 8 comments
Closed

Nesting of session folders #91

karagi4 opened this issue Apr 27, 2021 · 8 comments

Comments

@karagi4
Copy link

karagi4 commented Apr 27, 2021

Nesting of session folders, similar to that in SuperPutty.
Is it possible to implement such a thing, would it be very convenient?
Thanks!
image

@kingToolbox
Copy link
Owner

Currently, the design is very flat and simple. Each session has two attributes, one is label and the other is group, and when sessions are displayed, group will be displayed as a folder, and label will be displayed as a node, just as you can see in the Session pane.

If sessions need to be displayed as a nested structure, a third attribute must be introduced, and it will be more complicated whether a session is created or managed. For example, to change a session from the folder groupA to another folder groupB, now only need to modify its group from groupA to groupB. If it is nested, you probably need to drag and drop or cut and paste the session on the session tree.

The flat design is also more simple for a third-party to operate. Whether a plug-in needs to read and write sessions, or other clients/terminals need to import and export sessions, it will be very convenient.

In addition, there are many new features to be completed based on the current lable and group design. For example, in the design of future command bar and chat mode, You can send the command to the specified sessions as convenient as the @ function of twitter. Suppose you have three sessions:

Lable Group
Mickey
Tom TomAndJerry
Jerry TomAndJerry

Then the following command in command bar or chat mode will complete the following operations:

Command Description
@Mickey hello Send "hello" to the session Mickey
@TomAndJerry hello Send "hello" to the session Tom and Jerry
@Mickey,TomAndJerry hello Send "hello" to the session Mickey and Tom and Jerry

If it is a nested structure, it is difficult to easily implement such a feature. Moreover, sessions in the same group may belong to different tree branches, which brings inconvenience to management.

If a nested structure is necessary, I recommend naming the group name as a compound name, for example:

  • Folder1
    server1
  • Folder1 / Folder2 // Combine names using backslashs
    10.0.0.1
    10.0.0.2
  • Folder1, Folder3, Folder4 // Combine names using commas
    127.0.0.1
    127.0.0.2

@karagi4
Copy link
Author

karagi4 commented Apr 27, 2021

OK, this fits)) Can I do auto-hide and auto-opening of the session panel?

@kingToolbox
Copy link
Owner

Sorry, I am afraid auto-show/hide is not yet supported, but it may be possible after the docking framework is replaced by Qt-Advanced-Docking-System.

Many session opening methods have been provided so that the session pane is not necessary. You can completely close it and open sessions by typing the session name in the address bar(Alt+D) or command palette(Alt+O) to open it. If you need visualization, you can also open it through the tabbar menu below. The session pane only needs to be opened when you managing sessions.

image

@kingToolbox
Copy link
Owner

BTW, when you move the mouse to the edge of the left/right/bottom pane and the cursor is displayed as the picture image, you can open or hide the pane by double-clicking the edge. Although it is not auto-show/hide, it is still a litte convenient. Later, buttons will be provided on the status bar to more easily show or hide the panes.

@karagi4
Copy link
Author

karagi4 commented Apr 27, 2021

Thx!

@kingToolbox
Copy link
Owner

Anytime.

I checked the auto-hide development of Qt-Advanced-Docking-System and found Can you add Auto Hide functionality?, it looks like the feature is still under development. However, there are still a lot of new features of WindTerm to be completed. So it doesn't matter. I believe that the feature should already be available when the new docking framework is used. 😆

@kingToolbox
Copy link
Owner

Hello, the feature nesting session groups you wanted has been provided in the new prerelease WindTerm_2.2.0_Prerelease_2. You only need to separate the group names with dots to get nested groups. E.g. a.b.c.d.

Please download and check it, if you have any questions, please let me know, thank you.

@karagi4
Copy link
Author

karagi4 commented Oct 10, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants