Скрытие файлов/папок в боковой панели навигации Obsidian
Obsidian folders and files hide from navigation panel
Ссылки:
- https://www.reddit.com/r/ObsidianMD/comments/10dqvem/comment/j4qq0k7/
- https://help.obsidian.md/Extending+Obsidian/CSS+snippets
- https://www.reddit.com/r/ObsidianMD/comments/10dqvem/just_started_using_obsidian_is_there_a_way_to/?rdt=36196
- https://forum.obsidian.md/t/snippet-custom-css-to-hide-attachments-folder-in-every-folder/49494
- https://www.reddit.com/r/ObsidianMD/comments/1cu0gly/comment/l4httba/
To add a CSS snippet on Desktop , follow these steps:
- Open Settings.
- Under Appearance → CSS snippets, select Open snippets folder ( ).
- In the snippets folder, create a CSS file that contains your snippet.
- In Obsidian, under Appearance → CSS snippets, select Reload snippets ( ) to see the snippet in the list.
Add snippet.css
with this content:
/* Hiding the "catalog" folder */
div[data-path='catalog'],
div[data-path='catalog'] + div.nav-folder-children
{
display: none;
}
/* Hiding the "blogs" folder */
div[data-path='blogs'],
div[data-path='blogs'] + div.nav-folder-children
{
display: none;
}
/* Hiding the "index.md" file */
div[data-path='index.md'],
div[data-path='index.md'] + div.nav-folder-children
{
display: none;
}
/* Hiding the folder */
div[data-path="Templates"], div[data-path="Templates"] + div.nav-folder-children
{
display: none;
}
/* Hiding the paths */
div[data-path*='assets'], div[data-path*='assets'] + div.nav-folder-children
{
display: none;
}
/* Hiding files */
div[data-path='index.md'], div[data-path='index.md'] + div.nav-folder-children
{
display: none;
}
div[data-path='changelog.md'], div[data-path='changelog.md'] + div.nav-folder-children
{
display: none;
}
div[data-path='principles.md'], div[data-path='principles.md'] + div.nav-folder-children
{
display: none;
}
div[data-path='README.md'], div[data-path='README.md'] + div.nav-folder-children
{
display: none;
}
Комментарии из Telegram
Комментарии ВКонтакте