Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
ff0cafa1
Commit
ff0cafa1
authored
Oct 14, 2012
by
Felix Dreissig
Browse files
Make sure the terminal is always in application mode when zle is active.
parent
3839c6e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/key-bindings.zsh
View file @
ff0cafa1
...
@@ -2,6 +2,19 @@
...
@@ -2,6 +2,19 @@
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Builtins
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Builtins
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets
# Make sure that the terminal is in application mode when zle is active, since
# only then values from $terminfo are valid
if
((
${
+terminfo[smkx]
}
))
&&
((
${
+terminfo[rmkx]
}
))
;
then
function
zle-line-init
()
{
echoti smkx
}
function
zle-line-finish
()
{
echoti rmkx
}
zle
-N
zle-line-init
zle
-N
zle-line-finish
fi
bindkey
-e
# Use emacs key bindings
bindkey
-e
# Use emacs key bindings
bindkey
'\ew'
kill-region
# [Esc-w] - Kill from the cursor to the mark
bindkey
'\ew'
kill-region
# [Esc-w] - Kill from the cursor to the mark
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment