Skip to content

Commit 2601dfc

Browse files
Attachment changes (#25)
* initial changes * advance version
1 parent 9cf7eb2 commit 2601dfc

File tree

3 files changed

+52
-9
lines changed

3 files changed

+52
-9
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PLN",
3-
"version": "1.11.0",
3+
"version": "1.12.0",
44
"minAppVersion": "1.5.0",
55
"author": "PipeItToDevNull",
66
"authorUrl": "https://docs.dev0.sh"

theme.css

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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*="/_"] {

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
"1.9.0": "1.4.16",
1919
"1.10.0": "1.5.0",
2020
"1.10.1": "1.5.0",
21-
"1.11.0": "1.5.0"
21+
"1.11.0": "1.5.0",
22+
"1.12.0": "1.12.0"
2223
}

0 commit comments

Comments
 (0)