yazi चीटशीट
0.4yazi terminal file manager के लिए ज़रूरी keyboard shortcuts
हिन्दी: 2026-03-29
अगर आप terminal में files navigate करने के लिए ranger या lf इस्तेमाल कर रहे हैं, तो yazi वह upgrade है जिसकी ज़रूरत आपको पता भी नहीं थी। Rust में लिखा गया (क्योंकि और क्या होता), yazi एक terminal file manager है जो इतना तेज़ है कि आप भूल जाएंगे कि native app इस्तेमाल नहीं कर रहे। हम बात कर रहे हैं हर जगह async I/O की — directory loading, file previews, image rendering — कुछ भी UI block नहीं करता। कभी नहीं।
yazi को ranger से अलग क्या बनाता है? Speed, मुख्यतः। Ranger Python-based है और बड़ी directories पर slow हो जाता है। lf तेज़ है लेकिन इतना minimal कि सब कुछ खुद configure करना पड़ता है। yazi sweet spot hit करता है: batteries-included — built-in image preview (हाँ, terminal में Kitty/iTerm2/Sixel protocols से), bulk rename, Lua से powered plugin system, और fzf, fd, और ripgrep जैसे tools के साथ first-class integration। यह वही vim-style h/j/k/l navigation इस्तेमाल करता है जो आप पहले से जानते हैं, तो muscle memory instantly transfer होती है।
Three-pane Miller columns layout parent directory, current directory, और जो भी selected है उसका live preview दिखाता है — syntax highlighting के साथ code, inline rendered images, archives listed out। Tab support मतलब extra terminal panes spawn किए बिना कई directories juggle कर सकते हैं। और visual selection mode bulk operations apply करने से पहले directories में से files cherry-pick करने देता है। इसे अपने filesystem का power-user cockpit समझें।
Tips
Quit करने के लिए q के बजाय Q (capital) इस्तेमाल करें — यह current directory path print करता है ताकि आपका shell उसमें cd कर सके। इसे shell alias के साथ pair करें जैसे function y() { local tmp; tmp=$(yazi "$@" --cwd-file=/dev/stdout); [ -n "$tmp" ] && cd "$tmp"; } ताकि जहाँ छोड़ा वहाँ seamlessly पहुँचें।
yazi में zoxide built-in है। File manager छोड़े बिना पहले visit की गई किसी भी directory में fuzzy-jump करने के लिए z press करें। यह photographic memory वाला cd जैसा है।
Files बनाने के लिए a press कर रहे हैं? Directory बनाने के लिए नाम / से खत्म करें। src/components/ type करें और yazi पूरा nested path बना देता है। कोई mkdir -p ज़रूरी नहीं।
कई directories में files select कर सकते हैं। एक directory में कुछ files select करें, दूसरी में navigate करें, और select करें, फिर p से सब target में paste करें। yazi navigation के across selections याद रखता है।
yazi के अंदर सीधे ripgrep से file contents search करने के लिए S (capital) इस्तेमाल करें। यह file manager में rg --files-with-matches wire करने जैसा है — match select करें और सीधे उस पर jump करें।
Bulk rename incredibly powerful है: files select करें, फिर multi-selection पर r key इस्तेमाल करें और वे आपके $EDITOR में list के रूप में खुलती हैं। जैसे चाहें filenames edit करें — regex, find/replace, जो भी editor support करे — और save करें। yazi सभी renames एक साथ apply करता है।
अगर previews expected तरीके से काम नहीं कर रहे, तो MIME detection के लिए custom file(1) database इस्तेमाल करने के लिए $YAZI_FILE_ONE set करें। yazi सही previewer चुनने के लिए accurate MIME types पर काफ़ी निर्भर करता है।