Automatically open the sidebar and show thumbnails for e-books without bookmarks
Is your feature request related to a problem? Please describe.
When reading e-books that contain a large number of images, I’m used to opening the thumbnail view in the sidebar. If the e-book has no bookmarks, the sidebar will not open automatically.
SumatraPDF 3.7.24299: Setting SidebarBottomView automatically shows the sidebar thumbnails for e-books without bookmarks; however, for e-books with bookmarks, two sidebars appear.
Describe the solution you'd like When opening an e-book, if it has bookmarks, the sidebar should prioritize displaying bookmarks; if it has no bookmarks, display thumbnails.
Describe alternatives you've considered Add a sidebar show/hide toggle to the toolbar.
Traditionally if no favorites and file has no true bookmarks the navigation panel would not show.
So the recent addition of thumbnails was not a command
HOWEVER there is now CmdToggleThumbnails and you can add your own icon or text to the toolbar such as
Shortcuts [
[
Cmd=CmdToggleThumbnails
Name= Tom's
Key=F12
ToolbarSvgIcon=<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor"><path fill="none" stroke="currentColor" stroke-linejoin="round" d="M5 3H1v16q7 0 11 4-1-4-7-5V1q4 1 7 5v17q4-4 11-4V3q-8 1-11 3m2 3q3-1.5 7-2m-7 5q3-1.5 7-2m-7 5q3-1.5 7-2m-7 5q3-1.5 7-2"/></svg>
]
]
- 传统上,如果没有收藏夹且文件没有真正的书签,导航面板就不会显示。 因此,最近添加的缩略图功能并非通过命令 实现,但现在有了命令
CmdToggleThumbnails,您可以向工具栏添加自定义图标或文本,例如:![]()
Shortcuts [ [ Cmd=CmdToggleThumbnails Name= Tom's Key=F12 ToolbarSvgIcon=<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor"><path fill="none" stroke="currentColor" stroke-linejoin="round" d="M5 3H1v16q7 0 11 4-1-4-7-5V1q4 1 7 5v17q4-4 11-4V3q-8 1-11 3m2 3q3-1.5 7-2m-7 5q3-1.5 7-2m-7 5q3-1.5 7-2m-7 5q3-1.5 7-2"/></svg> ] ]
That’s perfect, thank you!
@kjk this is Related to https://github.com/sumatrapdfreader/sumatrapdf/discussions/6413