@@ -327,12 +327,6 @@ settings:
327327 description: Hide any file/folder starting with _ (underscore)
328328 type: class-toggle
329329 default: false
330- -
331- id: pln-hide-attachments
332- title: Hide attachments
333- description: Hide attachments in the file explorer
334- type: class-toggle
335- default: false
336330 -
337331 id: pln-dv-mods
338332 title: Dataview modifications
@@ -369,6 +363,43 @@ settings:
369363 description: Make tags more boxy with a solid border
370364 type: class-toggle
371365 default: true
366+ -
367+ id: pln-head-attachments
368+ title: Attachment options
369+ type: heading
370+ level: 2
371+ collapsed: true
372+ -
373+ id: pln-attachments
374+ title: Hide attachments
375+ description: Hide all attachments in the file explorer
376+ type: class-toggle
377+ default: false
378+ -
379+ id: pln-attachments-canvas
380+ title: Unhide canvas files
381+ type: class-toggle
382+ default: false
383+ -
384+ id: pln-attachments-pdf
385+ title: Unhide pdf files
386+ type: class-toggle
387+ default: false
388+ -
389+ id: pln-attachments-docx
390+ title: Unhide docx files
391+ type: class-toggle
392+ default: false
393+ -
394+ id: pln-attachments-xlsx
395+ title: Unhide xlsx files
396+ type: class-toggle
397+ default: false
398+ -
399+ id: pln-attachments-images
400+ title: Unhide image files
401+ type: class-toggle
402+ default: false
372403 -
373404 id: pln-head-heads
374405 title: Header colors
@@ -1065,7 +1096,7 @@ body {
10651096
10661097/* REMOVE THINGS */
10671098/* hide attachments */
1068- .pln-hide- attachments .nav-file : has (.nav-file-tag ),
1099+ .pln-attachments .nav-file : has (.nav-file-tag ),
10691100/* folder navigation buttons */
10701101.pln-rm-folder-nav .nav-buttons-container ,
10711102/* ribbon */
@@ -1097,6 +1128,17 @@ body {
10971128 display : none;
10981129}
10991130
1131+ /* selectively show certain attachments */
1132+ .pln-attachments .pln-attachments-canvas .nav-file : has ([data-path $= ".canvas" ]),
1133+ .pln-attachments .pln-attachments-pdf .nav-file : has ([data-path $= ".pdf" ]),
1134+ .pln-attachments .pln-attachments-docx .nav-file : has ([data-path $= ".docx" ]),
1135+ .pln-attachments .pln-attachments-xlsx .nav-file : has ([data-path $= ".xlsx" ]),
1136+ .pln-attachments .pln-attachments-images .nav-file : has ([data-path $= ".jpg" ]),
1137+ .pln-attachments .pln-attachments-images .nav-file : has ([data-path $= ".jpeg" ]),
1138+ .pln-attachments .pln-attachments-images .nav-file : has ([data-path $= ".png" ]) {
1139+ display : contents !important ;
1140+ }
1141+
11001142/* Hide files and dirs starting with _ */
11011143.pln-hide-files div [data-path ^= "_" ],
11021144.pln-hide-files div [data-path *= "/_" ] {
0 commit comments