diff --git a/web/templates/base.html b/web/templates/base.html index 86fe904..4db90fd 100644 --- a/web/templates/base.html +++ b/web/templates/base.html @@ -380,6 +380,16 @@ } }); + // Right-click on folder in sidebar opens folder view in current page + document.addEventListener('contextmenu', function(e) { + const toggle = e.target.closest('.tree-toggle'); + if (!toggle) return; + e.preventDefault(); + const path = toggle.getAttribute('data-path') || ''; + const url = '/folder/' + path; + window.location.href = url; + }); + // Auto-expand active path function expandActivePath() { const activeItem = document.querySelector('.sidebar-item.active'); diff --git a/web/templates/settings.html b/web/templates/settings.html index f55b55c..f69d0d3 100644 --- a/web/templates/settings.html +++ b/web/templates/settings.html @@ -137,14 +137,6 @@
Comma-separated list of viewable file extensions
-