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
edit text cells on double-click instead of single-click #1224
Conversation
I am really torn by this one. On one hand I see that that single click could/should be used for other purposes. This would also enable us to implement cell sorting by dragging more easily. On the other hand, I think new users will find the behavior very confusing ("how the hell do I edit a cell"). The notebook is right at the boundary between being a document (where users will absolutely expect single click to enter edit mode) and an spreadsheet type environment (where single click selects, double click edits). I would like to see what others think and also see what we could do to mitigate that confusion for new users. |
I appreciate the dilemma. But if you have anything other than plaintext in a markdown cell, it's essentially nonfunctional. I find single click to edit extremely jarring. I also think that new users double click on stuff all the time. An alternative to double-click would be to put single-click to edit on a delay, so it will happen anyway, just not immediately. Of course, we could do both. -MinRK On Jan 4, 2012, at 11:11, "Brian E. Granger"reply@reply.github.com wrote:
|
Color me torn as well... Just joining the dilemma/discussion, not that I have any clear criterion to help us decide right now... |
Hmm, I tested this branch out on Mac/Chrome and single click is still triggering edit. What am I missing? |
Did you refresh to get the new js? -MinRK On Jan 5, 2012, at 8:06, "Brian E. Granger"reply@reply.github.com wrote:
|
Yep On Thu, Jan 5, 2012 at 1:55 PM, Min RK
Brian E. Granger |
Strange. I can confirm that it works as expected (single-click does not edit) on current Chrome, Safari, and FF. I think your refresh did not take, or you are not actually running from this branch. |
OK let me go back and double check. On Thu, Jan 5, 2012 at 2:06 PM, Min RK
Brian E. Granger |
I can confirm that on linux (ff and chrome) it works as expected once I refresh the JS. I wonder if, usability-wise, it wouldn't be good to match this change with not rendering the text cells as soon as the window loses focus, but only when some other element actively get it. Basically, this change would make it a little harder (double-click) to 'get in' to a text cell for editing, but if matched with also being harder to lose the editing state, it could overall be an improvement. Right now I find that often I'm editing a text cell and switch over to another window to copy some information, and it's frustrating to have to click around to edit again. Thoughts? |
That makes some sense. I've just pushed a change where (note: Enter starts edit, so you don't have to click around, but it's still annoying) |
I like it with this last change. I still see the dilemma, but in it's current state I'm now +1 for making these changes. @ellisonbg, unless you still see some objections, I'd say we move forward on this one. |
Actually, I take that back, a couple of issues remain. If you make a new markdown cell (the standard way to get one is to get a new cell and do
|
I will look at this later tonight. One thing that I do think needs to On Thu, Jan 5, 2012 at 6:19 PM, Fernando Perez
Brian E. Granger |
@fperez: your first point got cut off. Were you going to say that th I do see the same behavior on Chrome that a new Markdown cell is not On Thu, Jan 5, 2012 at 6:46 PM, Brian Granger ellisonbg@gmail.com wrote:
Brian E. Granger |
Single-click to edit gets in the way of using interactive elements (e.g. non-flash videos), and select/copy of the rendered HTML. Switching to double-click makes the edit action more intentional.
Sorry - I removed the I seem to be able to write/convert/edit plenty of text cells with no use of the mouse. |
One important point. I originally thought this would also affect code On Thu, Jan 5, 2012 at 7:21 PM, Min RK
Brian E. Granger |
It only affect text cells, because text cells are the only ones with a 'render' step, that causes problems with interaction. You can interact with code cells without any transformation, so there is no cost. It is distressing to try to select rendered content, and discover that it is in fact impossible. Single-click on a code cell simply places a cursor (as far as the user is concerned), and is logical. |
On Thu, Jan 5, 2012 at 7:11 PM, Brian E. Granger
Yes, precisely.
But without this PR, it's OK: in master, I can BTW, Brian: I don't know if you're aware of the 'git-mrb' script in |
Tested with latest focus fixes and it looks good to me now. I'm OK with this as it is now, let's wait for Brian's testing later. |
Ok this looks good. |
* edit text cells on double-click instead of single-click * render text cells on unselect instead of focusout. Only renders when selecting another cell, and prevents rendering when switching applications/windows/tabs.
* edit text cells on double-click instead of single-click * render text cells on unselect instead of focusout. Only renders when selecting another cell, and prevents rendering when switching applications/windows/tabs.
Single-click to edit interferes with using interactive elements (e.g. non-flash videos), and select/copy of the rendered HTML. Switching to double-click makes the edit action more intentional.