How can I make sure one action runs after another? (synchronously) #3078
              
                Unanswered
              
          
                  
                    
                      matt-dong-123
                    
                  
                
                  asked this question in
                1. Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
Wezterm Nightly
yazi --debugoutputYazi Version: 25.5.31 (Homebrew 2025-05-30) Debug : false Triple : aarch64-apple-darwin (macos-aarch64) Rustc : 1.87.0 (17067e9a 2025-05-09) Ya Version: 25.5.31 (Homebrew 2025-05-30) Emulator TERM : Some("xterm-256color") TERM_PROGRAM : Some("WezTerm") TERM_PROGRAM_VERSION: Some("20250730-195751-6a493f88") Brand.from_env : Some(WezTerm) Emulator.detect : Emulator { kind: Left(WezTerm), light: false, csi_16t: (24, 64), force_16t: false } Adapter Adapter.matches : Iip Dimension.available: Dimension { rows: 33, columns: 147, width: 3528, height: 2112 } Desktop XDG_SESSION_TYPE : None WAYLAND_DISPLAY : None DISPLAY : None SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: None WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("/bin/zsh") EDITOR : Some("nvim") VISUAL : None YAZI_FILE_ONE : None YAZI_CONFIG_HOME: None YAZI_ZOXIDE_OPTS: None FZF_DEFAULT_OPTS: Some("--color=fg:#c0caf5,bg:#1b1e2d,hl:#bb9af7,fg+:#c0caf5,bg+:#292e42,hl+:#bb9af7,info:#2ac3de,prompt:#73daca,pointer:#73daca,marker:#73daca,spinner:#73daca,header:#73daca") Text Opener default : Some(OpenerRule { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) block-create: Some(OpenerRule { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) block-rename: Some(OpenerRule { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) Multiplexers TMUX : false tmux version : No such file or directory (os error 2) tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : No such file or directory (os error 2) Dependencies file : 5.41 ueberzugpp : No such file or directory (os error 2) ffmpeg/ffprobe: 7.1.1 / 7.1.1 pdftoppm : No such file or directory (os error 2) magick : No such file or directory (os error 2) fzf : 0.65.1 fd/fdfind : 10.2.0 / No such file or directory (os error 2) rg : 14.1.1 chafa : 1.16.2 zoxide : 0.9.8 7zz/7z : No such file or directory (os error 2) / No such file or directory (os error 2) resvg : No such file or directory (os error 2) jq : 1.7.1 Clipboard wl-copy/paste: No such file or directory (os error 2) / No such file or directory (os error 2) xclip : No such file or directory (os error 2) xsel : No such file or directory (os error 2) Routine `file -bL --mime-type`: text/plain See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.Describe the question
For my keymaps, is there a way to run two actions, one after the other?
runonly allows for running both actions at the same time.e.g. { on = "s", run = ["plugin easyjump", "enter"], desc = "run easyjump" },
Ideally I'd want easyjump to finish first, then enter its selected directory. How can I do that?
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions