hornat241 downloadsAdd custom view switching buttons to the Base database title bar.
我在小红书发布了许多obsidian的教程和插件开发进度,你的关注就是对我最大的支持
一键切换数据库视图,告别繁琐操作,让数据管理更高效。
为 Base 数据库添加自定义按钮,点击即可瞬间切换到指定视图,无需手动选择。
自由控制工具栏元素显隐,隐藏不需要的按钮和计数,让界面更简洁清爽。
支持默认按钮和自定义按钮,可选择图标模式或文字模式,满足不同使用习惯。
按钮顺序支持拖拽调整,按照你的使用频率自由排列。
支持为不同的 Base 文件配置独立的按钮方案,每个数据库都有专属设置。
.base 文件。在设置页面的 "界面美化" 区域,你可以:
| 选项 | 说明 |
|---|---|
| 启用自定义视图菜单样式 | 解决小尺寸面板下按钮挤压问题 |
| 隐藏 "X 个结果" | 隐藏工具栏上的结果计数 |
| 隐藏 "搜索" 按钮 | 隐藏搜索功能按钮 |
| 隐藏 "属性" 按钮 | 隐藏属性筛选按钮 |
| 隐藏 "筛选" 按钮 | 隐藏筛选功能按钮 |
| 隐藏 "排序" 按钮 | 隐藏排序功能按钮 |
默认按钮使用固定的 home 图标,适合绑定主视图:
自定义按钮可绑定任意视图,支持图标模式和文字模式:
如需删除某个数据库的配置:
待插件通过审核并上架社区市场后:
Base View Switcher。main.js 和 manifest.json 文件。.obsidian/plugins/ 目录,并创建一个名为 base-view-switcher 的文件夹。QQ 交流群:1094620986
Base View Switcher — A powerful view switching plugin for Obsidian's Base database. Add custom buttons to quickly switch between different views, with full control over toolbar elements and button layout.
Add custom buttons to Base database files for instant view switching without manual selection.
Freely control toolbar elements visibility, hide unnecessary buttons and counts for a cleaner interface.
Support default and custom buttons, choose between icon mode or text mode to suit different preferences.
Button order supports drag-and-drop adjustment, arrange by your usage frequency.
Configure independent button schemes for different Base files, each database has its own settings.
.base file to configure.In the "Interface Customization" section of settings:
| Option | Description |
|---|---|
| Enable custom view menu style | Fix button squeezing in small panels |
| Hide "X results" | Hide result count in toolbar |
| Hide "Search" button | Hide search functionality button |
| Hide "Properties" button | Hide properties filter button |
| Hide "Filter" button | Hide filter functionality button |
| Hide "Sort" button | Hide sort functionality button |
Default button uses a fixed home icon, suitable for binding to the main view:
Custom buttons can bind any view, supporting icon mode and text mode:
To delete a database configuration:
Once the plugin is reviewed and listed on the community marketplace:
Base View Switcher.main.js and manifest.json files..obsidian/plugins/ directory and create a folder named base-view-switcher.QQ Group: 1094620986