Permalink
Browse files

Add the reverttosaved command and corresponding hotkeys

(Ctrl-Shift-Q and Command-Shift-Q)
  • Loading branch information...
1 parent d021247 commit 5f924e6105cc15e995f4b31b8ae45baf6c7bcfc5 @monchi59 monchi59 committed Nov 22, 2011
@@ -14,7 +14,8 @@ return keys.onLoad({
},
"save" : {
"quicksave": "Command-S",
- "saveas": "Command-Shift-S"
+ "saveas": "Command-Shift-S",
+ "reverttosaved": "Command-Shift-Q"
},
"undo" : {
"undo": "Command-Z",
@@ -145,4 +146,4 @@ return keys.onLoad({
}
});
-});
+});
@@ -15,7 +15,8 @@ return keys.onLoad({
},
"save" : {
"quicksave": "Ctrl-S",
- "saveas": "Ctrl-Shift-S"
+ "saveas": "Ctrl-Shift-S",
+ "reverttosaved": "Ctrl-Shift-Q"
},
"undo" : {
"undo": "Ctrl-Z",
@@ -145,4 +146,4 @@ return keys.onLoad({
}
});
-});
+});
View
@@ -26,7 +26,8 @@ module.exports = ext.register("ext/save/save", {
commands : {
"quicksave": {hint: "save the currently active file to disk"},
- "saveas": {hint: "save the file to disk with a different filename"}
+ "saveas": {hint: "save the file to disk with a different filename"},
+ "reverttosaved": {hint: "downgrade the currently active file to the last saved version"}
},
hotitems : {},
nodes : [],

0 comments on commit 5f924e6

Please sign in to comment.