summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-07-26 09:24:24 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-07-26 09:24:24 +0000
commit714efe5ff99f6d498ec1733648d130bdc414466d (patch)
treefb1d711e85c4ad67f28860770f6dd835a9b717c1
parentf303f2ea63ce70f63355349bc0130ddb04a251f8 (diff)
downloadzsh-714efe5ff99f6d498ec1733648d130bdc414466d.tar.gz
zsh-714efe5ff99f6d498ec1733648d130bdc414466d.zip
Enable the insert-tab style in zed.
-rw-r--r--ChangeLog4
-rw-r--r--Functions/Misc/zed5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e2683973..2de1a0010 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
Doc/Zsh/compsys.yo: Separate compinit security checks into their
own callable function.
+ * 12370: Functions/Misc/zed: Add a context for controlling
+ completion within zed, and a style to enable tab insertion at the
+ beginnings of lines in zed by default.
+
* 12162: Completion/Core/_expand, Completion/Core/_path_files,
Src/utils.c: Use `eval' instead of `$(print ...)' to suppress
some syntax error failures; this requires that zwarn() does not
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index e8e7212ef..dbf680270 100644
--- a/Functions/Misc/zed
+++ b/Functions/Misc/zed
@@ -19,6 +19,11 @@ integer TMOUT=0
[[ -z "$1" ]] && echo 'Usage: "zed filename" or "zed -f function"' && return 1
+local curcontext=zed:::
+
+zstyle -m ":completion:zed:*" insert-tab '*' ||
+ zstyle ":completion:zed:*" insert-tab yes
+
# catch interrupts
cleanup="$(bindkey -L "^M"; bindkey -L -M emacs "^X^W"; bindkey -aL "ZZ"
echo "trap - INT EXIT"; trap)"