How to add options to fd or rg search? #3441
Unanswered
theperiscope
asked this question in
1. Q&A
Replies: 2 comments 1 reply
-
|
You can use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@sxyazi Forgive my ignorance, bit new to yazi. How would I input my glob pattern and provide to the command, the way for example the So far my TOML looks like: mgr.prepend_keymap = [
{ on = ["g", "f"], run = 'search_do --via=fd --args="-g"' }
] |
Beta Was this translation helpful? Give feedback.
1 reply
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?
Windows
What terminal are you running Yazi in?
Wezterm
yazi --debugoutputYazi Version: 25.5.31 (b65a880 2025-05-30) Debug : false Triple : x86_64-pc-windows-msvc (windows-x86_64) Rustc : 1.87.0 (17067e9a 2025-05-09) Ya Version: 25.5.31 (b65a880 2025-05-30) Emulator TERM : Some("xterm-256color") TERM_PROGRAM : Some("WezTerm") TERM_PROGRAM_VERSION: Some("20240203-110809-5046fc22") Brand.from_env : Some(WezTerm) Emulator.detect : Emulator { kind: Left(WezTerm), light: false, csi_16t: (0, 0), force_16t: false } Adapter Adapter.matches : Iip Dimension.available: Dimension { rows: 40, columns: 160, width: 0, height: 0 } 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 : None EDITOR : None VISUAL : None YAZI_FILE_ONE : None YAZI_CONFIG_HOME: None YAZI_ZOXIDE_OPTS: None FZF_DEFAULT_OPTS: Some("--ansi --keep-right --multi --cycle --layout=reverse --preview \'bat --color=always --style=numbers,header,grid --line-range :500 {}\' --preview-window=right,66%:hidden --bind=\'F2:toggle-preview,ctrl-j:preview-up,ctrl-k:preview-down,alt-up:preview-page-up,alt-down:preview-page-down\'") Text Opener default : Some(OpenerRule { run: "code %*", block: false, orphan: true, desc: "code", for: None, spread: true }) block-create: Some(OpenerRule { run: "code -w %*", block: true, orphan: false, desc: "code (block)", for: None, spread: true }) block-rename: Some(OpenerRule { run: "code -w %*", block: true, orphan: false, desc: "code (block)", for: None, spread: true }) Multiplexers TMUX : false tmux version : program not found tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : program not found Dependencies file : 5.46 ueberzugpp : program not found ffmpeg/ffprobe: 8.0.1 / 8.0.1 pdftoppm : 25.12.0 magick : 7.1.2-10 fzf : 0.59.0 fd/fdfind : 10.3.0 / program not found rg : 14.1.0 chafa : program not found zoxide : 0.9.8 7zz/7z : program not found / 25.01 resvg : 0.45.1 jq : 1.8.1 Clipboard wl-copy/paste: program not found / program not found xclip : program not found xsel : program not found 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
I would like to be able to find and select/unselect files by filename/extension efficiently. For example in my Downloads folder, I'd like to select only the
A*.pngfiles among all others.I was hoping to use the
-gfd option that allows one to do just that. I tried alsofdregex search with^and$unsuccessfully:fd -g "A*.png"fd "^*.png$"Any ideas how to quickly select files with globs? On Windows at least, I am quite used to them.
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions