You are not logged in.
Hi guys,
I am wondering how I can configure zsh so that it can support position1 and end button functionalities. What I want is, for example:
when I type something, or navigate through my folder structures and recognize that there is a typo at the beginning or in the middle, I want to be able to jump to the first character or to the last character once I, for instance, corrected the typo etc...?
Is this possible?
Last edited by Archie_Enthusiasm (2010-12-12 14:59:32)
Offline
https://wiki.archlinux.org/index.php/Zsh#Key_Bindings
Add this to ~/.zshrc :
bindkey "\e[7~" beginning-of-line
bindkey "\e[8~" end-of-line
bindkey "\e[3~" delete-char
Last edited by ferda (2010-12-12 14:31:59)
Offline
I have the following in my .zshrc
# bindkey
bindkey -e
bindkey "\e[3~" delete-char
# Home- und End-Keys.
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
what are `\e[1~` and `le[4~`? My .zshrc configuration was working pretty fine on my previous linux systems (ubuntu, opensuse, fedora etc..)
Why should they be coded differently? Can someone please explain this specific syntax?
Very interestingly - my laptop keyboard has an extra numlock => There is a fn button (for changing the function of a button) => therefore I have
- Pos 1 on 7 within the numlock
- End on 1 within the numlock
But when I turn off the numlock, I can jump to the beginning and end of the line by using 1 and 7 consequently. But I have two more extra buttons only for this pos1 and end purposes. I want to activate those buttons. And I do not know which code they have
Thanks
Last edited by Archie_Enthusiasm (2010-12-12 14:44:46)
Offline
I found it:
I had to type cat
and press the key one by one to find out how it is coded
Offline