File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,11 @@ func main() {
95
95
96
96
func choose (parent , trees []* sshw.Node ) * sshw.Node {
97
97
prompt := promptui.Select {
98
- Label : "select host" ,
99
- Items : trees ,
100
- Templates : templates ,
101
- Size : 20 ,
98
+ Label : "select host" ,
99
+ Items : trees ,
100
+ Templates : templates ,
101
+ Size : 20 ,
102
+ HideSelected : true ,
102
103
Searcher : func (input string , index int ) bool {
103
104
node := trees [index ]
104
105
content := fmt .Sprintf ("%s %s %s" , node .Name , node .User , node .Host )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ require (
6
6
github.com/atrox/homedir v1.0.0
7
7
github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e
8
8
github.com/magefile/mage v1.8.0
9
- github.com/manifoldco/promptui v0.3.2
9
+ github.com/manifoldco/promptui v0.3.3-0.20190221150523-ae9f05e7444d
10
10
github.com/nicksnyder/go-i18n v1.10.0 // indirect
11
11
github.com/pelletier/go-buffruneio v0.2.0 // indirect
12
12
github.com/pelletier/go-toml v1.2.0 // indirect
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ github.com/magefile/mage v1.8.0 h1:mzL+xIopvPURVBwHG9A50JcjBO+xV3b5iZ7khFRI+5E=
37
37
github.com/magefile/mage v1.8.0 /go.mod h1:IUDi13rsHje59lecXokTfGX0QIzO45uVPlXnJYsXepA =
38
38
github.com/manifoldco/promptui v0.3.2 h1:rir7oByTERac6jhpHUPErHuopoRDvO3jxS+FdadEns8 =
39
39
github.com/manifoldco/promptui v0.3.2 /go.mod h1:8JU+igZ+eeiiRku4T5BjtKh2ms8sziGpSYl1gN8Bazw =
40
+ github.com/manifoldco/promptui v0.3.3-0.20190221150523-ae9f05e7444d h1:Vt/4aRLLXdhHC+JD+laJi3CyzEdGna+EcocJYAfG2ZI =
41
+ github.com/manifoldco/promptui v0.3.3-0.20190221150523-ae9f05e7444d /go.mod h1:8JU+igZ+eeiiRku4T5BjtKh2ms8sziGpSYl1gN8Bazw =
40
42
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4 =
41
43
github.com/mattn/go-colorable v0.0.9 /go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU =
42
44
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs =
You can’t perform that action at this time.
0 commit comments