summary refs log tree commit diff
path: root/Functions/Zle/zed-set-file-name
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/zed-set-file-name')
-rw-r--r--Functions/Zle/zed-set-file-name9
1 files changed, 9 insertions, 0 deletions
diff --git a/Functions/Zle/zed-set-file-name b/Functions/Zle/zed-set-file-name
new file mode 100644
index 000000000..ca7758c37
--- /dev/null
+++ b/Functions/Zle/zed-set-file-name
@@ -0,0 +1,9 @@
+emulate -L zsh
+
+autoload -U read-from-minibuffer
+
+zle -K zed-normal-keymap
+
+local REPLY
+read-from-minibuffer "File name: "
+zed_file_name=$REPLY