Files
RedBear-OS/recipes/shells/zsh/source/Functions/Zle/zed-set-file-name
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

27 lines
657 B
Plaintext

emulate -L zsh
autoload -Uz read-from-minibuffer
case $curcontext in
(zed:::)
local curcontext=zed-set-file-name:::
# 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-file-name:::)
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
}