Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ide/static/ide/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,9 @@ CloudPebble.Editor = (function() {
prompt.error(gettext(interpolate("Failed to rename file. %s", [error.message])));
});
},
pattern)
pattern);
// Pre-select the filename without the extension.
$('#modal-text-input-value')[0].setSelectionRange(0, file.name.lastIndexOf('.'));
};

var ib_pane = $('#ui-editor-pane-template').clone().removeClass('hide').appendTo(pane).hide();
Expand Down