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

Make keyboard shortcuts declarative #1234

Merged
merged 4 commits into from
Mar 24, 2016
Merged

Make keyboard shortcuts declarative #1234

merged 4 commits into from
Mar 24, 2016

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Mar 20, 2016

look in config for keys.command.unbind, keys.edit.unbind for which shortcuts to unbind,
then keys.command.bind, keys.edit.bind for new shortcut to bind.

Done after feedback at JupyterDays.

Command Palette hover of Shortcut area show the action name as a tooltip so that users know what to bind.

Cleanup Js here and there, and replace (command) in command palette with (command mode) to remove confusion with Cmd keys on Mac.

this._remove_leaf(shortcut, this._shortcuts);
if (!suppress_help_update) {
// update the keyboard shortcuts notebook help
this.events.trigger('rebuild.QuickHelp');
}
} catch (ex) {
console.warn('shortbut', shortcut, '...',this._shortcuts);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shortbut?

@minrk minrk added this to the 5.0 milestone Mar 21, 2016
@minrk
Copy link
Member

minrk commented Mar 21, 2016

A few minor comments, but 👍

@ellisonbg
Copy link
Contributor

Is this API compatible?

Sent from my iPhone

On Mar 20, 2016, at 3:58 PM, Matthias Bussonnier notifications@github.com wrote:

look in config for keys.command.unbind, keys.edit.unbind for which shortcuts to unbind,
then keys.command.bind, keys.edit.bind for new shortcut to bind.

Done after feedback at JupyterDays.

Command Palette hover of Shortcut area show the action name as a tooltip so that users know what to bind.

Cleanup Js here and there, and replace (command) in command palette with (command mode) to remove confusion with Cmd keys on Mac.

You can view, comment on, or merge this pull request online at:

#1234

Commit Summary

Make keyboard shortcuts declaratives
File Changes

M notebook/static/base/js/keyboard.js (10)
M notebook/static/deprecated-imports.js (2)
M notebook/static/notebook/js/celltoolbarpresets/attachments.js (3)
M notebook/static/notebook/js/celltoolbarpresets/default.js (1)
M notebook/static/notebook/js/celltoolbarpresets/rawcell.js (1)
M notebook/static/notebook/js/celltoolbarpresets/slideshow.js (1)
M notebook/static/notebook/js/commandpalette.js (2)
M notebook/static/notebook/js/keyboardmanager.js (20)
M notebook/static/notebook/js/main.js (4)
M notebook/static/notebook/js/notebook.js (3)
M notebook/static/notebook/js/quickhelp.js (2)
M notebook/static/notebook/less/commandpalette.less (5)
M notebook/static/services/config.js (4)
Patch Links:

https://github.com/jupyter/notebook/pull/1234.patch
https://github.com/jupyter/notebook/pull/1234.diff

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

@Carreau
Copy link
Member Author

Carreau commented Mar 22, 2016

Is this API compatible?

With what ?

@Carreau
Copy link
Member Author

Carreau commented Mar 22, 2016

@willingc added a bit of documentation. Can I get your feedback on it ?

@Carreau
Copy link
Member Author

Carreau commented Mar 22, 2016

Is this API compatible?
With what ?

More especially: it is purely an addition of a config section. It maps what user were doing in their custom.js with a corresponding config entry (we can bikeshed on the name if you like).

There is 0 API deletion, 0 API addition, 0 API modification. Just the provisional (added in the docs) addition of a config section in the docs.

So I'm not sure what your question of API compatibility means.


DEclarative Custom Keymaps is a provisional feature with unstable API which is not
guarantied to be keep in future versions odf the notebook, and can be
removed or changed without warnings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling nits:

DEclarative -> Declarative
guarantied -> guaranteed
be keep -> be kept
odf -> of

@Carreau
Copy link
Member Author

Carreau commented Mar 23, 2016

All updated.

@minrk minrk merged commit c940237 into jupyter:master Mar 24, 2016
minrk added a commit that referenced this pull request Mar 24, 2016
Make keyboard shortcuts declarative
@minrk
Copy link
Member

minrk commented Mar 24, 2016

Thanks!

@willingc
Copy link
Member

@Carreau Thanks! I'll give a look at the content now that it's merged. Spent yesterday cleaning up the other notebook stuff.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
5.0
Merged PRs
Development

Successfully merging this pull request may close these issues.

None yet

5 participants