1
Fork 0

Rollup merge of #50229 - GuillaumeGomez:search-one-result, r=QuietMisdreavus

Add setting to go to item if there is only one result

Fixes #50216.

r? @QuietMisdreavus
This commit is contained in:
kennytm 2018-04-27 14:16:46 +08:00
commit e6889933e3
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
2 changed files with 59 additions and 31 deletions

View file

@ -1595,6 +1595,8 @@ impl<'a> Settings<'a> {
settings: vec![
("item-declarations", "Auto-hide item declarations.", true),
("item-attributes", "Auto-hide item attributes.", true),
("go-to-only-result", "Directly go to item in search if there is only one result",
false),
],
root_path,
suffix,