zsh-users
 help / color / mirror / code / Atom feed
* A 'complete' reference of CTRL key combinations?
@ 2008-02-16 12:30 Richard Hartmann
  2008-02-16 16:21 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Hartmann @ 2008-02-16 12:30 UTC (permalink / raw)
  To: zsh users

Hi all,

I am pondering to map quite a few things to various CTRL-$key
combinations and wonder if there is a reference of which keys should
be considered 'taken' and which are free.

My zshrc is in wide use among friends, coworkers and co-students,
so I want to minimize any impact this might have for advanced users.
Yes, most of them will be able to map away what they don't like, but
as I push updates automatically, this is ackward, creates problems
for people advancing to advanced users (scnr) and is just bad style :)


Thanks,
Richard


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

* Re: A 'complete' reference of CTRL key combinations?
  2008-02-16 12:30 A 'complete' reference of CTRL key combinations? Richard Hartmann
@ 2008-02-16 16:21 ` Bart Schaefer
  2008-02-16 16:27   ` Richard Hartmann
  2008-02-16 19:54   ` Matt Wozniski
  0 siblings, 2 replies; 6+ messages in thread
From: Bart Schaefer @ 2008-02-16 16:21 UTC (permalink / raw)
  To: zsh users

On Feb 16,  1:30pm, Richard Hartmann wrote:
} 
} I am pondering to map quite a few things to various CTRL-$key
} combinations and wonder if there is a reference of which keys should
} be considered 'taken' and which are free.

zsh -fic 'bindkey -L'

perhaps?  Similarly

zsh -fic 'bindkey -M viins -L'
zsh -fic 'bindkey -M vicmd -L'

You might want

zsh -fic 'autoload -U compinit; compinit -D; bindkey -L'

to see the keys commonly bound by the completion system as well.


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

* Re: A 'complete' reference of CTRL key combinations?
  2008-02-16 16:21 ` Bart Schaefer
@ 2008-02-16 16:27   ` Richard Hartmann
  2008-02-16 19:54   ` Matt Wozniski
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Hartmann @ 2008-02-16 16:27 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh users

Thanks!

Richard


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

* Re: A 'complete' reference of CTRL key combinations?
  2008-02-16 16:21 ` Bart Schaefer
  2008-02-16 16:27   ` Richard Hartmann
@ 2008-02-16 19:54   ` Matt Wozniski
  2008-02-16 19:57     ` Mikael Magnusson
  1 sibling, 1 reply; 6+ messages in thread
From: Matt Wozniski @ 2008-02-16 19:54 UTC (permalink / raw)
  To: zsh-users

On Feb 16, 2008 11:21 AM, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Feb 16,  1:30pm, Richard Hartmann wrote:
> }
> } I am pondering to map quite a few things to various CTRL-$key
> } combinations and wonder if there is a reference of which keys should
> } be considered 'taken' and which are free.
>
> zsh -fic 'bindkey -L'
>
> perhaps?  Similarly
>
> zsh -fic 'bindkey -M viins -L'
> zsh -fic 'bindkey -M vicmd -L'
>
> You might want
>
> zsh -fic 'autoload -U compinit; compinit -D; bindkey -L'
>
> to see the keys commonly bound by the completion system as well.

Also useful, but for a different reason, is "man 7 ascii", which will
show which control key combinations are indistinguishable from special
keys to the shell, like ctrl-i and tab, ctrl-m and enter, etc.
Wouldn't want to accidentally bind ctrl-m to something, you'd have a
tough time changing it back without an enter key.  ;)

~Matt


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

* Re: A 'complete' reference of CTRL key combinations?
  2008-02-16 19:54   ` Matt Wozniski
@ 2008-02-16 19:57     ` Mikael Magnusson
  2008-02-16 20:45       ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Magnusson @ 2008-02-16 19:57 UTC (permalink / raw)
  To: zsh-users

On 16/02/2008, Matt Wozniski <godlygeek@gmail.com> wrote:
> Also useful, but for a different reason, is "man 7 ascii", which will
> show which control key combinations are indistinguishable from special
> keys to the shell, like ctrl-i and tab, ctrl-m and enter, etc.
> Wouldn't want to accidentally bind ctrl-m to something, you'd have a
> tough time changing it back without an enter key.  ;)

Actually, you can accept lines with either of alt-a, ctrl-o, ctrl-j,
ctrl-m and alt-x (and possibly more that i haven't thought of :).

-- 
Mikael Magnusson


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

* Re: A 'complete' reference of CTRL key combinations?
  2008-02-16 19:57     ` Mikael Magnusson
@ 2008-02-16 20:45       ` Bart Schaefer
  0 siblings, 0 replies; 6+ messages in thread
From: Bart Schaefer @ 2008-02-16 20:45 UTC (permalink / raw)
  To: zsh-users

On Feb 16,  8:57pm, Mikael Magnusson wrote:
}
} Actually, you can accept lines with either of alt-a, ctrl-o, ctrl-j,
} ctrl-m and alt-x (and possibly more that i haven't thought of :).

Alt-x ?  For me that invokes execute-named-cmd, which still needs yet
another accept-* at the end.

% bindkey -L | fgrep accept
bindkey "^J" accept-line
bindkey "^M" accept-line
bindkey "^O" accept-line-and-down-history
bindkey "^[A" accept-and-hold
bindkey "^[a" accept-and-hold

In viins/vicmd modes you get only ^J and ^M.


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

end of thread, other threads:[~2008-02-16 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-16 12:30 A 'complete' reference of CTRL key combinations? Richard Hartmann
2008-02-16 16:21 ` Bart Schaefer
2008-02-16 16:27   ` Richard Hartmann
2008-02-16 19:54   ` Matt Wozniski
2008-02-16 19:57     ` Mikael Magnusson
2008-02-16 20:45       ` Bart Schaefer

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

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).