Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select name when renaming a notebook #4161

Merged
merged 2 commits into from
Sep 3, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions IPython/html/static/notebook/js/savewidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var IPython = (function (IPython) {
$([IPython.events]).on('checkpoints_listed.Notebook', function (event, data) {
that.set_last_checkpoint(data[0]);
});

$([IPython.events]).on('checkpoint_created.Notebook', function (event, data) {
that.set_last_checkpoint(data);
});
Expand Down Expand Up @@ -104,7 +104,7 @@ var IPython = (function (IPython) {
return false;
}
});
that.find('input[type="text"]').focus();
that.find('input[type="text"]').focus().select();
}
});
}
Expand Down
6 changes: 6 additions & 0 deletions docs/source/whatsnew/pr/select-notebook-rename.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Select Notebook Name When Renaming a Notebook
---------------------------------------------

The default notebook name is Untitled. It's unlikely you want to keep this name
or part of it when naming your notebook. Instead, IPython will select the text
in the input field so the user can easily type over the name and change it.