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

Customise keyboard shortcuts #56

Open
dpsanders opened this issue Apr 3, 2020 · 12 comments
Open

Customise keyboard shortcuts #56

dpsanders opened this issue Apr 3, 2020 · 12 comments
Labels
documentation enhancement New feature or request frontend Concerning the HTML editor

Comments

@dpsanders
Copy link

This looks like a very nice project, thanks!

I am trying to find the shortcut key to evaluate a cell (on Mac). Coming from Jupyter I was expecting / hoping that Shift-Enter would work, but it seems to create a new cell without evaluating the previous one.

@dpsanders
Copy link
Author

OK, it's Ctrl-Enter. How can I configure it to be Shift-Enter instead?

@fonsp
Copy link
Owner

fonsp commented Apr 3, 2020

Welcome to the project! We are happy to be receiving feedback :)

We want to inform users about keyboard shortcuts using an FAQ (#53), and we want a single system for all customisation (#6). Customising keyboard shortcuts (using this system) was not yet on our list, so let's make that the focus of this issue ~

For future reference: Ctrl+Shift+? or F1 shows the list of keyboard shortcuts.

@fonsp fonsp changed the title Can't find shortcut key to evaluate a cell Customise keyboard shortcuts Apr 3, 2020
@fonsp
Copy link
Owner

fonsp commented Apr 3, 2020

You also pointed out that the current defaults are confusing to Jupyter users, so maybe we should change them to match Jupyter?

@fonsp fonsp added documentation enhancement New feature or request frontend Concerning the HTML editor labels Apr 3, 2020
@dpsanders
Copy link
Author

Shift-enter is also used in Atom for executing the code.

@fonsp
Copy link
Owner

fonsp commented Apr 3, 2020

I found online that Jupyter has:
Ctrl+Enter for run cell,
Shift+Enter for run cell and select next cell.

Juno has:
Ctrl+Enter to run your selection or current line,
Alt+Shift+Enter to run cell and select next cell. (strange...)

So I suggest that Pluto has:
Ctrl+Enter to run cell
Shift+Enter to run cell and add cell below.

with the philosophy that running and selecting the next cell is mostly useful in a non-reactive notebook, where you manually need to run a bunch of sequential cells.

And of course, this will all be customisable in a few weeks :)

@dpsanders
Copy link
Author

OK good point. I guess I just find shift-enter more ergonomic so tend to use that. Thanks!

@karlwessel
Copy link
Contributor

One minor thing that might fit here: When executing and creating a new cell with shift+return it would be nice if the input cursor would switch to the new cell, so one can continue typing in that one.

@fonsp
Copy link
Owner

fonsp commented Apr 10, 2020

Ah yep that used to be there and it disappeared again. Thanks for pointing it out :)

@karlwessel
Copy link
Contributor

Ah yep that used to be there and it disappeared again. Thanks for pointing it out :)

Ah, thats probably the reason why I immediately missed it :).

@fonsp
Copy link
Owner

fonsp commented Apr 11, 2020

shift+return is fixed 👍

@fonsp fonsp mentioned this issue Jun 8, 2020
10 tasks
@tamasgal
Copy link

OK good point. I guess I just find shift-enter more ergonomic so tend to use that. Thanks!

Btw. you can easily remap Caps-Lock to CTRL on a Mac (Keyboard Preferences), which is generally a very good idea since that key only causes trouble 😆

@carstenbauer
Copy link

carstenbauer commented Apr 9, 2021

And of course, this will all be customisable in a few weeks :)

54 weeks later 😃

Given that #6 has been merged, can you (@fonsp) outline what the status on this is / what needs to happen to make this a reality?

No promises, but I might have some free time to spare next week and could give this a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request frontend Concerning the HTML editor
Projects
None yet
Development

No branches or pull requests

5 participants