Skip to content

Commit 9f1b877

Browse files
author
Joseph Atkins-Turkish
committed
Cleanup and fixes
1 parent 0330e60 commit 9f1b877

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

ide/static/ide/css/ide.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,16 +1137,12 @@ span.cm-autofilled-end {
11371137
}
11381138

11391139
.fuzzy-subheader {
1140-
/*background-color: #222;*/
11411140
font-weight: bold;
1142-
color: #555;
1141+
color: #666;
11431142
font-variant: small-caps;
11441143
margin-left: 1em;
11451144

11461145
}
1147-
.fuzzy-subheader::before {
1148-
/*content: '-- ';*/
1149-
}
11501146

11511147
.fuzzy-hint {
11521148
opacity: 0.5;
@@ -1159,7 +1155,6 @@ span.cm-autofilled-end {
11591155
}
11601156

11611157
#fuzzy-results > div {
1162-
11631158
line-height: 28px;
11641159
cursor: pointer;
11651160
cursor: hand;

ide/static/ide/js/editor.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ CloudPebble.Editor = (function() {
835835
var codemirror_commands = [
836836
{command: 'indentAuto', refocus: true},
837837
{command: 'toggleComment', hint: 'Cmd-/ or Ctrl-/', refocus: true},
838-
'find', 'replace', 'indentMore', 'indentLess'
838+
'find', 'replace', 'indentMore', 'indentLess', 'save', 'saveAll'
839839
];
840840

841841
_.each(codemirror_commands, function(entry) {
@@ -848,26 +848,10 @@ CloudPebble.Editor = (function() {
848848
local_commands[name].hint = !!entry.hint ? entry.hint : CloudPebble.GlobalShortcuts.GetShortcutForCommand(command);
849849
});
850850

851-
// local_commands[gettext('Auto Indent')] = function() {
852-
// current_editor.execCommand('indentAuto');
853-
// current_editor.focus();
854-
// };
855-
// local_commands[gettext('Auto Indent')].hint = CloudPebble.GlobalShortcuts.GetShortcutForCommand('indentAuto');
856-
// local_commands[gettext('Find')] = function() {
857-
// current_editor.execCommand('find');
858-
// };
859-
// local_commands[gettext('Find')].hint = CloudPebble.GlobalShortcuts.GetShortcutForCommand('find');
860-
861-
862851
CloudPebble.FuzzyPrompt.AddCommands(gettext('File'), local_commands, function() {
863852
return (!!current_editor);
864853
});
865854

866-
CloudPebble.GlobalShortcuts.SetShortcutHandlers({
867-
save: function() {
868-
save().catch(alert);
869-
}
870-
});
871855

872856
CloudPebble.FuzzyPrompt.AddCommands(gettext('Actions'), global_commands);
873857

ide/static/ide/js/fuzzyprompt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CloudPebble.FuzzyPrompt = (function() {
3333
var options = {
3434
caseSensitive: false,
3535
sortFn: function(a, b) {
36-
return (a.score === b.score) ? a.item.name.localeCompare(b) : a.score - b.score;
36+
return (a.score === b.score) ? a.item.name.localeCompare(b.item.name) : a.score - b.score;
3737
},
3838
shouldSort: true,
3939
threshold: 0.5,

0 commit comments

Comments
 (0)