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 'Paste Above' the default paste behavior. #2572
Conversation
Destructive paste mapped to Ctrl-M V is a surprising choice given that there was no drag-to-select on the area being replaced (there is a weaker notion of "selected cell" but this does not map to will-be-replaced- by-paste in the minds of participants in an unscientific poll at PyConCA). Destructive paste is still available as the last paste option in the Edit menu, qualified as "Paste Cell Replace".
<li id="paste_cell_above" class="ui-state-disabled"><a href="#">Paste Cell Above</a></li> | ||
<li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Cell Below</a></li> | ||
<li id="paste_cell_replace" class="ui-state-disabled"><a href="#">Paste Cell Replace</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe say Paste Cell & Replace
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
I'm on board with this idea, I've been bitten by the destructiveness of the default paste behavior of paste enough that I'm now convinced it's really not the best UI. Let's leave this one here for a bit longer to give other people a chance to look at it too and comment. |
One justification for paste-above vs. paste-below: pasting at a cursor position in a text editor displaces content forward. Also this is how vim does full-line pastes via 'p' (if you e.g. yank via "-v y") |
+1 . I'm sure this discussion is also somewhere else, but I don't find it. |
@ellisonbg no objection on making past above the default ? |
Hi David! Slightly OT, I'm fine with either default behavior, but you wrote:
That's not the behaviour of 'p'
and this remains true for linewise changes (if you do a |
Hmm, you're right. I guess I imagined that. On Tue, Nov 13, 2012 at 6:30 PM, Paul Ivanov notifications@github.comwrote:
|
I agree that the destructive paste is not a good default, but my initial intuition would be to have paste below as the default. |
I'm not terribly picky. I tried out paste-above and it felt kinda natural, On Tue, Nov 13, 2012 at 7:19 PM, Brian E. Granger
|
I've no objection, it seems that nobody have. I'll let you change and I'll merge. |
@dwf, I send you a pr that change default to past below. |
paste below by default
Done. Sorry I didn't see it. On Thu, Nov 22, 2012 at 7:42 AM, Bussonnier Matthias <
|
no problem. Seeing that travis failure are du to timeout of 0min (??) and that we don't test the js yet. I'll go forward and merge. Thanks ! |
Make 'Paste Below' the default paste behavior in notebook.
Make 'Paste Below' the default paste behavior in notebook.
Destructive paste mapped to Ctrl-M V is a surprising choice given that there was no drag-to-select on the area being replaced (there is a weaker notion of "selected cell" but this does not map to will-be-replaced-
by-paste in the minds of participants in an unscientific poll at PyConCA).
Destructive paste is still available as the last paste option in the Edit menu, qualified as "Paste Cell Replace".