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

FeatReq: Host/group folding #22

Open
ghoffart opened this issue Apr 13, 2022 · 3 comments
Open

FeatReq: Host/group folding #22

ghoffart opened this issue Apr 13, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ghoffart
Copy link

ghoffart commented Apr 13, 2022

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.

@quantumsheep
Copy link
Owner

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 quantumsheep self-assigned this Apr 14, 2022
@quantumsheep quantumsheep added the enhancement New feature or request label Apr 14, 2022
@ghoffart
Copy link
Author

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

@Ciriol
Copy link

Ciriol commented Feb 17, 2023

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 ?

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

No branches or pull requests

3 participants