From ce955db5c2d6d9859448bede0212f2f1ef49ba23 Mon Sep 17 00:00:00 2001 From: Thomas Wilburn Date: Wed, 18 Mar 2015 22:16:39 -0700 Subject: [PATCH 1/3] Make sure to copy templates that aren't HTML. --- Gruntfile.js | 1 + manifest.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 45ec30f..b6c04dd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -44,6 +44,7 @@ module.exports = function(grunt) { "js/**", "css/*.css",//leave the LESS behind "**/*.html",//both main.html and the templates + "templates/*", "require.js", "background.js", "installer.js", diff --git a/manifest.json b/manifest.json index ffbfaa4..0ff1128 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Caret", "description": "Professional text editing for Chrome and Chrome OS", - "version": "1.5.0", + "version": "1.5.1", "manifest_version": 2, "default_locale": "en", "icons": { From 354e0f7af490125e4a354dae2bea98eb4f6c8da9 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 19 Mar 2015 17:29:50 -0400 Subject: [PATCH 2/3] Add the "disableTabRestore" option to user prefs --- config/user.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/user.json b/config/user.json index 1e7d6aa..f76f600 100644 --- a/config/user.json +++ b/config/user.json @@ -77,10 +77,12 @@ "autosaveOnBlur": false, //If the editor jumps to the top on focus change, set this: "disableReload": false, + //Set this to stop the editor from restoring the last set of tabs it had open + "disableTabRestore": false, //Wildly eccentric? You might like Vim keybindings. "emulateVim": false, //Whether to show the "New file" tab button on the tab bar; "showNewTabButton": false -} \ No newline at end of file +} From 1ff333f1f12812ce200a210849f891ba7ab40c8b Mon Sep 17 00:00:00 2001 From: Geraint White Date: Tue, 31 Mar 2015 15:06:32 +0100 Subject: [PATCH 3/3] Fix #364 - autosave only saves changed tabs --- js/sessions/autosave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sessions/autosave.js b/js/sessions/autosave.js index a190282..43c2d11 100644 --- a/js/sessions/autosave.js +++ b/js/sessions/autosave.js @@ -20,7 +20,7 @@ define([ var autosave = function() { status.toast(i18n.get("fileAutosaving")); state.tabs.forEach(function(tab) { - if (tab.file && !tab.file.virtual) { + if (tab.file && !tab.file.virtual && tab.modified) { tab.save(); } });