Per-directory default filter mode

Right now filter_mode_shell_up_key_binding lets me set one global default mode (global/host/session/directory) for the up-arrow search, and I can cycle through modes with Ctrl-R.

It would be great to be able to override this default per directory e.g. always start in directory mode inside ~/work/project-a, but session mode inside ~/scratch. Something like a per-path override list in config.toml, similar to how cwd_filter works, but for choosing the initial filter mode instead of excluding history.

Is this already possible somehow, or would it make sense as a feature request? I have folder inside what I keep my mobile apps and it would be great if I can say like in my “mobile-apps” any nested folder opens from directory mode