unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* C-o (was: Proposal: new default bindings for winner and windmove)
@ 2024-07-03 19:32 Johan Myréen
  2024-08-13  8:54 ` Jean Louis
  0 siblings, 1 reply; 6+ messages in thread
From: Johan Myréen @ 2024-07-03 19:32 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

>
> I can see someone doing C-o foo bar but I don't see the benefit compared
> to foo bar RET


The benefit is that C-o opens a new blank line to type on, instead of
prepending what you are writing to the pre-existing text on the line, which
I find very distracting. Also, I might want to do a quick edit to what I
have typed so far (maybe to fix a typo before I forget it's there), and
then return to add new text to the line. If I open a new blank line with
C-o, I just type C-e to continue typing, but if the line is still stringed
together with the old line, then finding the correct point is a pita.

Note that the vi editor also has not only one, but two "open line" commands
"o" and "O", for opening a line below and above the current line,
respectively.

[-- Attachment #2: Type: text/html, Size: 1018 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Proposal: new default bindings for winner and windmove
@ 2021-08-21 19:10 Daniel Colascione
  2021-08-22 17:52 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Colascione @ 2021-08-21 19:10 UTC (permalink / raw)
  To: emacs-devel

Today, winner binds C-c LEFT  and C-c RIGHT for window configuration 
undo and redo, respectively. This set of bindings has three problems:

  1) the bindings occupy binding space on important keys, LEFT and 
RIGHT, for functions that are rarely used,

2) the winner binding space isn't logically connected to window 
management, and

3) the bindings don't work on terminals without LEFT and RIGHT.

How about we set up these bindings instead?

C-x 4 C-/ winner-undo

M-- C-x 4 C-/ winner-redo

This way, a winner undo has the same binding as editing undo, but under 
C-x 4, which means window management stuff.

(Also: is there any reason we shouldn't enable winner by default?)

Likewise, for windmove, we can bind C-x 4 {left, right, up, down} and 
DWIM for people automatically, enabled by default.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-13 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 19:32 C-o (was: Proposal: new default bindings for winner and windmove) Johan Myréen
2024-08-13  8:54 ` Jean Louis
2024-08-13 12:41   ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2021-08-21 19:10 Proposal: new default bindings for winner and windmove Daniel Colascione
2021-08-22 17:52 ` Stefan Monnier
2024-06-21 19:03   ` Stefan Monnier
2024-06-21 20:39     ` Stefan Kangas
2024-06-26 15:48       ` Stefan Monnier
2024-07-01  1:29         ` Stefan Kangas
2024-07-01 10:07           ` Alan Mackenzie
2024-07-01 11:25             ` Dmitry Gutov
2024-07-01 21:24               ` Alan Mackenzie
2024-07-01 22:07                 ` Daniel Colascione
2024-07-02  1:00                   ` Po Lu
2024-07-02  3:26                     ` C-o (was: Proposal: new default bindings for winner and windmove) Stefan Monnier
2024-07-02 22:31                       ` Stefan Kangas
2024-07-03 10:07                       ` Per Starbäck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).