Ctrl-Backspace behavior

103 views
Skip to first unread message

ram.r...@gmail.com

unread,
Nov 22, 2009, 8:59:41 AM11/22/09
to sage-support
Why when I do ctrl-backspace it backs up into the upper cell, instead
of deleting a word?

ma...@mendelu.cz

unread,
Nov 22, 2009, 12:55:26 PM11/22/09
to sage-support


On 22 lis, 14:59, "ram.rac...@gmail.com" <ram.rac...@gmail.com> wrote:
> Why when I do ctrl-backspace it backs up into the upper cell, instead
> of deleting a word?

The answer is simple: ctrl+backspace is shortcut for joining cells.

Why shhould ctrl+backspace delete word?

Robert Marik

ram.r...@gmail.com

unread,
Nov 22, 2009, 1:22:20 PM11/22/09
to sage-support

It's accepted, at least on Windows, that ctrl-backspace deletes a word
(And sometimes a bunch of spaces/returns around it.) This is true in
IDEs, and actually in every text area in almost every program I can
think of.

Michael Orlitzky

unread,
Nov 22, 2009, 1:58:14 PM11/22/09
to sage-s...@googlegroups.com
ram.r...@gmail.com wrote:
> It's accepted, at least on Windows, that ctrl-backspace deletes a word
> (And sometimes a bunch of spaces/returns around it.) This is true in
> IDEs, and actually in every text area in almost every program I can
> think of.

Somewhat interesting back-story:

http://blogs.msdn.com/oldnewthing/archive/2007/10/11/5395501.aspx

As a result, most Windows programs include this functionality by way of
the default Windows edit controls. Exceptions do occur in cases where a
custom edit control is used (i.e. IDEs), but for the most part, it works.

On Linux, this is an Emacs keybinding that has found its way into at
least three of the major toolkits, GTK, QT, and Wx. I don't know whether
it was inspired by Emacs, or simply meant to mimic the Windows edit control.

On the web, CKEditor and TinyMCE include it per user request.

On Mac, who knows.

It could be worse. As an Emacs user, attempting to backspace over a word
typically results in bolding the entire document and printing it down
the hall while I'm helpless to intervene because the File->Save As menu
has opened.

ram.r...@gmail.com

unread,
Nov 22, 2009, 2:15:33 PM11/22/09
to sage-support, sage-...@googlegroups.com
I'm not too experienced with Linux, but now I opened up the Linux GUI
on my Sage VM, and tried a bunch of text editors and a web browser.
They all respect ctrl-backspace as deleting a word. Why does Sage do
differently? Why? Is this the right place to try and change the
accepted use of ctrl-backspace? Maybe we should use ctrl-w for copy
and ctrl-z for paste, just for kicks?

Ram.

On Nov 22, 8:58 pm, Michael Orlitzky <mich...@orlitzky.com> wrote:

William Stein

unread,
Nov 22, 2009, 2:27:16 PM11/22/09
to sage-s...@googlegroups.com, sage-...@googlegroups.com
On Sun, Nov 22, 2009 at 11:15 AM, ram.r...@gmail.com
<ram.r...@gmail.com> wrote:
> I'm not too experienced with Linux, but now I opened up the Linux GUI
> on my Sage VM, and tried a bunch of text editors and a web browser.
> They all respect ctrl-backspace as deleting a word. Why does Sage do
> differently? Why? Is this the right place to try and change the
> accepted use of ctrl-backspace? Maybe we should use ctrl-w for copy
> and ctrl-z for paste, just for kicks?
>
> Ram.

I greatly appreciate your pointing out the ctrl-backspace discrepancy.

However, I'm concerned that your level of rudeness is not appropriate
for this list.

-- William

cool-RR

unread,
Nov 22, 2009, 2:34:48 PM11/22/09
to sage-s...@googlegroups.com

I greatly appreciate your pointing out the ctrl-backspace discrepancy.

However, I'm concerned that your level of rudeness is not appropriate
for this list.

 -- William


Okay, I'm sorry. I'll try to be more polite.

Ram.

Robert Bradshaw

unread,
Nov 23, 2009, 2:07:25 PM11/23/09
to sage-s...@googlegroups.com
On Nov 22, 2009, at 11:34 AM, cool-RR wrote:

> Okay, I'm sorry. I'll try to be more polite.

Thanks.

> They all respect ctrl-backspace as deleting a word. Why does Sage do
> differently?

Probably because we weren't even aware of the convention at the time
(few Windows users are Sage developers). It might be worth considering
changing--are there any good, non-taken alternatives?

- Robert

cool-RR

unread,
Nov 23, 2009, 2:20:01 PM11/23/09
to sage-s...@googlegroups.com
You mean, shortcut keys for deleting a cell?


--
To post to this group, send email to sage-s...@googlegroups.com
To unsubscribe from this group, send email to sage-support...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-support
URL: http://www.sagemath.org



--
Sincerely,
Ram Rachum

Robert Bradshaw

unread,
Nov 23, 2009, 2:56:05 PM11/23/09
to sage-s...@googlegroups.com
For joining cells.

Harald Schilly

unread,
Nov 23, 2009, 3:03:40 PM11/23/09
to sage-support
On Nov 23, 8:07 pm, Robert Bradshaw <rober...@math.washington.edu>
wrote:
> are there any good, non-taken alternatives?

I don't know, but instead of more shortcuts, what about adding more
links like "evaluate" calling the appropriate js functions? for
inserting html text "insert text", joining cells "joining", "split"
for splitting, etc. This would make them more accessible to those who
don't know the shortcuts. mouseover textboxes might explain them
further including the shortcut keys.

H

Jason Grout

unread,
Nov 23, 2009, 4:32:59 PM11/23/09
to sage-s...@googlegroups.com
How about, instead of the blue bar that signifies "insert a new cell",
we have a bar that is divided into sections:

|---insert code---|----insert text-----|----join cells -----|

with the actual text in a small enough fontsize that it doesn't change
the height of the bar when it appears.

I don't know a way to have a "split cells" link here. That might
deserve a menu option in a "Cell" menu or something. Or we could have a
small set of buttons that appears above the top right corner of a cell
(like minimize/maximize buttons in windows or something) when the cell
has focus. Clicking the "split" button splits the cell at the current
cursor position. Something like:

|-split-|-delete-|
--------------------------------------------------
| Cell contents |
--------------------------------------------------

These links would only appear when the cell has focus. Again, I think
it is important that whenever something appears, it not change the
heights of things (so there is no vertical shifting as things appear and
disappear).

Jason

William Stein

unread,
Nov 23, 2009, 9:15:37 PM11/23/09
to sage-s...@googlegroups.com
I have no idea if I would like this. I might -- i would have to just
try. I think I might like this layout better:


|---insert code---|----insert text-----|
--------------------------------------------------
| Cell contents |
--------------------------------------------------

and

|-split-|-join-|-delete-|
--------------------------------------------------
| Cell contents |
--------------------------------------------------
Reply all
Reply to author
Forward
0 new messages