Skip to content

TagSpaces is an offline, open source, document manager with tagging support

removing empty lines

Ilian3d6959cbc2f0
diff --git a/data/locales/en/ns.common.json b/data/locales/en/ns.common.json
index c152fa386..c120fe698 100644
--- a/data/locales/en/ns.common.json
+++ b/data/locales/en/ns.common.json
@@ -3,7 +3,6 @@
"switchToLocationsTooltip": "Show Folder Navigator",
"toggleLeftPanelTooltip": "Toggle Left Panel",
"switchLanguageTooltip": "Switch language",
-
"fileOperations": "File Operations",
"addRemoveTagsTooltip": "Add or remove tags to current file selection",
"addRemoveTags": "Add / Remove Tags",
@@ -43,7 +42,6 @@
"openPrevFile": "Previous File",
"openNextFileTooltip": "Open next file",
"openNextFile": "Next File",
-
"tagOperations": "Tag Operations",
"showFilesWithThisTagTooltip": "Set current tag as a filter criteria",
"showFilesWithThisTag": "Show Files With This Tag",
@@ -84,7 +82,6 @@
"newSubdirectory": "New Subdirectory",
"openDirectoriyNativelyTooltip": "Open current directory in the file manager",
"openDirectoriyNatively": "Show in File Manager",
-
"aboutTagSpaces": "About TagSpaces",
"aboutTagSpacesTooltip": "Open the about box",
"startingHints": "Starting Tips",
@@ -111,14 +108,12 @@
"writeUsEmailTooltip": "Send email to us",
"supportUs": "Support the Project",
"supportUsTooltip": "Learn how you can support TagSpaces",
-
"chooseLocation": "Choose Location",
"showTagLibraryTooltip": "Show Tag Library",
"showLocationNavigatorTooltip": "Show Location Navigator",
"switchToContactUsTooltip": "Show Contact Us",
"openNewInstanceTooltip": "Open New TagSpaces Instance",
"openSettingTooltip": "Open Settings",
-
"searchOptions": "Search Options",
"searchPlaceholder": "Search",
"clearFilterTooltip": "Clear Filter",
@@ -129,7 +124,6 @@
"andedSearch": "All terms should be true in order the file to appear in the search results.",
"searchInFilenameOnly": "The searched term should be part of the filename. Currently the content of the file is ignored.",
"perspectivesDropDown": "Perspectives",
-
"suggestedTags": "Suggested Tags",
"tagsFromCurrentFolder": "Tags From Current Folder",
"tagsFromCurrentLocation": "Tags From Current Location",
@@ -158,6 +152,5 @@
"showDevTools": "Show Developer Tools",
"toggleFullScreen": "Toggle Fullscreen",
"reloadApplication": "Reload Application",
-
"-": "-"
}
diff --git a/data/mozilla/mozilla.api.js b/data/mozilla/mozilla.api.js
index ab1cb0073..de526cf29 100644
--- a/data/mozilla/mozilla.api.js
+++ b/data/mozilla/mozilla.api.js
@@ -46,6 +46,14 @@ define(function(require, exports, module) {
console.error("Rename failed");
}
break;
+ case "copy":
+ if(message.success){
+ TSPOSTIO.copyFile(message.content[0],message.content[1]);
+ } else {
+ TSCORE.hideWaitingDialog();
+ console.error("Rename failed "+message.content);
+ }
+ break;
case "saveTextFile":
if(message.success){
TSPOSTIO.saveTextFile(message.content);
@@ -163,14 +171,13 @@ define(function(require, exports, module) {
var copyFile = function(filePath, newFilePath) {
console.log("Copy "+filePath+" to "+newFilePath);
- TSCORE.showAlertDialog("Copy file functionality is not implemented in Firefox yet.");
- /*var event = document.createEvent('CustomEvent');
+ var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
- "command": "rename",
+ "command": "copy",
"path": filePath,
"newPath": newFilePath
}});
- document.documentElement.dispatchEvent(event);*/
+ document.documentElement.dispatchEvent(event);
};
var renameFile = function(filePath, newFilePath) {
@@ -311,7 +318,7 @@ define(function(require, exports, module) {
// Bring the TagSpaces window on top of the windows
var focusWindow = function() {
- console.log("Focusing window is not implemented yet.");
+ window.focus();
};
exports.focusWindow = focusWindow;