<div><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 13:06, Fernando Perez <span dir="ltr"><<a href="http://fperez.net">fperez.net</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hey Min,<br>
<br>
in console/console_widget.py:<br>
<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  170)         #<br>
Configure actions.<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  171)<br>
action = QtGui.QAction('Print', None)<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  172)<br>
action.setEnabled(True)<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  173)<br>
action.setShortcut(QtGui.QKeySequence.Print)<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  174)<br>
action.triggered.connect(self.print_)<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  175)<br>
self.addAction(action)<br>
e11b615e (MinRK          2010-10-18 16:34:07 -0700  176)<br>
self._print_action = action<br>
<br>
you added in line 173 the default print keybinding to the Print<br>
action.  One problem that introduces is that it overwrites the<br>
keybinding we had for Ctrl-P, which was equivalent to 'smart up arrow'<br>
(history-aware).  </blockquote><div><br></div><div>Hm, that's annoying, sorry I didn't catch it.</div><meta charset="utf-8"><div><br></div><div>One of my very favorite things about OSX is that since the standard meta key is cmd instead of ctrl, all regular GUI bindings (entirely cmd-based) and all emacs-style bindings (ctrl-based) have no degeneracy, so you don't have to choose between having ctrl-a be home or select-all, or this cmd/ctrl-P behavior, and basic emacs navigation works in *all* GUI apps by default.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Since that keybinding has been there for a long<br>
time, is consistent with the terminal and we want to preserve as much<br>
similarity as reasonable with habits from the terminal, we need to<br>
change this.  I think a reasonable compromise is to make:<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Ctrl-P -> 'smart up arrow'<br>
Ctrl-Shift-P -> Print<br>
<br>
But I don't want to make any changes, as I don't know if on the Mac,<br>
there is no problem.  I don't know if on the mac, Control-p and Cmd-p<br>
are different, so that Ctrl-p remains as before and only Cmd-p goes to<br>
print.<br>
<br>
If that's the case, then we should probably leave it as you did for<br>
the Mac, and only change the keybinding for Linux/windows (which don't<br>
have a separate Cmd key).<br></blockquote><div><br></div><div>Yes, we should do a platform check, since it would be completely hideous to be the only Mac app in the world that doesn't use cmd-P for print.</div><div><br>

</div><div>Questions:</div><div>Is it just Linux, or will there also be a conflict in Windows?  Specifically: is OSX the only one without a problem, or is Linux the only one with a problem?</div><div><br></div><div>Is there a similar conflict on ctrl-S?</div>

<div><br></div><div>-MinRK</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thoughts?<br>
<br>
Cheers,<br>
<br>
f<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div>