about summary refs log tree commit diff
path: root/Functions/Zle/narrow-to-region-invisible
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-07-04 13:53:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-07-04 13:53:47 +0000
commit603956acdcd61ce684237f9a1d538231967810b1 (patch)
treeb0e8fafb4629c318376501f33448ff902ee59a4e /Functions/Zle/narrow-to-region-invisible
parent76c1e267133ac66148c61b221041af2dbef89858 (diff)
downloadzsh-603956acdcd61ce684237f9a1d538231967810b1.tar.gz
zsh-603956acdcd61ce684237f9a1d538231967810b1.tar.xz
zsh-603956acdcd61ce684237f9a1d538231967810b1.zip
17410: narrow-to-region widgets
Diffstat (limited to 'Functions/Zle/narrow-to-region-invisible')
-rw-r--r--Functions/Zle/narrow-to-region-invisible5
1 files changed, 5 insertions, 0 deletions
diff --git a/Functions/Zle/narrow-to-region-invisible b/Functions/Zle/narrow-to-region-invisible
new file mode 100644
index 000000000..d70966b96
--- /dev/null
+++ b/Functions/Zle/narrow-to-region-invisible
@@ -0,0 +1,5 @@
+# As narrow-to-region, but replaces the text outside the editable region
+# with `...' if it was non-empty.  Can be used directly as a widget.
+
+autoload -U narrow-to-region
+narrow-to-region -p '...' -P '...' -n