zsh-workers
 help / color / mirror / code / Atom feed
c77a9d26e9c0f1315bd56896f9551399eaac0aec blob 655 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
emulate -L zsh

autoload -Uz read-from-minibuffer

case $curcontext in
  (zed:::)
    local curcontext=zed-set-filename:::
    # The call to vared from zed does the equivalent of
    #  bindkey -A zed main
    # which confuses read-from-minibuffer.  Fix it.
    bindkey -A zed-normal-keymap main;;
  (zed-set-filename:::)
    zle -M "zed-set-file-name: may not be called recursively"
    return 1;;
  (*)
    zle -M "zed-set-file-name: not called from within zed"
    return 1;;
esac
{
  local REPLY
  read-from-minibuffer "File name: "
  zed_file_name=$REPLY
} always {
  # Re-install the zed keymap in the way vared should have all along
  zle -K zed
}
debug log:

solving c77a9d26e ...
found c77a9d26e in https://inbox.vuxu.org/zsh-workers/CAH+w=7bV1nTYjfpafs1HM1gxnCDqpPZqfSpK5gBqHZ-LDJbccQ@mail.gmail.com/
found da3421e71 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 da3421e71bdadda987e69b76c5a368c6d5ae845b	Functions/Zle/zed-set-file-name

applying [1/1] https://inbox.vuxu.org/zsh-workers/CAH+w=7bV1nTYjfpafs1HM1gxnCDqpPZqfSpK5gBqHZ-LDJbccQ@mail.gmail.com/
diff --git a/Functions/Zle/zed-set-file-name b/Functions/Zle/zed-set-file-name
index da3421e71..c77a9d26e 100644

Checking patch Functions/Zle/zed-set-file-name...
Applied patch Functions/Zle/zed-set-file-name cleanly.

index at:
100644 c77a9d26e9c0f1315bd56896f9551399eaac0aec	Functions/Zle/zed-set-file-name

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).