sshs icon indicating copy to clipboard operation
sshs copied to clipboard

FeatReq: Host/group folding

Open ghoffart opened this issue 3 years ago • 4 comments

My .ssh/config has a lot of entries like

GroupNameA-ServerName1 GroupNameA-ServerName2 GroupNameA-ServerName3 GroupNameB-ServerName1 GroupNameB-ServerName2 GroupNameB-ServerName3

It’d be cool to have an option for sshs like --grouping where all similar named "GroupNameX" are in collapsable folders like:

GroupNameA--Servername1 ……………………………-Servername2 ……………………………-Servername3 GroupNameB+-[3 entries]

So GroupNameA is uncollapsed here, and GroupNameB collapsed, hiding another 3 entries prefixed with GroupNameB.

See also #21 - may has a weak dependency.

ghoffart avatar Apr 13 '22 16:04 ghoffart

I like this feature! --grouping could require a pattern like --grouping "%s-%s" so everyone can use their specific format. What do you think?

quantumsheep avatar Apr 14 '22 07:04 quantumsheep

Even better, good suggestion and gives some more flexibility. I hope it doesn’t add too much complexity.

ghoffart avatar Apr 14 '22 07:04 ghoffart

Could it be the same with a nested configuration : ~/.ssh/config.d/ |-GroupName-1 |-GroupName-2 Each files "GroupName-x" contain a list of hosts ?

Ciriol avatar Feb 17 '23 22:02 Ciriol