Repository navigation
Conversation
There was a problem hiding this comment.
Great contribution! I would advise to add a gui test, such as the search test
|
Thank you for reminding me, I've added a few ui test cases which included in |
|
The last thing I can think of is I have managed to spawn both the S bar and the Ctrl+K bar by playing with the browser ; they can be both displayed at the same time and it looks odd, but you have to really look for it to make it happen. Not sure this is an issue! Otherwise I think it's good for official review, if you are satisfied you may ping guillaume I believe |
|
Currently it is not allowed to switch between search mode and quick-jump mode when either is activated.
So I'm hesitated to keep it as is (not allowed to switch between different modes) or allow switching to quickjump mode from search mode only. |
|
Well technically you can switch from one bar to the other by doing Esc then shortcut Another way could be to merge these two bars, but file lookup would be triggered by a prefix, like > I feel like introducing a shortcut to switch bars it counter intuitive, if one already could not remember the proper shortcut, now they are expected to remember a third to fix their mistake rather than knowing it from the first place Wdyt? |
|
I like the feature idea, but not so much the idea of adding another shortcut. Why not a button instead? |
|
Thanks @Chocorean @GuillaumeGomez you guys inspired me, I just inserted the chapter and files results into the search results. Once you press What do you think of that?
|
|
That make sense, optimized to add excerpt of that file |
|
Great advice, added a new option [output.html.search]
limit-results = 30 # maximum number of search results
limit-chapter-results = 20 # maximum number of chapter/file-name matches shown before search results |
|
@GuillaumeGomez Hi, gently ping in case this PR is ignored |
|
Some extra thoughts about this: the files are listed in the sidebar, so not sure to see the added value here. What do you think @rust-lang/mdbook ? |




Added a new feature which allows you to quickly search a file by its filename or title when you press Cmd/Ctrl-k