Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any zsh experts around?
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Tux's lil' helper
Tux's lil' helper

Joined: 02 Dec 2008
Posts: 124

PostPosted: Tue May 06, 2014 1:43 pm    Post subject: Any zsh experts around? Reply with quote

I'm in the process of tuning my .zshrc, and two things are still annoying:

1. How can I bind ^? (that is, control + question mark) to something?
The normal way would be
bindkey '^?' redo
but ^? represents a delete char so I end up with not working backspace (although ^? works as expected).
The reason for this binding is that ^/ is bind (in emacs keymap) to undo, so it would be natural for ^? to redo.
In emacs itself I resolved this problem with the key code (63 for question mark):
(global-set-key '(control 63) 'redo)
Is it possible to do something similar in zsh?

2. I have the following completion:
zstyle ':completion:*' completer _complete _approximate

As the result if I type something incorrectly and hit TAB (first time) I will see a list with corrected propositions (what I like) and at the same time misspelled word will be changed automatically at command line with first proposition (what I do not like). So how to get rid of this in-line automatic correction?

Thx in advance
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum