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
Added shorcuts to split cell, merge cell above and merge cell below. #3571
Conversation
numbers are already assigned to heading cell levels, so probably not the best choice. |
cell levels 1-6... 7, 8, 9 are free... but i don't have problem to change them... but...if not IPython shortcuts, the others keys are used by the browsers... so if not the numbers keys, what keys do you recommend? |
pinging @ellisonbg for review on this one. |
I agree we need keyboard shortcuts, but I think the numbers are bad choices. What letter are free? |
I think we have almost all the letters covered... at least using Ctrl-m... |
I would tend to think that split and merge are not that important, and that we better have fix the hard coded keyboard shortcut than piling up shortcut. especially if we want dual-mode editor, we could free up shortcut later. |
Hi, @Carreau... I fundamentally disagree with you in that ;-) |
I'm pretty sure that the intention is to have the new editing system in |
I am making good progress on the dual mode work. I should have a PR ready this week. That the request, however, wont change that the number of available keyboard shortcuts. Sent from my iPhone On Jul 7, 2013, at 5:59 AM, Thomas Kluyver notifications@github.com wrote:
|
Ok @ellisonbg, if your PR is not going to free some keyboard shortcuts, we have to deal with the decision to add or not add the shortcuts for this split/merge functions... I believe we have to add them... |
That change won't make any more shortcuts available while editing, but it On 7 July 2013 17:23, Damián Avila notifications@github.com wrote:
|
I agree with you but... we will use the same keyboard shortcuts to do different things depending of the context? |
I wouldn't think of it as doing different things depending on context. For reference, the 'dual-mode' behaviour (I'm trying to avoid calling it |
OK, thanks for explaining... but if this is the case, then we have the problem of lack of enough keys again... ;-) |
for the record, though I do think we need a keyboard shortcut for splitting cells, |
Is |
he he he ;-)
I like it... I assume that you think the merge function can wait for shortcuts... ;-) |
I just don't have an idea for what they should be. If I remember correctly, we can switch on |
Yeah, I know they are precious, I can live without merge shortcuts for now... ;-) OK, I like Ctrl-M - for splitting purpose... anyone else has something to say... if not I will update the PR only with the shortcut split, we can discuss later (probably in another PR after the land of the dual mode) if we need the merge ones. |
I must admit that with |
But not enough fast when you have to split multiple times when you are formatting a large document or change types of slides in your slideshows... I can live without merge shortcuts, but not having a split shortcut is actually annoying, because you (I mean, I... maybe the workflow of others is different) split cells with a high frequency ;-) |
I like the Ctrl-M - shortcut On Tue, Jul 9, 2013 at 1:00 PM, Damián Avila notifications@github.comwrote:
Brian E. Granger |
I am OK with this as is, how do others feel about the Crtl-M - shortcut? |
+1 on |
Neutral for me. |
OK, we have at least three :+1 and one neutral... anyone else out there to make a vote? ;-) |
@ellisonbg this will conflict with your #3605 what should we do ? |
Neutral for me too, as I've never used the split option but don't see a reason not to implement this shortcut. |
For merging in the Sage notebook---if you are at the first position in a cell and press backspace, it will merge with the previous cell. That's a way to do it without shortcut keys, and is rather natural. |
It is probably easiest if I just add this to my PR. On Thu, Jul 11, 2013 at 5:17 AM, Matthias Bussonnier <
Brian E. Granger |
OK, after listen to Brian, I think we can merge it ;-) |
Added `^M -` as shorcut to split cell.
Thanks! I love the split shortcut 👍 |
Just found this discussion -- +1 for the split shortcut! |
Added `^M -` as shorcut to split cell.
OK, I think that we desperately need a shortcut key to split cell function... and also it would be great to have the same for merge cell above and merge cell below.
The task of splitting cell is a common task when you write documents containing a lot of text... or when you are doing a presentation using slideshow preset in the CellToolBar. The same, although with a less frequency, happens with merge cell functions... but yet I think they deserve a shortcut.
This PR implements this key events, and I have assigned the following keys (available in a row):
That's all...
Damián
pinging @ivanov who agreed with me in the SciPy sprint about the split shortcut... hehe... 👍
UPDATE: For now, we are only considering the split shortcut as Ctrl-m -