TagSpaces is an offline, open source, document manager with tagging support
Added background color to toolbar and file infos Added toggle file info area button
uggrock900e73c02c1a
diff --git a/data/css/tagspaces.less b/data/css/tagspaces.lessindex da0d92ad9..7d08bb75f 100644--- a/data/css/tagspaces.less+++ b/data/css/tagspaces.less@@ -243,7 +243,7 @@ li hr {#tagsContainer {width: 100%;- height: 50px;+ min-height: 25px;}#viewToolbars {diff --git a/data/index.html b/data/index.htmlindex 217fe56dc..6140065ba 100644--- a/data/index.html+++ b/data/index.html@@ -42,24 +42,26 @@</div><div class="ui-layout-center" style="padding: 0;">- <div id="viewToolbars" class="middle-north"></div>+ <div id="viewToolbars" class="middle-north" style="background-color: #EEEEEE;"></div><div id="viewContainers" class="middle-center"></div><div id="viewFooters" class="middle-south"></div></div><div class="ui-layout-east" style="padding: 0">- <div class="east-north" style="padding: 1">+ <div class="east-north" style="padding: 1; background-color: #EEEEEE;"><span id="fileTitle"></span><span id="filetoolbox" style="float: right;"></span><p id="tagsContainer"><span id="fileTags"></span>- </p>+ </p>+ <p>+ <input id="selectedFilePath" onClick="this.select();" READONLY style="width: 100%; height:25px; border: 0px; background-color: transparent;" ></input>+ </p></div><div class="east-center" id="content" style="padding: 0; height: 100%"><div id="viewer" allowfullscreen style="width: 100%; height: 100%" ></div></div><div class="east-south" style="padding: 0">- <input id="selectedFilePath" READONLY style="width: 100%; height:100%; border: 0px;" ></input></div></div>diff --git a/data/js/core.api.js b/data/js/core.api.jsindex 9b769a9ff..3c1215bca 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -16,6 +16,9 @@ define(function(require, exports, module) {var tsCoreUI = require("tscoreui")var layoutContainer = undefined;+ var westLayout = undefined;+ var centerLayout = undefined;+ var eastLayout = undefined;var currentPath = "";@@ -125,11 +128,29 @@ define(function(require, exports, module) {location.reload();}- function openFileViewer() {- layoutContainer.open("east");+ function openFileViewer(full) {+ //if(full) {+ // layoutContainer.sizePane("east",2000);+ layoutContainer.open("east");+ //} else {+ // layoutContainer.open("east");+ //}+ }++ var fileDetailsFull = false;++ function toggleFileDetails() {+ if(fileDetailsFull) {+ fileDetailsFull = false;+ eastLayout.sizePane("north", 70);+ } else {+ fileDetailsFull = true;+ eastLayout.sizePane("north", 140);+ }}function closeFileViewer() {+ layoutContainer.open("center");layoutContainer.close("east");}@@ -185,7 +206,7 @@ define(function(require, exports, module) {);// Directories and Tags- var westLayout = $('div.ui-layout-west').layout({+ westLayout = $('div.ui-layout-west').layout({minSize: 50 // ALL panes, center__paneSelector: ".west-center", south__paneSelector: ".west-south"@@ -194,7 +215,7 @@ define(function(require, exports, module) {, south__spacing_open: 5});- var centerLayout = $('div.ui-layout-center').layout({+ centerLayout = $('div.ui-layout-center').layout({name: "middle", north__paneSelector: ".middle-north", center__paneSelector: ".middle-center"@@ -209,15 +230,15 @@ define(function(require, exports, module) {});// File Viewer / Editor- var eastLayout = $('div.ui-layout-east').layout({- minSize: 30 // ALL panes+ eastLayout = $('div.ui-layout-east').layout({+ minSize: 0 // ALL panes, north__paneSelector: ".east-north", center__paneSelector: ".east-center", south__paneSelector: ".east-south"- , north__size: 80- , north__resizable: false+ , north__size: 70+ , north__resizable: true, north__spacing_open: 0- , south__size: 25+ , south__size: 0, south__spacing_open: 0});@@ -251,6 +272,7 @@ define(function(require, exports, module) {exports.openFileViewer = openFileViewer;exports.closeFileViewer = closeFileViewer;exports.toggleLeftPanel = toggleLeftPanel;+ exports.toggleFileDetails = toggleFileDetails;// Proxying functions from tsTagsUIexports.generateTagButtons = tsTagsUI.generateTagButtonsdiff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex 65c45e250..daeee9fc1 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -158,6 +158,8 @@ define(function(require, exports, module) {addTagSuggestionButton("#filetoolbox");+ addShowFullDetailsButton("#filetoolbox");+addCloseButton("#filetoolbox");}@@ -254,13 +256,27 @@ define(function(require, exports, module) {$( this ).button( "option", options );});}++ function addShowFullDetailsButton(container) {+ $( ""+container ).append('<button id="showFullDetails">Full details</button>');+ $( "#showFullDetails" ).button({+ text: false,+ icons: {+ primary: "ui-icon-arrowthick-2-n-s"+ },+ disabled: false+ })+ .click(function() {+ TSCORE.toggleFileDetails();+ });+ }function addOpenInWindowButton(container, filePath) {$( ""+container ).append('<button id="openInNewWindow">Open in New Tab</button>');$( "#openInNewWindow" ).button({text: false,icons: {- primary: "ui-icon-extlink" // newwin+ primary: "ui-icon-extlink"},disabled: false})diff --git a/data/js/tagutils.js b/data/js/tagutils.jsindex bbb5973b4..875037c9c 100644--- a/data/js/tagutils.js+++ b/data/js/tagutils.js@@ -200,6 +200,7 @@ define(function(require, exports, module) {}}+ // Replaces a tag with a new onefunction renameTag(filePath, oldTag, newTag) {console.debug("Rename tag for file: "+filePath);