Is it possible to interactively navigate a path be it a local
~/Documents or tramp shell
/ssh:server:Documents and immediately create shell instance on that directory similar to above workflow?
Here is a workflow for embark.
(defun open-shell-in-directory (directory &rest rest) (interactive "D") ;; If default-directory is a remote directory, make sure we find its ;; delete-directory handler. (setq directory (directory-file-name (expand-file-name directory))) (let ((default-directory directory)) (shell)))
and bind this function to
embark-file-map with the key you like.
now you can navigate to some directory,
embark-action and press the key you defined or just